Skip to content Skip to sidebar Skip to footer

How To Initiate A Call From Hf Through Ag Via Handfree Audio Gateway In Android?

So far I have been able to initiate a call from the AG (Audio Gateway) which is an Android phone through bluetooth connection from the phone in which my app is loaded (the HF or Ha

Solution 1:

It appears that you are trying to implement the Handsfree unit role on the Phone. One way of doing this is if you have 2 Phones, Phone A (behaves as AG), Phone B (HandsFree Unit) then

  1. Phone B needs to send appropriate AT commands to Phone A, to make itself appear as a Bluetooth headset. If this is done right, then i dont think any changes are required on Phone A to route the audio to Bluetooth SCO link. To see what AT commands are sent by a Handsfree unit, perhaps logs from Phone A (AG) connected to a standard Bluetooth headset will help. Or the Handsfree Specification.

  2. On Phone B, assuming that all the AT commands have been sent to Phone A to make itself appear as a HF unit and then a call is set up ( Phone A to remote party) by sending ATD from Phone B, Phone A may set up SCO as it would do with a standard Bluetooth headset. If not, then Phone B may have to invoke AudioManager.startBluetoothSco() to set up SCO. In addition to SCO being set up, Phone B would have to route audio to SCO. I think the APIs are AudioManager.SetMode() and AudioManager.setBluetoothScoOn().

Post a Comment for "How To Initiate A Call From Hf Through Ag Via Handfree Audio Gateway In Android?"