0

I have two devices connected via Bluetooth. Currently I am to initiate voice call from my device (programmatically from my app) to another device, after connecting to it using Handsfree Audio Gateway.

However, I am only able to initiate the call and not hear the other end or send my voice once the call is established. I realize that there is something more I must do for this. But I am unable to find out what it is. Perhaps there is an AT command for initiating call and routing audio to the Bluetooth connected handset? Or any other way?

My coding attempts so far are described here in this question : How to initiate a call from HF through AG via Handfree Audio Gateway in Android?

halfer
  • 19,824
  • 17
  • 99
  • 186
SoulRayder
  • 5,072
  • 6
  • 47
  • 93

1 Answers1

0

There is no AT command to start a SCO link (Audio link) over BT.

A SCO link is started in Android by using AudioManager.startBluetoothSco()

Have not used this myself so I can't help you more about this.

Have you really connect a Bluetooth HF connection between two Android phones? I tought they only supported AG role not HF. It isn't a SPP connection you are using?

harsmar
  • 376
  • 1
  • 12
  • The phone, as I gather, supports only Handsfree Audio Gateway. So I connect using that, and then I am able to issue commands to it related to calls. But I am unable to route the audio of the call through Bluetooth – SoulRayder Jun 19 '14 at 03:26
  • From what type of device do you connect towards your HF AG (phone)? Another Android phone? – harsmar Jun 19 '14 at 05:33
  • How does your setup look like? Android phone acting as a HF-> issues a BT connection towards another android phone acting as HF AG? The phone that are AG. Does it say that it has a BT connection and are you able to connect audio towards the HF from its active call menu? If so, does the audio dis aper in AG device? If so, a SCO link is connected and you "only" need to route the audio on your HF device. If there is no possibility to transfer audio in your AG device you have not connected a correct HF link. – harsmar Jun 19 '14 at 05:43
  • Yes, both AG and HF are android phones – SoulRayder Jun 19 '14 at 05:49