sofia
查看
freeswitch@VM-0-2-centos> sofia statusName Type Data State=================================================================================================172.17.0.2 alias internal ALIASEDexternal profile sip:mod_sofia@172.17.0.2:5080 RUNNING (0)external::example.com gateway sip:joeuser@example.com NOREGexternal::gw1 gateway sip:5151001@140.68.121.161:5060 REGEDinternal profile sip:mod_sofia@106.54.113.73:5060 RUNNING (0)=================================================================================================2 profiles 1 alias
如果显示 gateway gw1 的状态是 REGED ,则表明正确的注册到了网关上。你可以先用命令试一下网关是否工作正常,其中xxxx就是要拨打的电话号码
freeswitch@VM-0-2-centos> originate sofia/gateway/gw1/xxxxxx &echo()
显示拨号计划
reeswitch@VM-0-2-centos> show dialplantype,name,ikeydialplan,LUA,mod_luadialplan,XML,mod_dialplan_xmldialplan,asterisk,mod_dialplan_asteriskdialplan,enum,mod_enumdialplan,inline,mod_dptools5 total.
profile 操作
profile 操作 下面这些指令隐含 reloadxml
sofia profile internal startsofia profile internal stopsofia profile internal restartsofia profile internal rescan 重新扫描参数,不影响通话sofia profile external killgw gw1 删除一个网关,rescan 后重新加载网关sofia profile external register gw1 立即注册sofia profile external unregister gw1 立即注销sofial profile internal siptrace on 开启该 profile 的 SIP 跟踪功能抓取 SIP 报文sofial global siptrace on 开启全局 的 SIP 跟踪功能抓取 SIP 报文
默认
默认用户信息:1000-1019合计20个用户;
查看注册的用户
freeswitch@VM-0-2-centos> sofia status profile internal reg
默认配置信息在
/usr/local/freeswitch/conf/directory/default中
查看
root@VM-0-2-centos:/usr/local/freeswitch/conf/directory/default# cat 1000.xml<include><user id="1000"><params><param name="password" value="$${default_password}"/><param name="vm-password" value="1000"/></params><variables><variable name="toll_allow" value="domestic,international,local"/><variable name="accountcode" value="1000"/><variable name="user_context" value="default"/><variable name="effective_caller_id_name" value="Extension 1000"/><variable name="effective_caller_id_number" value="1000"/><variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/><variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/><variable name="callgroup" value="techsupport"/></variables></user></include>
