计算机知识分享网

【freeswitch】freeswitch常用命令介绍

Linux启动freeswitch:
cd /usr/bin

./freeswitch  -nonat -nc

加-nc 表示后台运行
可以禁用sqllite启动
./freeswitch  -nonat -nc -nosql
退出fs-cli
/bye
关闭freeswitch:
shutdown
查看freeswitch默认端口是否被启用
netstat -anp | grep 5060
查看freeswitch在线用户
sofia status profile internal reg
查看账号1000是否注册
sofia status profile internal reg 1000
查看当前通话数
show calls
查看当前通道数
show channels
查看版本以及运行状态
status
查看sofia的日志通过log
grep sofia freeswitch.log 
查看freeswitch的端口是否正常启动
[root@localhost ~]# netstat -anp | grep 5060
tcp        0      0 10.168.1.128:5060       0.0.0.0:*               LISTEN      4864/./freeswitch   
tcp6       0      0 ::1:5060                :::*                    LISTEN      4864/./freeswitch   
udp        0      0 10.168.1.128:5060       0.0.0.0:*                           4864/./freeswitch   
udp6       0      0 ::1:5060                :::*                                4864/./freeswitch
查看freeswitch安装位置
[root@localhost ~]# whereis freeswitch
freeswitch: /usr/local/freeswitch

#Freeswitch