fs_cli後台指令集


查看媒體流

先找uuid,以下指令列出所有啟用中的channel

freeswitch@develop> show channels
51dd07c2-c53e-11e8-9b1f-c59bbab73dc4,inbound,2018-10-01 13:53:28,1538373208,sofia/external/2250@develop.cloudpe.com:5090,CS_EXECUTE,se02,2250,60.250.106.18,*831,bridge,sofia/internal/831@60.250.106.13:5080,XML,default,opus,48000,0,opus,48000,0,srtp:dtls:AES_CM_128_HMAC_SHA1_80,develop,,,,ACTIVE,Outbound Call,831,SEND,51dd07c2-c53e-11e8-9b1f-c59bbab73dc4,Outbound Call,831,se02,2250,60.250.106.18,*831,XML,public
51de2b02-c53e-11e8-9b2f-c59bbab73dc4,outbound,2018-10-01 13:53:28,1538373208,sofia/internal/831@60.250.106.13:5080,CS_EXCHANGE_MEDIA,se02,2250,60.250.106.18,831,,,XML,default,PCMU,8000,64000,PCMU,8000,64000,,develop,,,,ACTIVE,Outbound Call,831,SEND,51dd07c2-c53e-11e8-9b1f-c59bbab73dc4,se02,2250,se02,2250,60.250.106.18,831,XML,default

上述第一個欄位即是uuid,找出想查詢的channel,如果要顯示雙向的媒體音訊流

freeswitch@develop> uuid_debug_media 51dd07c2-c53e-11e8-9b1f-c59bbab73dc4 both on

如果要雙向的視訊流,將both換成vboth
如果要單向的音訊流,將both換成read 或 write
如果要單向的視訊流,將both換成vread 或 vwrite

測試stun

freeswitch@develop> stun 203.69.6.135:3478
203.69.6.135:50626

查看所有已经在其上注册的用户

  • freeswitch> sofia status profile internal reg
  • freeswitch> sofia status profile external reg
  • freeswitch> sofia xmlstatus profile internal reg
  • freeswitch> show registrations

查看sofia模块状态

  • freeswitch> sofia status

查看freeswitch状态

  • freeswitch> status

重新加载xml

  • freeswitch> reloadxml

查看通話

  • freeswitch> show calls

查看版本

  • freeswitch> version

打开/关闭 console log

0 "CONSOLE",
1 "ALERT",
2 "CRIT",
3 "ERR",
4 "WARNING",
5 "NOTICE",
6 "INFO",
7 "DEBUG"

  • 不要動態於fs_cli顯示log
  • freeswitch> console loglevel 0
  • 動態於fs_cli顯示log
  • freeswitch> console loglevel 7

啟動/關閉freeswitch

前景執行

  • 啟動
    $ sudo /opt/freeswitch/bin/freeswitch
    freeswitch@FreeSWITCH>
    
  • 停止
    freeswitch@FreeSWITCH>shutdown
    
    或是開啟另一個terminal登入
    $ sudo /opt/freeswitch/bin/fs_cli -x "shutdown"
    +OK
    

背景執行

  • 啟動
    $ sudo /opt/freeswitch/bin/freeswitch -nc
    20953 Backgrounding.
    
  • 停止
    $ sudo /opt/freeswitch/bin/freeswitch -stop
    
#freeswitch






你可能感興趣的文章

# Python - 統計模組(statistics)

# Python - 統計模組(statistics)

Day03 運籌帷幄

Day03 運籌帷幄

Docker 基本操作

Docker 基本操作






留言討論