我们曾经让 FS 1.4 在 CentOS 6 上运行。但是该服务器必须迁移到 CentOS 7。当我们使用 Freeswitch 1.10 并尝试使用默认配置运行时,我们得到以下错误 -
[ERR] sofia.c:3254 Error Creating SIP UA for profile: external (sip:mod_sofia@<Our IP>:5080;maddr=<Our IP>;transport=udp,tcp)
The likely causes for this are:
1) Another application is already listening on the specified address.
2) The IP the profile is attempting to bind to is not local to this system.
2020-05-02 12:38:55.853768 [ERR] sofia.c:3244 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]:5080;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
2020-05-02 12:38:55.853768 [ERR] sofia.c:3254 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]:5080;transport=udp,tcp)
The likely causes for this are:
1) Another application is already listening on the specified address.
2) The IP the profile is attempting to bind to is not local to this system.
2020-05-02 12:38:55.853768 [ERR] sofia.c:3244 Error Creating SIP UA for profile: internal-ipv6 (sip:mod_sofia@[::1]:5060;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
作为默认安装的一部分,我们提供了 19 个虚拟配置文件。在其中一个中,我们添加了这个 cidr - 并在 FS 启动时得到了这个日志条目 -
2020-05-02 12:45:38.200896 [NOTICE] switch_utils.c:648 Adding 192.0.2.0/24 (allow) [1001@<Our IP>] to list domains
在提示符下,当我们键入“显示注册”时,它显示“0 总计”。
event_socket.conf.xml
<configuration name="event_socket.conf" description="Socket Client">
<settings>
<param name="nat-map" value="false"/>
<param name="listen-ip" value="0.0.0.0"/>
<param name="listen-port" value="8021"/>
<param name="password" value="ClueCon"/>
<param name="apply-inbound-acl" value="loopnet.auto"/>
<!--<param name="stop-on-bind-error" value="true"/>-->
</settings>
</configuration>
在此链接中,我们找到了此注释,但不确定如何应用它。
https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket
"As of 1.6 you must supply an ACL. In order to allow all IPs you can use any_v4.auto in event_socket.conf.xml"
我们参考此页面进行了安装并从源代码构建
https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7+and+RHEL+7#CentOS7andRHEL7-CentOS7andRHEL7-Stable
非常感谢您的帮助。如果你让我知道你需要什么额外的日志信息/配置信息,我会在这里更新。