Xoom WiFI / Android 3.0 上的 sendDtmf
« SipAudioCall » 类中的 « sendDtmf » 方法真的有效吗 在 Android 3.0/摩托罗拉 Xoom WiFi 上?
我正在为 Android 3.0 平板电脑开发 SIP 激活应用程序 并在 Motorola Xoom WiFi(无 3G 或 4G)上进行测试,
我能够: - 使用“SipManager.newInstance()”创建一个“SipManager” - 使用“manageurSip.makeAudioCall()”来检索我的语音邮件 SIP 提供商帐户 - 在“onCallEstablished”回调中,我可以使用“startAudio()” 和“setSpeakerMode(true)”来收听消息
但是当我尝试使用“sendDtmf(int)”来保存或删除我的消息时, 什么也没发生。
如果我尝试使用已经开发的 SIP 应用程序“CSIPSimple”,我 我也无法发送 DTMF 音。
我应该等待 Android 3.1 才能使用此功能吗?
先感谢您。
Does the « sendDtmf » method from « SipAudioCall » class really work
on Android 3.0 / Motorola Xoom WiFi ?
I am developping a SIP activated application for Android 3.0 tablets
and testing it on Motorola Xoom WiFi (no 3G nor 4G)
I am able to :
- create a « SipManager » with « SipManager.newInstance() »
- use « manageurSip.makeAudioCall() » to retrieve my voicemail in my
SIP provider account
- in the « onCallEstablished » callback, I can use « startAudio() »
and « setSpeakerMode(true) », to hear messages
But when I try to use « sendDtmf(int) » to save or delete my messages,
nothing happens.
If I try to use an already developped SIP application "CSIPSimple", I
am also unable to send DTMF tones.
Should I wait for Android 3.1 to use this feature ?
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DTMF 对于 VoIP 来说并非小事,因此问题可能出在 Android 之外。我可以帮你解决这个问题。
首先弄清楚您的对等方支持哪种 DTMF 传输方法:RTP 事件、SIP INFO 或带内。
RTP 事件支持在 SDP 中指示:a=fmtp:...
INFO 必须至少位于 Accpets 标头中,如果存在,请在不同的客户端上尝试。
带内 DTMF 需要音调正确编解码器,通常是普通 G711。
DTMF is not trivial is VoIP, so the problem may lie outside Android. I can help you troubleshoot that.
First figure out which DTMF transfer method is supported by your peer: RTP events, SIP INFO, or inband.
RTP events support is indicated in the SDP: a=fmtp:...
INFO must at least be in the Accpets header, if present, try it with a different client.
Inband DTMF requires tone-correct codec, usually plain G711.