**** BEGIN LOGGING AT Fri Mar 18 02:59:57 2011 Mar 18 03:01:48 denkenz: re c8b5143a03a4abe9e632610883ea853e7f222a7e: if we don't update the call forwarding properties when the EF changes then we may find we're out of sync with the sim Mar 18 03:02:09 so imho we'd either need to overwrite sim contents or update properties Mar 18 03:19:49 balrog-k1n: How will that happen? We know the values from the network Mar 18 03:20:09 Besides, the next time they're set / reset the sim will be updated Mar 18 04:10:14 denkenz: how would the network notify us if the values have changed? as far as i see we won't notice until we explicitly query the values Mar 18 04:11:10 It doesn't, and the only way to change them is via a mobile request Mar 18 04:11:40 If they magically change on their own then we should just scrap the cache inside call-forwarding in the first place Mar 18 04:13:03 right, but we don't do that, right? Mar 18 04:13:31 sorry? Mar 18 04:14:19 do you mean s/don't/won't? Mar 18 04:14:19 at this point, when the operator magically resets our call forwarding settings, we just ignore this, right? Mar 18 04:14:38 no, we don't scrap the cache right now Mar 18 04:15:01 The purpose of EFcfis is not to store the CF settings Mar 18 04:15:33 It is meant to tell the user they are on when they re-activate the phone / insert it into a different device Mar 18 04:15:45 I highly doubt anyone will use Refresh to update EFcfis Mar 18 04:16:25 yeah, me too, but if something changes then we shouldn't ignore that that, i think? :) Mar 18 04:17:36 Since we overwrite this file anyway, who cares? Mar 18 04:17:37 if we want to ignore the change then we have no need for the notifier in call-forwarding.c Mar 18 04:18:35 I don't necessarily want to ignore it, just when we have queried the settings Mar 18 04:18:41 But we could ignore it, sure Mar 18 04:19:14 i mean i don't see why we specifically ignore changes in CFis but not in any other writable files Mar 18 04:19:28 EFcfis i mean Mar 18 04:19:33 Because EFcfis is non-authoritative Mar 18 04:19:44 All others are Mar 18 04:19:48 same is true for EFmsisdn for example Mar 18 04:20:00 Not really, there is no other source of EFmsisdn Mar 18 04:20:12 There are two sources of CFU Mar 18 04:20:33 the other thing is that the notifier in call-forwarding.c is dead code if we just return at the beginning Mar 18 04:21:17 How is that? We're not guaranteed to have the cached flag set Mar 18 04:21:56 yeah, but if we don't then we'd re-read the file anyway, i think the point of using the notifier is specifically to update our cache Mar 18 04:21:59 i will bbl, battery's running out Mar 18 04:22:23 We can't, the cache is updated once we queried all the settings Mar 18 04:23:17 However, call-forwarding is a huge disaster area and I'm wondering whether we should just redo it completely Mar 18 04:43:43 Does anyone know how to make the cmtspeech active?I mean cmtspeech_is_active(cmtspeech_t*) return true, Mar 18 08:46:12 denkenz: ping Mar 18 15:36:35 denkenz: ping Mar 18 15:47:27 fdanis: pong Mar 18 15:48:40 denkenz: do you see my comment about +COPS ? Mar 18 15:49:17 yes, and I still stick to my earlier suggestion Mar 18 15:49:29 We can't have hundreds of emulator foreach calls everywhere Mar 18 15:50:07 you have to solve the online problem in a different way Mar 18 15:52:07 this will imply to have one callback for offline mode in emulator and one for online mode in netreg, is it acceptable ? Mar 18 15:53:54 no Mar 18 15:54:18 have a think about it, there are other ways Mar 18 15:54:41 I'm even fine taking your patch ignoring the online problem for now Mar 18 15:55:17 which one ? indicators or cops ? Mar 18 15:55:31 I have a new version for indicators Mar 18 16:01:58 I am not sure to understand your last sentence, will you apply the current +COPS patch ? Mar 18 16:09:40 no, but I will apply one that moves cops implementation to netreg.c Mar 18 16:09:55 Then you can have a think about solving your online issue Mar 18 16:12:13 ok, so I will send the indicators patch first Mar 18 16:22:51 holtmann: ping Mar 18 16:23:45 and, there is no issue with online mode, but with offline mode (when netreg atom is not registered) Mar 18 16:25:23 Jeevaka: pong Mar 18 16:25:52 holtmann: test has been done with timeout value of 0 and it works for different cases. Mar 18 16:26:35 If you want to use 1 millisecond, thats also fine with me Mar 18 16:27:09 I want you to use 1 second. Mar 18 16:27:29 That is works is pure luck that the AT response is read first. Mar 18 16:27:58 g_timeout_add_seconds(1, ...) Mar 18 16:28:38 You can use g_idle_add if you like. Mar 18 16:29:24 But then again here, NITZ without DST value is rather pointless. Why bother with NITZ at all then. Mar 18 16:30:20 ofonod[1332]: Aux: < \r\n+CTZV: +08,"10/10/20,12:58:20"\r\n Mar 18 16:30:20 ofonod[1332]: Aux: < \r\n+XNITZINFO: "GMT+1","10/10/20,12:58:20"\r\n\r\n+CTZDST: 1\r\n Mar 18 16:30:31 Jeevaka: Btw. this is also all stupid IFX. Mar 18 16:30:33 It wants you to have extra fun implementing it ;) Mar 18 16:30:47 fdanis: Yes I know ;) Mar 18 16:31:11 If they would just send +XNITZINFO after +CTZV and +CTZDST then this would be simpler, but no they need to send an optional one later on. Mar 18 16:34:47 holtmann: test was done with the simulator where you can disable sending the network daylight saving with the MM information message Mar 18 16:35:40 I bet you it works fine 99% of the time, but one bad timing in the kernel IO interrupt handling and you fail. Mar 18 16:35:44 holtmann: atleast with the live network case, we receive all. But dont know with which network Antti observed this issue Mar 18 16:36:18 Hence either g_timeout_add_seconds or g_idle_add. Mar 18 16:36:34 Not a millisecond timeout of zero. Timeouts have priority over idle. Mar 18 16:41:40 ok Mar 18 16:49:57 Hi. While testing cppcheck (which is very nice), I could found 2 non init var in oFono. And looking into this, I have saw this macro: #define uninitialized_var(x) x = x. And so, the var are declared like this: enum sms_charset uninitialized_var(charset); Mar 18 16:50:13 I am a bit surprised about this, can someone give me some hints Mar 18 16:50:33 It is to shut up the compiler Mar 18 16:50:52 BertrandAygon: False positives. Mar 18 16:51:09 Basically it is flagging uninitialized variables, but if you follow the logic flow, they're never used uninitialized Mar 18 16:51:24 Ok, so you can init a var with itself, and compiler is ok with this Mar 18 16:51:43 yep Mar 18 16:51:49 It is gcc magic. Mar 18 16:51:58 :) Mar 18 16:52:17 Thanks, I learn a new magic Mar 18 16:52:39 We "stole" that one from the kernel guys ;) Mar 18 16:53:20 Ok. Compiler is OK, but cppcheck not... Mar 18 16:53:47 I will try to see what we can do for cppcheck. I love magic Mar 18 17:10:09 denkenz: You applied recently a STK patch from Andrew to fix an issue with null data object alpha id. Mar 18 17:11:08 denkenz: Besides the fact that stk-util unit test is broken with this patch, I would like to understand in order to fix it properly if we still want to distinguish the case where the alpha id is not provided and the case where it is provided but it is a null data object (len = 0). Mar 18 17:12:37 denkenz: if we don't want to display something when no AID is provided then OK we don't need to distinguish the 2 cases Mar 18 17:20:35 pnunes: currently, we dont differentiate between alpha identifier not provided and null data object Mar 18 17:22:06 jeewaka: That's what I see but I would like to confirm that we decided in this case to never display a "default" text. Mar 18 17:22:28 pnunes: I think we will stick with that if we dont find a better idea Mar 18 17:22:53 jeewaka: as you know, providing a null data object AID is an indication from the SIM to not display anything Mar 18 17:23:09 pnunes: comment to confirm this has been added to stk_alpha_id_set function in stk.c Mar 18 17:27:18 jeewaka: Ok, I see. But for unit test, we need to distinguish this case. Or we need to remove the test Mar 18 17:29:16 pnunes: As per the spec, "if the alpha identifier is not provided by the UICC, the terminal may give information to the user concerning Mar 18 17:29:19 what is happening." Mar 18 17:29:41 pnunes: Note: "may give" Mar 18 17:30:38 jeevaka: Yes, I understand but personally, I would prefer to display always something except when UICC asks to not display. Mar 18 17:31:08 pnuens: Some text or no text both can be considered as success in this case Mar 18 17:31:59 jeevaka: it's more user friendly to display something otherwise the user can consider that the lats action has not been taken into account. Mar 18 17:32:06 pnunes: if we can distinguish, then its fine with me too Mar 18 17:33:17 since we didnt find a better idea, we left it undistinguished Mar 18 17:33:45 jeevaka: we could just send an empty AID to the stk agent (with stk_agent_display_action_info) and let it display a default text or icon. Mar 18 17:35:31 jeewaka: Ok, I'l try to bring a proposal that does this distinction. Mar 18 17:35:49 pnunes: ok Mar 18 17:35:51 jeevaka: thanks. Mar 18 17:54:22 pnunes: I doubt anyone really cares in the end Mar 18 17:54:39 And the default text has to come from the application, not from oFono since it is not i18n-ed Mar 18 17:54:47 With the current setup it won't work Mar 18 17:55:01 Jeevaka, balrog-k1n: Please investigate the unit test break and submit a patch Mar 18 17:57:10 denkenz: yes , indeed, the idea was to let the stk agent to display a default text which could be localized. Can't we pass an empty string to the stk-agent ? Mar 18 17:57:34 And do what? You still need the actual action as well Mar 18 17:57:44 Today we don't hand out this information Mar 18 17:58:13 denkenz: Yes, you're right. I missed this point. Mar 18 17:59:53 denkenz: fact is that I already found a SIM card that wasn't providing AID with Send SMS command Mar 18 18:00:27 As I said, nobody cares in the end Mar 18 18:00:41 It is probably even annoying to get a popup of 'ooh you're sending an SMS' Mar 18 18:01:09 The user goes like : "And? I just hit a menu requesting this info, I know I'm sending an SMS" Mar 18 18:01:28 The whole idea of STK is 20th century, the less the user sees it the better Mar 18 18:03:57 denkenz: hum, my point of view is that it is always better to indicate that the last action of the user is processing especially with finger touch Mar 18 18:04:48 denkenz: for send sms, I not sure that the user knows what is going on , no confirmation is required Mar 18 18:06:14 Getting an annoying popup in the middle of whatever he's doing is also annoying Mar 18 18:06:35 And its not like the user can do anything about it Mar 18 18:06:42 So why even bother telling them Mar 18 18:09:21 denkenz: if the user can at least understand that his last action is processing then I 'm also fine with this approach. Mar 18 18:11:13 The UI knows since it will hide the last menu Mar 18 18:15:14 denkenz: send sms is an action which can take a while. I though that the last menu (or dialog) was displayed until the next proactive command is received or until the end session occurs. Mar 18 18:15:39 It shouldn't Mar 18 18:15:54 If you get a RequestSelection and you return, you need to close that dialog Mar 18 18:16:40 denkenz: yes but to display what ? Mar 18 18:17:28 The main menu? Mar 18 18:17:51 denkenz: I thought that the stk agent was just a dummy browser which was displaying what we ask to display Mar 18 18:18:12 denkenz: displaying the menu will bring flikering Mar 18 18:18:30 Seriously, there's nothing to display once you're done with the action Mar 18 18:19:59 pnunes: my approach is to switch to the next view only once the next proactive command is received or when the end session occurs. Mar 18 18:21:29 denkenz: that's why I was demanding to display something in case of send SMS since we would likely be stuck a while in the last menu. Mar 18 18:22:56 denkenz: now I saw devices which were displaying the main menu between proactive commands. But I fell this flickering between main menu and the other views annoying Mar 18 18:27:24 You will have other problems anyway Mar 18 18:27:30 Send USSD comes to mind Mar 18 18:28:23 Not to mention that any of these can come unsolicited without a user session Mar 18 18:33:19 denkenz: Ok, I guess that I need to check with Luc (who is implementing the STK agent) regarding how the views are interlinked. Mar 18 18:33:39 denkenz: Thanks Mar 18 20:45:49 holtmann: For lucas' patches, are you fine with CancelMessage(o) or do you want Cancel() on the Message object itself? Mar 18 20:54:05 I'm going for Cancel on the Message object unless you change your mind ;) Mar 18 23:30:41 denkenz: Either way is fine with me there. **** ENDING LOGGING AT Sat Mar 19 02:59:56 2011