CentOS 7上的Freeswitch 1.10:启动服务器时出错,并且没有用户注册

问题描述 投票:-1回答:1

我们曾经在CentOS 6上使用过FS 1.4,但是该服务器必须迁移到CentOS7。当我们使用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

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

ipv6 freeswitch sofia-sip
1个回答
0
投票

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

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

修复前的状态

[当我在fs_cli中运行“索非亚状态”时,我仅加载了外部配置文件。如果我尝试“ sofia配置文件内部重新加载”,则显示“无效的配置文件”。

更改为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,用户可以注册并拨打电话。我不熟悉这两行的目的,需要找出。

© www.soinside.com 2019 - 2024. All rights reserved.