我使用android SIP(android.net.sip)
爲VOIP
通話。嘗試發送DTMF。在SipAudioCall
類的android二方法已經給Android原生SIP DTMF
void sendDtmf(int code, Message result)
Sends a DTMF code.
void sendDtmf(int code)
Sends a DTMF code.
我想用sendDtmf(int code)
方法發送DMTF。但我不知道如何可以變化它是否實際發送或不。在實施這個之後,我在收件人/發件人一方沒有聽到任何聲音。調用這個給我沒有效果(因爲它的後臺處理是不可見的)。任何人都可以請讓我知道我怎麼能變相同?另請說明我使用第二種方法sendDtmf(int code, Message result)
。
此外這個答案可能會有所幫助https://stackoverflow.com/questions/43515604/tonegenerator-crashes-in-android-6-0/45179525#45179525 – crockwave