Page 1 of 1

Outgoing call issues

Posted: 22 Aug 2016 08:51
by akhileshg1988
Hello there!
Just want to know whether there is any way to differentite between "number dialled" state and "off hook" state with regard to an outgoing call?
Any help in this regard is solicited.

Thanks
Akhilesh

Re: Outgoing call issues

Posted: 22 Aug 2016 09:37
by MURTUMA
Not currently with Automagic. Not sure if this is an Android issue or just lacking feature in AM. Martin can give you definite answer.

Re: Outgoing call issues

Posted: 23 Aug 2016 11:51
by akhileshg1988
I don't think it's an issue with the android OS because on MIUI ROM whenever we have the auto call recording option enabled, every outgoing call starts getting recorded only after the other party picks up the call (i.e. after the call gets 'off-hook'). That means that Android does understand the difference between 'number dialled' state and 'off-hook' state as far as an outgoing call in android is concerned.

Re: Outgoing call issues

Posted: 23 Aug 2016 12:22
by MURTUMA
Well then, I move this to feature requests.

Re: Outgoing call issues

Posted: 26 Aug 2016 19:50
by Martin
Android does not pass the detailed call state to apps like Automagic. Some apps tried to differentiate between the two states by checking the call log database (but this does not work on all devices/telephony apps). You could also try to use action Control UI and check if the text of the duration of the call is changing or bigger than zero.

It's on my todo-list to add this feature when Android supports an API to detect this state in a proper way, unfortunately it does not do so right now as far as I'm aware of.

Regards,
Martin

Re: Outgoing call issues

Posted: 29 Aug 2016 04:09
by akhileshg1988
Well, thanks for enlightening me on this issue, Martin!
You said, "You could also try to use action Control UI and check if the text of the duration of the call is changing or bigger than zero". May I request you to kindly guide me as to which function should I use under the action Control UI that can accurately check and return the text of the duration of the outgoing call?

Thanks
Akhilesh

Re: Outgoing call issues

Posted: 29 Aug 2016 06:18
by akhileshg1988
Hey Martin!
I have figured it out. Made a flow that differentiates between the 'number dialled' and 'off-hook' states of an outgoing call.
I am uploading the flow I have made. Kindly have a look at it. Any suggestions in context of this flow are welcome.

Thanks
Akhilesh

Re: Outgoing call issues

Posted: 29 Aug 2016 20:12
by Martin
Great, thanks for sharing the flow!

Your flow could loop quite fast. I would add an action Sleep: 1s or Sleep: 500ms within the loop to avoid 'emergency stop' issues when too many actions are executed within a short amount of time.

Regards,
Martin

Re: Outgoing call issues

Posted: 30 Aug 2016 06:29
by akhileshg1988
My pleasure, Martin!

Re: Outgoing call issues

Posted: 18 Apr 2017 04:54
by akhileshg1988
An even better and reliable flow for recognizing the off-hook state of an outgoing call.