freeswitch 常见命令
1. 进入控制台
./fs_cli -H 192.168.140.180 -P 8031 -p testtest
当我们的一台机器中有多个网关时候,需要加-H参数
2. 查看fs分机注册情况
./fs_cli -H 192.168.140.180 -P 8031 -p testtest -x 'sofia status profile internal reg'
3. 查询网关注册状态
./fs_cli -P 8031 -p testtest -x 'sofia status'
4. fs网关重新加载
freeswitch xml配置文件新增网关后,使其生效,可以重启freeswitch或者使用命令方式
./fs_cli -P 8031 -p testtest -x 'sofia profile external rescan'
5. fs端发起外部网关呼叫
我们已经接入了外部落地网关,然后在没有部署平台时候,发起呼叫,命令如下(使用主叫:05337357591通过外部网关gw1拨打13226595347):
originate {origination_caller_id_name=05337357591,origination_uuid=00002822-0599,origination_caller_id_number=05337357591}sofia/gateway/gw1/13226595347 &echo
6. fs查看有多少电话在线
./fs_cli {-H 主机} -P 8031 -p testtest -x 'show calls'
7.查看拨号计划
show dialplan
8.查看版本
./fs_cli -H 127.0.0.1 -P 8031 -p testtest -x 'version'
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。