菜鸟学freeswitch(五)fs_cli无法远程连接FreeSWITCH服务器问题

问题描述:fs_cli无法连接FreeSWITCH服务器

解决方法:https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket

Configuration

First enable the mod_event_socket module in modules.conf.xml (in a system compiled from source this is located in /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml)

By default the module is enabled but restricted to localhost by the settings specified below.

The module settings can be changed in the event_socket.conf.xml file (in a system compiled from source this is located in /usr/local/freeswitch/conf/autoload_configs/event_socket.conf.xml):

<configuration name="event_socket.conf" description="Socket Client">
  <settings>
    <param name="listen-ip" value="127.0.0.1"/>
    <param name="listen-port" value="8021"/>
    <param name="password" value="ClueCon"/>
  </settings>
</configuration>

The default settings allow socket connections only from the local host. To allow connections from any host on the network, use 0.0.0.0 instead of the default 127.0.0.1:

<configuration name="event_socket.conf" description="Socket Client">
  <settings>
    <!-- Allow socket connections from any host -->
    <param name="listen-ip" value="0.0.0.0"/>
    <param name="listen-port" value="8021"/>
    <param name="password" value="ClueCon"/>
  </settings>
</configuration>
最后重启freeswitch,进入到bin目录中,[root@root bin]# fs_cli -H 127.0.0.1 -P 8021 -p ****

 

转载于:https://www.cnblogs.com/pangyangqi/p/10306991.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值