http://automagic4android.com/flow.php?i ... cd5c874d80
This flow for logging calls which are job calls, does not execute correctly at random. What can be wrong?
Below is the last log when it did not execute correctly. I have changed the phone number to 0-9 and the name to Mr Example.
Any help would be much appreciated.
05.08.2014 16:34:25.358 [R Telefon 1 Jobb] Starting to execute flow 'R Telefon 1 Jobb' with Context{global{global_rStopp=1407190512032,global_origin_altitude=56.28322811382739,global_rBilstart=1407237808781,global_rStart=1407189864760,global_rBilstopp=1407239715057,global_dest_altitude=50.782309663966785,global_rResa=1407226589371,global_dest_accuracy=32.0,global_origin_accuracy=12.0,global_rHem=1407237919367,global_dest=Location[Script 57,521160,11,963740 acc=??? t=?!? et=?!?],global_totalDist=181629047,global_origin=Location[fused 57,654522,12,015056 acc=12 et=+7h43m35s276ms alt=56.28322811382739]},local{trigger='Outgoing Call: all, Ended',contact_email=,contact_nickname=,contact_name=Mr Example,flow_name=R Telefon 1 Jobb,triggertime=1407249264758,call_state=IDLE,called_number=0123456789,contact_title=,contact_note=,contact_groups=[],contact_company=}}
05.08.2014 16:34:25.454 [R Telefon 1 Jobb] Start executing action 'Init Variables Call Log: Newest call call_number call_time call_duration call_type call_cached_name call_new'
05.08.2014 16:34:25.470 [R Telefon 1 Jobb] Start executing action 'Set Flow State: Enable Telefon Startsida åter efter samtal'
05.08.2014 16:34:25.476 [R Telefon 1 Jobb] End executing action 'Set Flow State: Enable Telefon Startsida åter efter samtal'
05.08.2014 16:34:25.807 [R Telefon 1 Jobb] End executing action 'Init Variables Call Log: Newest call call_number call_time call_duration call_type call_cached_name call_new'
05.08.2014 16:34:25.808 [R Telefon 1 Jobb] Flow continues executing with the next step.
05.08.2014 16:34:25.810 [R Telefon 1 Jobb] Start executing action 'Execute Flows: Telefon Startsida åter efter samtal'
05.08.2014 16:34:25.823 [R Telefon 1 Jobb] Start executing condition 'Expression: call_type != 3'
05.08.2014 16:34:26.021 [R Telefon 1 Jobb] End executing condition 'Expression: call_type != 3' with return value false
05.08.2014 16:34:26.028 [R Telefon 1 Jobb] End executing action 'Execute Flows: Telefon Startsida åter efter samtal'
05.08.2014 16:34:26.059 [R Telefon 1 Jobb] Flow ended.
outgoing call, incoming call does not execute correctly
Moderator: Martin
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
outgoing call, incoming call does not execute correctly
Best regards,
AngelAtwOrk
AngelAtwOrk
Re: outgoing call, incoming call does not execute correctly
Can you explain what you mean by 'does not execute correctly'? What should have happened?
Does the example show a missed call but the condition was false?
Does the example show a missed call but the condition was false?
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Re: outgoing call, incoming call does not execute correctly
Yea, I think the problem is the call_type != 3. The flows are on my husband's phone. When he has talked on the phone , he should get a question if it was job related and if so what project it should be added to. With the exception of it is family or if it was missed. But quite often when he has talked on the phone the dialog does not kick in. Today I happened to stand next to him when it happened. He was made an outgoing call, but when he hung up nothing happened. I think it also happens when it is incoming calls. But as I said it is randomly. I don't know how many calls I have made between or phones to try to catch what is wrong. Neither do I want an outgoing call logged that is terminated before any one has answered. You have the variable call_missed_rejected for incoming, but not a variable call_cancelled_rejected for outgoing calls. Is this not possible since cancelled calls show up as cancelled in the phone log.
Best regards,
AngelAtwOrk
AngelAtwOrk
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Re: outgoing call, incoming call does not execute correctly
The expression call_type != 3 should have returned true since it was an outgoing call ( call type 2) and continued the flow
Best regards,
AngelAtwOrk
AngelAtwOrk
Re: outgoing call, incoming call does not execute correctly
Perhaps the call log was not updated yet when the flow was run. Please try to add an action Sleep: 2s to let the phone more time to update the call log database.
Could you also temporarily add an action Notification on Screen: {call_number} {call_time} {call_type} so we can check what values the call log returned when the error occurs?
Could you also temporarily add an action Notification on Screen: {call_number} {call_time} {call_type} so we can check what values the call log returned when the error occurs?
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Re: outgoing call, incoming call does not execute correctly
Will do
, although the thought of this flow is to help my husband to automatically take action on the call, before he has put the phone away.
Edit saw just that you just asked for two seconds
, he ought to still be handling the phone then.

Edit saw just that you just asked for two seconds

Best regards,
AngelAtwOrk
AngelAtwOrk
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Re: outgoing call, incoming call does not execute correctly
I have done as you suggested, inserting sleep.
But I have sent you an email with my flows and logs from my husband's email, since it would not write to file today.
Would be so grateful it you had a chance to look at them.
But I have sent you an email with my flows and logs from my husband's email, since it would not write to file today.
Would be so grateful it you had a chance to look at them.
Best regards,
AngelAtwOrk
AngelAtwOrk