Provider Configuration: Link2VoIP

From FreeSWITCH Wiki
Jump to: navigation, search

Link2VoIP


<include>
  <gateway name="link2voip1">
  <param name="username" value="xxxxxxxx"/>
  <param name="password" value="xxxxxxxx"/>
  <param name="proxy" value="sip.ca1.link2voip.com"/>
  <param name="register" value="true"/>
  <param name="register-transport" value="udp"/>
  <param name="retry-seconds" value="30"/>
  </gateway>
  <gateway name="link2voip2">
  <param name="username" value="xxxxxxxx"/>
  <param name="password" value="xxxxxxxx"/>
  <param name="proxy" value="sip.ca2.link2voip.com"/>
  <param name="register" value="true"/>
  <param name="register-transport" value="udp"/>
  <param name="retry-seconds" value="30"/>
  </gateway>
</include>

Sample DID Mapping

<include>
  <extension name="public_did">
    <condition field="${sip_to_user}" expression="^(1.*)$">
      <action application="set" data="domain_name=$${domain}"/>
      <action application="bridge" data="user/10000"/>
    </condition>
  </extension>

</include>