Skip to main content

Provider MyDivert.com (Ireland)

MyDivert.com

Last update: 6 October 2010

  • Works with incoming and outgoing SIP.
  • On your MyDivert MyAccount page, under SIP Account, Enable SIP Trunking.

conf/sip_profiles/external/mydivert.xml

<include>
<gateway name="mydivert.com">
<param name="username" value="USERNAME"/>
<param name="password" value="PASSWORD"/>
<param name="from-user" value="USERNAME"/>
<param name="from-domain" value="YOUR EXT IP"/>
<param name="proxy" value="sip1.mydivert.com"/>
<param name="expire-seconds" value="600"/>
<param name="register" value="true"/>
<param name="retry_seconds" value="30"/>
<param name="extension" value=""/>
<param name="context" value="public"/>
<param name="extension-in-contact" value="true"/>
</gateway>
</include>

conf/dialplan/default/01_mydivert.xml: This assumes you have an Amsterdam number beginning with 3120

<extension name="Local Amsterdam">
<condition field="destination_number" expression="^([0-9]{7})$">
<action application="set" data="effective_caller_id_name=JANE DOE"/>
<action application="set" data="effective_caller_id_number=YOUR_NUMBER"/>
<action application="bridge" data="sofia/gateway/mydivert.com/3120$1"/>
</condition>
</extension>

<extension name="International">
<condition field="destination_number" expression="^00([0-9]*)$">
<action application="set" data="effective_caller_id_name=JANE DOE"/>
<action application="set" data="effective_caller_id_number=YOUR_NUMBER"/>
<action application="bridge" data="sofia/gateway/mydivert.com/00$1"/>
</condition>
</extension> 

conf/dialplan/public/00_mydivert_inbound_did.xml

<include>
<extension name="MyDivert_Inbound">
<condition field="destination_number" expression="^USERNAME$">
<action application="info"/>
<action application="set" data="domain_name=$${domain}"/>
<action application="set" data="transfer_ringback=$${nl-ring}"/>
<action application="transfer" data="1000 XML default"/>
<!-- Not sure that this is really needed -->
<action application="set" data="hangup_after_bridge=true"/>
</condition>
</extension>
</include>