Reputation: 1890
I have two bluetooth devices (MFi) connected to the iPhone.Both of these devices support HFP. If Call is accepted from one device(does not have hardware like microphone and speaker),after that I would like to route the call to other device(headset).Is there any API to accomplish this from app or any other way to achieve the same.
I found the following relevant link
how to route iPhone audio to the bluetooth headset
Is there any way to simulate the accept button of the headset from the app or transfer the call session from one HFP device to other HFP device ?
Upvotes: 4
Views: 2793
Reputation: 1890
If HFP is implemented then call can be accepted
or rejected
from bluetooth devices.There is no API
in iOS to do this.I think this is the implementation in Pebble Smart watch.We can also view the call details in different HFP devices at the same time (carkit,smart watch,head set).
Upvotes: 0
Reputation: 16790
You cannot do this programmatically as phone calls are completely under the control of the system. You can access some information using the Core Telephony API but all of it is read only. Changing the settings on the Audio Session of the application will not affect anything on the call.
Alternatively, iOS 7 provides you a handy interface to do the handover manually. In the screenshots below I have a car kit and a head set connected to the phone during call. Clicking any of the items immediately transfers the audio.
Upvotes: 4