FreeSWITCH常用命令
FreeSWITCH常用命令
1.查看注册用户:
sofia status profile internal reg sofia status profile internal reg 8001 sofia xmlstatus profile internal reg 8001 show registrations show registrations as xml show registrations as json
重启FS:
fsctl shutdown restart
删除注册用户:
sofia profile internal flush_inbound_reg 8001
全局变量查询:
eval $${变量名}
查询落地网关
sofia status gateway 或者 sofia status
查询DOWN的落地网关
sofia profile external gwlist down
查询UP的落地网关
sofia profile external gwlist up
重启落地
sofia profile external restart else: sofia profile external restart reloadxml (deleted & add gateway) sofia profile external rescan reloadxml (Ignoring duplicate gateway)
2.客户端登陆:
fs_cli -H 127.0.0.1 -P 8021 -p abcdefg /usr/local/freeswitch/bin/fs_cli -H 127.0.0.1 -P 8021 -p abcdefg
3.查询当前通道
show channels like sofia/external/ show channels like sofia/internal/
4.启动freeswitch
freeswitch -nonat -nosql -rp freeswitch -nonat -nosql -nc
5.设置日志级别:
console loglevel 4
6.刷新网关配置:
sofia profile external rescan sofia profile internal rescan
7.重启网关配置:
sofia profile internal restart sofia profile external restart
8.开启sip bug
sofia profile internal siptrace on
9.关闭
sofia profile internal siptrace off