Outgoing call issues

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Outgoing call issues

Post by akhileshg1988 » 22 Aug 2016 08:51

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

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Outgoing call issues

Post by MURTUMA » 22 Aug 2016 09:37

Not currently with Automagic. Not sure if this is an Android issue or just lacking feature in AM. Martin can give you definite answer.

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: Outgoing call issues

Post by akhileshg1988 » 23 Aug 2016 11:51

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.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Outgoing call issues

Post by MURTUMA » 23 Aug 2016 12:22

Well then, I move this to feature requests.

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

Re: Outgoing call issues

Post by Martin » 26 Aug 2016 19:50

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

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: Outgoing call issues

Post by akhileshg1988 » 29 Aug 2016 04:09

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

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: Outgoing call issues

Post by akhileshg1988 » 29 Aug 2016 06:18

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
Attachments
flow__Recognizing_Off_Hook_State_Of_An_Outgoing_Call_20160829_113350.xml
(1.94 KiB) Downloaded 769 times

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

Re: Outgoing call issues

Post by Martin » 29 Aug 2016 20:12

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

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: Outgoing call issues

Post by akhileshg1988 » 30 Aug 2016 06:29

My pleasure, Martin!

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: Outgoing call issues

Post by akhileshg1988 » 18 Apr 2017 04:54

An even better and reliable flow for recognizing the off-hook state of an outgoing call.
Attachments
Recognizing Off-Hook State Of An Outgoing Call (New).xml
In the second condition 'Expression', please change the search words "On-going call" to whatever text/words are displayed in the status bar notification in your phone, once the call is picked up by the other party.
(2.86 KiB) Downloaded 790 times

Locked