问题描述
我实际上可以从头开始制作 mVoIP 服务,这非常有趣.我终于可以通过 SIP 协议使用 OpenSIPs 源进行呼叫.我使用了外部 STUN 服务器来帮助我找到 NAT 防火墙后面的用户私有 IP 地址.
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.
但是,当智能手机在 3G 或 4G 网络上时,免费的外部 STUN 服务器无法找到用户的 IP 地址来拨打电话.作为一名程序员,我不会放弃做 mVoIP 服务.但是,此时我需要你们的帮助.
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.
推荐答案
这里可能有两个问题:
-您无法在所有类型的 NAT 后面找到正确的外部地址.这仅取决于 NAT 类型
-you can't find the correct external address behind all kind of NAT. This depends on the NAT type only
-一些移动运营商阻止 STUN.您可以添加一些修改后的眩晕或简单的加密作为解决方法
-some mobile operators blocks STUN. You can add some modified stun or a simple encryption as a workaround
这篇关于在 3G/4G 网络下工作的 STUN 和 TURN 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!