FreeSWITCH与FreeSWITCH对接

(主机A ---> 主机B)
192.168.100.A主机:
修改/usr/local/freeswitch/conf/dialplan/default.xml
 10         <extension name="192.168.100.B">
 11             <condition field="destination_number" expression="^0(.*)$" >
 12                 <action application="bridge" data="sofia/external/sip:$1@192.168.100.B:5080"/>
 13             </condition>
 14         </extension>
192.168.100.B主机:
B在5080端口收到INVITE请求,而5080默认走public Dialplan,所以配置public.xml
 10         <extension name="192.168.100.A">
 11             <condition field="destination_number" expression="^(10[01][0-9])$" >
 12                 <action application="transfer" data="$1 XML default"/>
 13             </condition>
 14         </extension>
执行tansfer把来话转到default Dialplan,查找defau.xml
 10         <extension name="192.168.100.A">
 11             <condition field="destination_number" expression="^(10[01][0-9])$" >
 12                 <action application="bridge" data="user/${destination_number}@${domain_name}"/>
 13             </condition>
 14         </extension>
192.168.100.B主机:
与A主机一样,反过来设置

上一篇:使用Angularjs和Vue.js对比


下一篇:ArcGIS API for Silverlight 调用WebService出现跨域访问报错的解决方法