Tuesday, 5 July 2016

Automatic Call Forwarding: SOLVED



Answering a question no one asked but functionality I was after.

Borne of a good post on Reddit if your Android Wear watch is hijacking your bluetooth so your phone won't connect to your cars handsfree:
https://www.reddit.com/r/hwatch/comm...adset_profile/

It's a good app and works well for me.

Got me to thinking whether it could be adapted to automatically forward calls to my phone when out of bluetooth range and back to the phone's voicemail when connected via BT. The problem with the inbuilt call forward function is that when you turn it off it erases all the forwarding options including to the phone's voicemail. What the phone's option to turn off/on the forwarding does is send an MMI code to the cell network to update the forwarding options - the same can be done by just entering them numerically.

The list of MMI codes on wikipedia makes it a versatile tool:
https://en.wikipedia.org/wiki/Call_forwarding#Europe

Using the Reddit post as a guide I created 2 flows:
1) Forward to voicemail on BT connect -> Trigger: BT device connected (Urbane) -> Action: Call number *004*[voicemail number]#
2) Forward to Urbane on BT disconnect -> Trigger: BT device disconnected (Urbane) -> Action: Call number *004*[watch number]#

Works really well, so if I walk out of BT range the phone forwards calls to the watch if busy/unanswered etc and back to voicemail once back in range.

Hope this is of use to someone.



No comments:

Post a Comment