Provider Configuration: QXIP

From FreeSWITCH Wiki
Jump to: navigation, search

QXIP

Inbound, Outbound, Audio & Video, All FS codecs supported & enabled

Sample Gateway

  • conf/sip_profiles/outbound/qxip-gw.xml
<include>
  <gateway name="qxip.net">
    <param name="username" value="qxxxxx"/>
    <param name="password" value="xxxxxxxxxx"/>
    <param name="realm" value="sip.qxip.net"/>
    <param name="proxy" value="sip.qxip.net"/>
    <param name="register" value="true"/>
  </gateway>
</include>

Sample Dialplan

  • conf/dialplan/default.xml
  <include>
    <context name="default">
      <extension name="QXIP INum Out">
        <condition field="destination_number" expression="^883?(\d+)$">
          <action application="bridge" data="sofia/gateway/qxip.net/883$1"/>
        </condition>
      </extension>
    </context>
    <context name="inbound">
       <extension name="QXIP INum In">
        <condition field="destination_number" expression="^(883510123456789)$">
         <action application="transfer" data="1234 XML default"/>
        </condition>
        </extension>
    </context>
  </include>