A STUN and TURN server that work under 3G/4G Network

*爱你&永不变心* 提交于 2019-12-08 02:54:08

问题


It is very interesting that I can actually make a mVoIP service from the scratch. I finally could make a call using OpenSIPs source through SIP protocol. I used external STUN server that helps me to find users' private IP address behind NAT firewalls.

However, the free external STUN server cannot find user's IP address to make a call when a smartphone is on 3G or 4G network. As a programmer, I won't give up to make a mVoIP service. However, I need a help at this time from you guys.

Is there a good way to solve this problem? Thank you.


回答1:


There can be two problems here:

-you can't find the correct external address behind all kind of NAT. This depends on the NAT type only

-some mobile operators blocks STUN. You can add some modified stun or a simple encryption as a workaround




回答2:


I actually could find IP address using external STUN server, however it failed to connect media session on 3G/4G network. So, I decided to use RTP proxy to make a SIP call.

OpenSIPs provides RTP proxy module, and it helps to make a call without NAT issue.



来源:https://stackoverflow.com/questions/21155888/a-stun-and-turn-server-that-work-under-3g-4g-network

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!