DoubangoTelecom / imsdroid

High Quality Video SIP/IMS client for Google Android
https://doubango.org
Other
296 stars 169 forks source link

Send '*' and '#' as DTMF tone #585

Open luisvega16 opened 8 years ago

luisvega16 commented 8 years ago

Hi, I'm new with the library but I want to know how I can send * and #. I'm using the sendDTMF(int digit) of the class CallSession.java, but this method only receive an int as parameter. In my app, I'm using a custom keyboard, so, I receive a String when the * and # is clicked.

What I have to do? Is impossible? There is another way?

Thanks,

wnieves19 commented 8 years ago

According to Android documentation: https://developer.android.com/reference/android/net/sip/SipAudioCall.html#sendDtmf(int)

"event 0--9 maps to decimal value 0--9, *'' to 10, '#' to 11**, event 'A'--'D' to 12--15, and event flash to 16."

luisvega16 commented 8 years ago

Thanks @wnieves19!