Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

answer a call with bluetooht headset button #574

Closed
532910 opened this issue Apr 17, 2019 · 9 comments
Closed

answer a call with bluetooht headset button #574

532910 opened this issue Apr 17, 2019 · 9 comments

Comments

@532910
Copy link

532910 commented Apr 17, 2019

Please add support to answer a call with bluetooht headset button.

@Viish
Copy link
Member

Viish commented Apr 17, 2019

We can't do that actually, the event of the bluetooth headset is specific to each headset and is handled by the OS, not forwarded to applications in most cases.

@Viish Viish closed this as completed Apr 17, 2019
@532910
Copy link
Author

532910 commented Apr 17, 2019

Hmm, I'm sure the event is standard for bluetooth profile (HFP/HSP)
Moreover, standard android dialer can handle it.

@Viish
Copy link
Member

Viish commented Apr 17, 2019

Standard Android apps including dialer can't be compared to a third party application.
We don't have access to the same APIs and to my knowledge there is no way to do that. A few years back we tried and we determined we couldn't do it.
If this has changed I'd be interested to see the documentation.

@Viish
Copy link
Member

Viish commented Apr 17, 2019

Thanks for the links.
But we don't use MediaSession so we can't use the MediaButton solution.
And I see no solution either on the Signal's issue.

@Viish
Copy link
Member

Viish commented Apr 17, 2019

For information, we had developed a prototype of linphone-android using Android's TelecomManager, so the default dialer interface is used instead of our own CallIncomingActivity, and that makes the Bluetooth headset's answer button work with Linphone.

@532910
Copy link
Author

532910 commented Apr 19, 2019

Is this
image
a TelecomManager?

So you can do that actually and this issue will be solved. It it better to leave it open untill?

@532910
Copy link
Author

532910 commented Apr 19, 2019

Really there is an another similar issue: "to end the call by bluetooth button" as now it just transfers it to the phone. Is another issue should be opened or this one should be updated?

@DJCrashdummy
Copy link

For information, we had developed a prototype of linphone-android using Android's TelecomManager, so the default dialer interface is used instead of our own CallIncomingActivity, and that makes the Bluetooth headset's answer button work with Linphone.

@Viish that sounds really cool! IIRC CSipSimple worked similar... 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants