Outgoing call issues
Moderator: Martin
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Outgoing call issues
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
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
Not currently with Automagic. Not sure if this is an Android issue or just lacking feature in AM. Martin can give you definite answer.
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: Outgoing call issues
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
Well then, I move this to feature requests.
Re: Outgoing call issues
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
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
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: Outgoing call issues
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
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
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: Outgoing call issues
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
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 768 times
Re: Outgoing call issues
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
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
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: Outgoing call issues
My pleasure, Martin!
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: Outgoing call issues
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 789 times