Freeswitch对接三汇网关

2020-04-15

三汇无线语音网关与freeswitch互打

环境:语音网关三汇smg4032

freeswitch1.8

坐席软电话:

microsip

拓扑图

image-20191211111519510

  1. 配置三汇语音网关

    添加端口组

    image-20191211111947946

    端口静态绑定

    image-20191211111609148

    路由配置

    image-20191211111712730

  2. 配置freeswitch

    注册三汇语音网关

    1
    2
    3
    4
    5
    6
    7
    8
    <include>
    <gateway name="smg4032">
    <param name="realm" value="192.168.50.199"/>
    <param name="expire-seconds" value="3600"/>
    <param name="register" value="false"/>
    <param name="retry-seconds" value="30"/>
    </gateway>
    </include>

    Inbound路由配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    <extension name="6666666" continue="false" uuid="5b0c7c95-9aff-4824-96c7-b131d1e700de">
    <condition field="destination_number" expression="^(6666666)$">
    <action application="export" data="call_direction=inbound" inline="true"/>
    <action application="set" data="domain_uuid=7c612313-2f19-452e-9cf5-ce7871c588ea" inline="true"/>
    <action application="set" data="domain_name=192.168.50.188" inline="true"/>
    <action application="set" data="hangup_after_bridge=true"/>
    <action application="set" data="continue_on_fail=true"/>
    <action application="transfer" data="1001 XML 192.168.50.188"/>
    </condition>
    </extension>
  1. 配置坐席电话

    注册到Freeswitch(无nat情况)

    image-20191211145127711

    注册到Freeswitch(nat情况)

    image-20191211145024413