You need to implement the HFP profile in your Android device, usually the role of the phone is AG (audio gateway), and the role of the headset is HF (Hands free), consider its server and client roles. Connect the RFCOMM channel to the phone using the UUID defined for HF, update the SDP record, changes will also be required to process AT commands. These will be the initial changes, after execution you will need to process audio packets (SCO packets) for voice calls
ashish
source share