-1

我们曾经让 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

非常感谢您的帮助。如果你让我知道你需要什么额外的日志信息/配置信息,我会在这里更新。

4

1 回答 1

0

我终于可以解决这个问题了。在此处提供详细信息,以防对任何人有所帮助。

根据此链接完成安装(并从源代码构建) https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7+and+RHEL+7#CentOS7andRHEL7-CentOS7andRHEL7-Stable

修复前的状态

当我在 fs_cli 中运行“sofia status”时,我只加载了外部配置文件。如果我尝试“sofia profile internal reload”,它会显示“Invalid profile”。

对 sip_profiles\internal.xml 的更改

在将 internal.xml 与保存的 FS 1.4 版本进行比较时,我发现了这两个差异 -

internal.xml (FS 1.4)

<!--<param name="ws-binding"  value=":5066"/> -->
<!--<param name="wss-binding" value=":7443"/>-->

internal.xml (FS 1.10)

<param name="ws-binding"  value=":5066"/>
<param name="wss-binding" value=":7443"/>

在评论以上两行并重新启动 Freeswitch 时,我发现内部配置文件也已加载(显示为“sofia status”),Freeswitch 正在侦听端口 5060,用户可以注册和拨打电话。我不熟悉那两条线的目的,需要找出来。

于 2020-05-03T04:30:15.110 回答