• 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主机一样,反过来设置

  • 相关阅读:
    Can't connect to local MySQL server through socket '/tmp/mysql.sock'
    reversePairs
    sort
    分割数组的最小值
    decode string
    276. 栅栏涂色
    133. Clone Graph
    Palindromic string
    爬楼梯
    正则匹配
  • 原文地址:https://www.cnblogs.com/zgen1/p/8520133.html
Copyright © 2020-2023  润新知