Provider Configuration: Voiptalk

From FreeSWITCH Wiki
Jump to: navigation, search

Note - this may not be the best or the right configuration - I offer it purely on a it-works-for-me basis! Feel free to improve!

In the following, [my-voiptalk-id] is typically about 9 digits long and can be found on your account page. [my-voiptalk-password] is a set of random letters and numbers, eg. f3z64E, which can be found by clicking on the ID on your account page.

<include>
  <gateway name="voiptalk">
  <param name="username" value="[my-voiptalk-id]"/>
  <param name="realm" value="voiptalk.org"/>
  <param name="from-user" value="[my-voiptalk-id]"/>
  <param name="from-domain" value="voiptalk.org"/>
  <param name="password" value="[my-voiptalk-password]"/> 
  <param name="extension" value="voiptalk-incoming"/>
  <param name="proxy" value="voiptalk.org"/>
  <param name="register-proxy" value="voiptalk.org"/>
  <param name="expire-seconds" value="600"/>
  <param name="register" value="true"/>
  <param name="ping" value="25"/>
  </gateway>
</include>

Inbound routing in dialplan/public/12_voiptalk.xml is then:

<include>
  <extension name="voiptalk-incoming">
    <condition field="destination_number" expression="^(voiptalk-incoming)$">
      <!-- Our main incoming greeting extension is called 'frontdoor' -->
      <action application="transfer" data="frontdoor XML default"/>
    </condition>
  </extension>
</include>

For outgoing calls, I use something like the following:

<include>
  <extension name="outgoing">      
    <condition field="destination_number" expression="^9([0-9]+)$">
      <action application="bridge" data="sofia/gateway/voiptalk/$1" />
    </condition>
  </extension>
</include>