Skip to main content

Provider VoiceNetwork (Canada)

www.voicenetwork.ca

Last Update: 27 June 2011

You will need to create a file called voicenetwork.xml in your /usr/local/freeswitch/conf/sip_profiles/external directory and copy the information below into the file.

<include>
<gateway name="voicenetwork">
<param name="username" value="<PEERID>"/>
<param name="from-user" value="<PEERID>"/>
<param name="realm" value="sipgw.voicenetwork.ca"/>
<param name="password" value="your_voicenetwork_peer_password"/>
<param name="register" value="true"/>
<param name="rfc2833-pt" value="101"/>
<param name="ping" value="15"/>
</gateway>
</include>

In order to make outbound calls, you will need to create a file in the /usr/local/freeswitch/dialplan/default with the following information:

<extension name="Long Distance">
<condition field="destination_number" expression="^1?([2-9]\d{2}[2-9]\d{6})$">
<action application="set" data="effective_caller_id_name=YOURNAMEHERE"/>
<action application="set" data="effective_caller_id_number=YOURDIDHERE"/>
<action application="bridge" data="sofia/gateway/voicenetwork/1$1"/>
</condition>
</extension>

<extension name="International Calling">
<condition field="destination_number" expression="^011?([2-9]\d{2}[2-9]\d{6})$">
<action application="set" data="effective_caller_id_name=YOURNAMEHERE"/>
<action application="set" data="effective_caller_id_number=YOURDIDHERE"/>
<action application="bridge" data="sofia/gateway/voicenetwork/011$1"/>
</condition>
</extension>