RTP 无法接通 SIP 电话
我尝试在 Android 上创建 sip 电话应用程序,但遇到一些问题,即 Android 模拟器无法访问 RTP 数据包。
由于IP模拟器的原因,我不确定这个问题。 我可以进行 SIP 注册并可以呼叫其他软电话,但当我通话时没有音频。 在我尝试捕获数据包后,我发现服务器无法将 RTP 数据包发送到 android 模拟器。所以,这使得我的程序无法有音频。
我该如何解决这个问题?
I try to create sip phone application on android and I have some problem which is the RTP packet is unreachable to android emulator.
I'm not sure about this problem because of IP emulator.
I can do SIP Register and can call to other soft phone but when I talk there is no audio.
After I try to capture the packet, I see that the server cannot send RTP packet to the android emulator. So, it makes my program cannot have audio.
How can I fix this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否从通话开始就进行了捕获?
您是否看到服务器从调用开始就没有发送数据包?
如果服务器未发送单个数据包,则您必须检查 SDP 参数,例如,
a=发送接收
连接ip
RTP 端口
还要检查您(客户端)和服务器是否位于同一网络中。
如果两者不在同一网络中,则 NAT 可能会影响 RTP 流。
Have you done capture from start of call?
Have you seen no packet sent by server from start of call?
If server not sent single packet then you must check SDP parameters like,
a=sendrecv
connection ip
port of RTP
Also check that you (client) and server both are in same network.
If both are not in same network then NAT may affect RTP flow.