Problem call_time shows the former call's start time

Post your questions and help other users.

Moderator: Martin

Post Reply
angelatwork
Posts: 186
Joined: 12 Feb 2014 01:45

Problem call_time shows the former call's start time

Post by angelatwork » 24 Feb 2014 15:36

Hi,
In my posted flow for phone calls, with incoming call as a trigger, I have noticed that call_time shows the wrong time, when I do not answer the call.

These are the circumstances;
Someone is calling, I do not answer, or reject the phone call by ending it (busy sound for the caller).
Even though it really was not a call, I then (by mistake) log it as a job related call.
The call is logged.

In the written file, the unanswered call is logged with the last answered call's call_time, and the duration of this imaginary call I have just rejected can be very long :) .

How do I do an exception so the call is not logged at all when not answered or rejected.

And how do I do with outgoing calls when I change my mind before the called person pick up. Is it even possible to fix with outgoing calls since you do not have ringing state?

I would prefer (if possible) an exception or exit flow or condition true or false that does not involve using call duration in some way, since short calls sometimes are important to have logged.

Anyone who knows how to fix this or any input at all, please?
Best regards,
AngelAtwOrk

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Problem call_time shows the former call's start time

Post by Martin » 24 Feb 2014 17:54

Hi,

Please post the flow so I can check what's going on.
I'm not sure if this happens in your flow, but it takes some time until the phone app wrote the updated call information to the call log so you should access the call log information after the call has ended, perhaps also add an action Sleep: 2s to wait a few seconds to wait for the phone app to write the latest values.
Outgoing calls should also work and will contain the duration stored by the phone app. call_duration is usually 0 when the other party did not answer the call (might depend on phone/manufacturer/ROM).

Regards,
Martin

angelatwork
Posts: 186
Joined: 12 Feb 2014 01:45

Re: Problem call_time shows the former call's start time

Post by angelatwork » 24 Feb 2014 19:06

A version is uploaded to the flow sharing area, subject "Choice by Voice or Text to Log a call and more". I will read your answer more thoroughly later (eating dinner)

Thanks for looking into it
Best regards,
AngelAtwOrk

angelatwork
Posts: 186
Joined: 12 Feb 2014 01:45

Re: Problem call_time shows the former call's start time

Post by angelatwork » 24 Feb 2014 21:17

Since your excellent explanation in the other question about variables, I will try to use the variable for missed rejected calls to get rid of these calls on incoming calls. I will get back.
Best regards,
AngelAtwOrk

angelatwork
Posts: 186
Joined: 12 Feb 2014 01:45

Re: Problem call_time shows the former call's start time

Post by angelatwork » 24 Feb 2014 22:05

It worked with missed_rejected_call for incoming calls:-) .
I guess I will have to live with occasional outgoing calls logged though they should not be.
Best regards,
AngelAtwOrk

Post Reply