问题参考:
https://quantum6.blog.csdn.net/article/details/109411244
朋友拿吾配置,跟自己的配置对比了一下,发现了可疑之处。吾试之,果然正常了,如下:
[root@freeswitch conf]# netstat -anp | grep freeswitch tcp 0 0 192.168.1.111:5066 0.0.0.0:* LISTEN 1982/freeswitch tcp 0 0 192.168.1.111:8081 0.0.0.0:* LISTEN 1982/freeswitch tcp 0 0 192.168.1.111:8082 0.0.0.0:* LISTEN 1982/freeswitch tcp 0 0 192.168.1.111:7443 0.0.0.0:* LISTEN 1982/freeswitch tcp 0 0 192.168.1.111:5080 0.0.0.0:* LISTEN 1982/freeswitch tcp 0 0 192.168.1.111:5060 0.0.0.0:* LISTEN 1982/freeswitch tcp6 0 0 ::1:8081 :::* LISTEN 1982/freeswitch tcp6 0 0 ::1:8082 :::* LISTEN 1982/freeswitch tcp6 0 0 :::8021 :::* LISTEN 1982/freeswitch tcp6 0 0 ::1:5080 :::* LISTEN 1982/freeswitch tcp6 0 0 ::1:5060 :::* LISTEN 1982/freeswitch udp 0 0 192.168.1.111:53896 192.168.1.8:5351 ESTABLISHED 1982/freeswitch udp 0 0 192.168.1.111:5060 0.0.0.0:* 1982/freeswitch udp 0 0 192.168.1.111:5080 0.0.0.0:* 1982/freeswitch udp 0 0 0.0.0.0:1337 0.0.0.0:* 1982/freeswitch udp 0 0 239.255.255.250:1900 0.0.0.0:* 1982/freeswitch udp6 0 0 ::1:5060 :::* 1982/freeswitch udp6 0 0 ::1:5080 :::* 1982/freeswitch unix 3 [ ] STREAM CONNECTED 23266 1982/freeswitch unix 3 [ ] STREAM CONNECTED 24510 1982/freeswitch unix 3 [ ] STREAM CONNECTED 24511 1982/freeswitch unix 3 [ ] STREAM CONNECTED 27349 1982/freeswitch unix 3 [ ] STREAM CONNECTED 27344 1982/freeswitch unix 3 [ ] STREAM CONNECTED 23261 1982/freeswitch unix 3 [ ] STREAM CONNECTED 24508 1982/freeswitch unix 3 [ ] STREAM CONNECTED 27347 1982/freeswitch unix 3 [ ] STREAM CONNECTED 27346 1982/freeswitch unix 3 [ ] STREAM CONNECTED 26049 1982/freeswitch unix 3 [ ] STREAM CONNECTED 23260 1982/freeswitch unix 3 [ ] STREAM CONNECTED 24509 1982/freeswitch unix 3 [ ] STREAM CONNECTED 23267 1982/freeswitch unix 3 [ ] STREAM CONNECTED 27348 1982/freeswitch unix 3 [ ] STREAM CONNECTED 26050 1982/freeswitch unix 3 [ ] STREAM CONNECTED 27345 1982/freeswitch
怎么解决?要修改文件。
编译前的文件:conf/vanilla/vars.xml
编译后的文件:/usr/local/freeswitch/conf/vars.xml
<!-- <X-PRE-PROCESS cmd="stun-set" data="external_rtp_ip=stun:stun.freeswitch.org"/> --> <X-PRE-PROCESS cmd="stun-set" data="external_rtp_ip=$${local_ip_v4}"/> <!-- <X-PRE-PROCESS cmd="stun-set" data="external_sip_ip=stun:stun.freeswitch.org"/> --> <X-PRE-PROCESS cmd="stun-set" data="external_sip_ip=$${local_ip_v4}"/>
此处的$${local_ip_v4可以换成本机的IP,如192.168.1.111
这个问题不是吾解决的,吾亦是借花献佛。