Board logo

標題: FreeSWITCH Command Line Interface (CLI) [打印本頁]

作者: 角色    時間: 2012-10-16 01:13     標題: FreeSWITCH Command Line Interface (CLI)

本帖最後由 角色 於 2012-10-16 01:36 編輯

FreeSWITCH (FS) Command Line Interface (CLI) 是一个非常重要的interface,就如Asterisk的CLI,可以知道很多信息。

关于Sofia SIP
http://wiki.freeswitch.org/wiki/Sofia-SIP
作者: 角色    時間: 2012-10-16 01:14

本帖最後由 角色 於 2012-10-16 01:44 編輯

sofia status : 显示sofia (自己softphone)的信息,例如:

0064.png

sofia status profile internal reg : 显示internal profile的registration的status

0065.png

圖片附件: 0064.png (2012-10-16 01:41, 9.27 KB) / 下載次數 616
http://telecom-cafe.com/forum/attachment.php?aid=1594&k=3654165850fe8eeb7fc07de3f1cd19ad&t=1732531566&sid=SCN9zZ



圖片附件: 0065.png (2012-10-16 01:43, 26.46 KB) / 下載次數 594
http://telecom-cafe.com/forum/attachment.php?aid=1595&k=db0eb4b473d069210fac5f2de8d140eb&t=1732531566&sid=SCN9zZ


作者: 角色    時間: 2012-10-16 01:14

备用帖子。
作者: 角色    時間: 2012-10-16 01:16

备用帖子。
作者: 角色    時間: 2012-10-16 01:16

备用帖子。
作者: 角色    時間: 2012-10-16 01:16

备用帖子。
作者: 角色    時間: 2012-10-16 01:22

备用帖子。
作者: 角色    時間: 2012-10-16 01:22

备用帖子。
作者: 角色    時間: 2012-10-16 01:22

备用帖子。
作者: 角色    時間: 2012-10-16 01:23

备用帖子。
作者: 角色    時間: 2012-10-16 01:24

备用帖子。
作者: 角色    時間: 2012-10-16 01:24

备用帖子。
作者: 角色    時間: 2012-10-16 01:24

备用帖子。
作者: 角色    時間: 2012-10-16 01:25

备用帖子。
作者: 角色    時間: 2012-10-16 01:25

备用帖子。
作者: 角色    時間: 2012-10-16 01:26

备用帖子。
作者: 角色    時間: 2012-10-18 16:07

Reloading

If you've made a change in sofia.conf.xml, there are two ways to get FreeSWITCH to use the new values.

    shutdown and restart FreeSWITCH (or)
    unload and load mod_sofia

If you've only made changes to a particular profile, you may simply (WARNING: will drop all calls associated with this profile):

    sofia profile <profilename> restart reloadxm
作者: 角色    時間: 2012-10-18 18:04

http://wiki.freeswitch.org/wiki/SIP_Message_Logging

Turning logging on in the FreeSWITCH SIP stack (Sofia)

The mod_sofia wiki page discusses how to enable SIP messages logging Debugging Sofia Sip.

The easiest way to turn it on is from the Freeswitch console. Type:

sofia profile internal siptrace on
sofia profile external siptrace on

Using a Network Protocol Analyser

You can use wireshark [[1]] or other network protocol analyser to view/save SIP and RTP. In windows xp it is not always possible to sniff traffic that doesn't leave the network card (e.g. if sip phone and freeswitch are on the same machine).
Using a Sip or TCP Proxy

You can place a SIP or TCP proxy between sip phone and freeswitch and configure the sip phone to use the proxy as it's outbound proxy. The proxy should be configured to forward to freeswitch.

Grinder [[2]], a java load testing app, can be configured as a port forwarding TCP proxy [[3]]. You cam configure it to listen to, say, 5090 and forward to freeswitch on 5060. The Sip UA should then be configured to use port 5090.

Note, due to the nature of SIP subsequent sip requests (e.g. BYE) won't use the proxy but will pass directly between sip phone and freeswitch unless the proxy is 'record routing'.
作者: 角色    時間: 2012-10-18 18:11

There are many examples which could be obtainable from the following link:

http://wiki.freeswitch.org/wiki/Examples
作者: 角色    時間: 2012-10-19 08:21

To reload external xml file
  1. sofia profile external rescan reloadxml
複製代碼

作者: 角色    時間: 2012-10-19 13:10

本帖最後由 角色 於 2012-10-19 13:12 編輯

想知道有什么voice channels正在进行中,用status command
  1. freeswitch@internal> status
  2. UP 0 years, 0 days, 0 hours, 8 minutes, 21 seconds, 728 milliseconds, 360 microseconds
  3. FreeSWITCH is ready
  4. 3 session(s) since startup
  5. 3 session(s) 0/30
  6. 1000 session(s) max
  7. min idle cpu 0.00/98.00
  8. Current Stack Size/Max 240K/8192K
複製代碼
上面是
1) 1002拨打 Extension 5000 (ivr_demo) (1 session)
2) Ext. 1001 拨打 Ext. 1000 (2 sessions)
作者: 角色    時間: 2012-10-19 13:28

Version of FreeSWITCH
  1. freeswitch@internal> version
  2. FreeSWITCH Version 1.2.0-rc2

  3. freeswitch@internal>
複製代碼





歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2