RTP 无法接通 SIP 电话

发布于 2024-12-23 09:55:39 字数 214 浏览 1 评论 0原文

我尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偏爱自由 2024-12-30 09:55:39

您是否从通话开始就进行了捕获?
您是否看到服务器从调用开始就没有发送数据包?

如果服务器未发送单个数据包,则您必须检查 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文