Skip to main content

Provider Level3 (USA)

Level3.com

Last update: 2 April 2013

Incoming and Outgoing works.

Add the Level3 Gateway IP into the domain section under autoload_configs/acl.conf.xml

<configuration name="acl.conf" description="Network Lists">
<network-lists>
<list name="domains" default="deny">
<node type="allow" cidr="4.55.60.x/32"/>
</list>
</network-lists>
</configuration> 

Create Level3 sip profile under sip_profiles/external/

<include>
<gateway name="Level3">
<param name="auth-username" value="1-XXXXXX"/>
<param name="realm" value="Level3"/>
<param name="password" value="password"/>
<param name="extension" value="default"/>
<param name="proxy" value="4.55.60.x:5070"/>
<param name="sip-port" value="5060"/>
<param name="expire-seconds" value="600"/>
<param name="register" value="false" />
<!--/// Must be set with one of the TN from the Level3 SIP Trunk ///-->
<param name="from-user" value="1234567890"/>
<!--/// Must be set with one of the TN from the Level3 SIP Trunk ///-->
<param name="extension" value="1234567890"/>
<param name="extension-in-contact" value="true"/>
<param name="sip-trace" value="no"/>
</gateway>
</include>

Dialplan Settings - Level3 sends and receives in 10 digit format by default. Inbound dialplan settings (transfer to extension 102):

<include>
<extension name="Level3_inbound">
<condition field="context" data="public"/>
<!-- The following line detects incoming 10 digit calls to number 1234567890 -->
<!-- The line after transfers to extension 102 -->
<condition field="destination_number" expression="^1234567890$>
<action application="transfer" data="102 XML default"/>
</condition>
</extension>
</include>

Outbound dialplan settings (dial 9 then ten digits):

<include>
<extension name="Level3_outbound">
<!-- The following line detects outbound calls with a 9 as a dropped prefix -->
<!-- The line after sends the 10 digit number to the provider -->
<condition field="destination_number" expression="^9(\d{10})$">
<action application="bridge" data="sofia/gateway/Level3/$1"/>
</condition>
</extension>
</include>

In order to be able to send and receive fax, the following must be included in the dialplan

<action application="export" data="t38_passthru=true"/>