Linux bluetooth development
 help / color / mirror / Atom feed
* headset answer button with HFP and telephony-dummy
@ 2011-03-01 18:26 Peter Kornatowski
  0 siblings, 0 replies; only message in thread
From: Peter Kornatowski @ 2011-03-01 18:26 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

I want to catch the answer button signal of a bluetooth headset when 
connected in HFP mode (HSP is trivial through the dbus-headset-signal 
"AnswerRequested"). I don't want to use the computer as the "headset 
part", but as the "audio gateway part". I have a small self-build app 
that can handle VoIP-calls and Bluetooth-audio through bluez and 
pulseaudio. Now I want the app to recognize the answer button being 
pressed and then answer or hang up a call. I know that it has to be 
done through a telephony-dummy because of the more complicated HFP 
state machine. So I also digged into the source of the corresponding 
.c files and searched the web. But I still have several questions left:
1. The bluez bindings for ofono and maemo seem to be just fulfilling 
the "headset part", so when connecting a mobile phone to the computer 
through Bluetooth. But I need the other direction. Is this possible 
with ofono or maemo?
2. I found this patch on the web: 
http://whitequark.livejournal.com/20590.html. It is already 
integrated into bluez (since version 4.6x), so my problem seems to be 
possible to solve with the telephony-dummy. But I tested it and when 
the headset is in connected mode, I don't receive anything when 
pressing the answer button. In playing mode I just received "AT+BLDN" 
(last_dialed_number) and "AT+CHUP" (terminate_call). But according to 
the patch I should receive "AT+BVRA" (voice_dial). Should the headset 
be in some state (if yes, in which one and how do I trigger it)?
3. Should I be able to use the dbus-methods in the telephony-dummy to 
simulate a "HFP state machine" and maybe be able to catch the answer 
button then? But here only the "audio gateway role" on the remote 
device (org.bluez.HeadsetGateway) is documented in the audio-api.txt, 
not the other direction.

Thanks,
Peter Kornatowski 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-01 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 18:26 headset answer button with HFP and telephony-dummy Peter Kornatowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox