freeswitch 常用命令

1.查询系统用户:
sofia status profile internal reg
2.客户端登陆:
fs_cli -H 127.0.0.1 -P 8021 -p hmzj

3.查询当前通道

show channels like sofia/external/
show channels like sofia/internal/

4.启动freeswitch
freeswitch -nonat -nosql -rp
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

10.批量生成用户
centos 脚本生成用户
for i in `seq 1100 1200`; do sed -e "s/1005/$i/" 1005.xml > $i.xml ; done

原文地址:https://www.cnblogs.com/setout/p/10876857.html