fs02 FreeSWITCH常用命令总结

阅读说明: 

  下列命令为日常操作接触到的命令,也是依据个人经验解释,故解释细节不深入,准确性不保证100%,仅作参考

 

1. fs_cli中F1 ~ F12快捷键说明

  F1 == help

  F2 == status

  F3 == show channels 

  F4 == show calls

  F5 == sofia status

  F6 == reloadxml

  F7 == /log console

  F8 == /log debug

  F9 == sofia s tatus profile internal

  F10 == fsctl pause

  F11 == fsctl resume

  F12  == version

 

2. originate

  见笔记 

 

3. sofia loglevel all 9
   开启 c 文件日志打印,最详细


4 tig
  查看 git 版本

 

5. 生成默认配置

  make sample 可以生成默认配置


6 freeswitch 启动参数
  /usr/local/freeswitch/bin/freeswitch -nonat -nc
  -nonat 不考虑 nat
  -nc 表示在服务器上后台启动


7 status
  列出 freeswitch 当前状态


8 sofia status
  列出 sofia 模块的状态信息
9. 测试echo

  9196  echo 电话


10 sofia profile internal siptrace on
  开启 sip 信息打印


11 sofia status profile internal reg
  查看注册信息


12 sofia status profile internal reg 1000
  过滤某些符合条件的用户


13 sofia status profile internal

  列出某个 profile 的状态


14. 查看指定用户状态

  sofia status profile internal user 1000

 

15. 查看指定网关的状态

  sofia status gateway gwl: 列出网关状态
  sofia xmlstatus gateway gwl: 上面命令可以将 status 使用 xmlstatus 代替,列出 xml 格式的状态

  show channels: 查看通道信息


16. 媒体信息打印输出

   uuid_debug_media [uuid] all on: 媒体信息


17 reloadxml:

  修改完配置文件之后,执行该命令更新 freeswitch.xml 中配置的文件到内存。

  -- 未验证所有包含的文件,初步验证了dialplan中的

 

18. 查看支持编码类型

   show codec: 查看 FreeSWITCH 支持的编码类型,使用fs_cli执行 show codec 命令查看

 

19. reload mod_silk:

  当不清楚某种编码所提供的各种参数时,可以使用 reload mod_sild 命令查看

 

20 reload mod_ilbc:

  iLBC 编码也是由独立的模块提供的

 

21 reload mod_sofia

  在修改完 vars.xml 配置之后,执行该命令重新载入新的配置信息


22 sofia_contact 1000: 找到1001真正注册的Contact地址


23. 加载配置网关

    sofia profile external rescan 

 

posted @   cpp-muggle  阅读(724)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
点击右上角即可分享
微信分享提示