電訊茶室's Archiver

角色 發表於 2012-10-16 01:13

FreeSWITCH Command Line Interface (CLI)

[i=s] 本帖最後由 角色 於 2012-10-16 01:36 編輯 [/i]

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

关于Sofia SIP
[url]http://wiki.freeswitch.org/wiki/Sofia-SIP[/url]

角色 發表於 2012-10-16 01:14

[i=s] 本帖最後由 角色 於 2012-10-16 01:44 編輯 [/i]

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

[attach]1594[/attach]

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

[attach]1595[/attach]

角色 發表於 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

[url]http://wiki.freeswitch.org/wiki/SIP_Message_Logging[/url]

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:

[url]http://wiki.freeswitch.org/wiki/Examples[/url]

角色 發表於 2012-10-19 08:21

To reload external xml file[code]sofia profile external rescan reloadxml[/code]

角色 發表於 2012-10-19 13:10

[i=s] 本帖最後由 角色 於 2012-10-19 13:12 編輯 [/i]

想知道有什么voice channels正在进行中,用status command[code]freeswitch@internal> status
UP 0 years, 0 days, 0 hours, 8 minutes, 21 seconds, 728 milliseconds, 360 microseconds
FreeSWITCH is ready
3 session(s) since startup
3 session(s) 0/30
1000 session(s) max
min idle cpu 0.00/98.00
Current Stack Size/Max 240K/8192K
[/code]上面是
1) 1002拨打 Extension 5000 (ivr_demo) (1 session)
2) Ext. 1001 拨打 Ext. 1000 (2 sessions)

角色 發表於 2012-10-19 13:28

Version of FreeSWITCH[code]freeswitch@internal> version
FreeSWITCH Version 1.2.0-rc2

freeswitch@internal>
[/code]

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.