Skip to main content

Provider Bandwidth (USA)

Bandwidth.com

Last Update: 8 February 2011

Incoming and Outgoing works. Trunk settings:

<include>
<gateway name="bandwidth.com">
<param name="username" value="username"/>
<param name="password" value="password"/>
<param name="from-user" value="fromuser"/>
<param name="from-domain" value="gateway-ip"/>
<param name="proxy" value="gateway-ip"/>
<param name="expire-seconds" value="600"/>
<param name="register" value="false"/>
<param name="retry_seconds" value="30"/>
<param name="extension" value=""/>
<param name="context" value="public"/>
</gateway>
</include>

Dialplan Settings - bandwidth.com sends and receives in e164 format by default. Inbound dialplan settings (transfer to extension 102):

<include>
<extension name="bandwidth.com inbound">
<condition field="context" data="public"/>
<!-- The following line detects the e164 format on incoming calls -->
<!-- Note: The leading '+' needs to be escaped by adding a '\' before it -->
<condition field="destination_number" expression="^\+18315551234$>
<action application="transfer" data="102 XML default"/>
</condition>
</extension>
</include>

Outbound dialplan settings (dial 9 then ten digits):

<include>
<extension name="bandwidth.com Outbound 9.10d">
<!-- The following line detects outbound calls with a 9 as a dropped prefix -->
<!-- The line after changes the 10 digit number into 11 digit with a leading '+' -->
<condition field="destination_number" expression="^9(\d{10})$">
<action application="bridge" data="sofia/gateway/bandwidth.com/+1$1"/>
</condition>
</extension>