Configure bandwidth.com SIP Trunking

In FreePBX web interface add 2 SIP trunk (Primary & Secondary)

First SIP Trunk

Outgoing Dial Rules
Outbound Dial Prefix : +

Outgoing Settings
Trunk Name : BW-SIP-A
PEER Details :
canreinvite=yes
dtmfmode=rfc2833
host=216.82.224.202
outboundproxy=216.82.224.202
progressinbound=yes
qualify=300
type=peer
disallow=all
allow=ulaw

Incoming Settings
USER Context : from-bandwidth-A
USER Details :
type=peer
reinvite=yes
port=5060
insecure=invite,port
host=216.82.224.202
fromdomain=216.82.224.202
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw
qualify=300


Second SIP Trunk

Outgoing Dial Rules
Outbound Dial Prefix : +

Outgoing Settings
Trunk Name : BW-SIP-B
PEER Details :
canreinvite=yes
dtmfmode=rfc2833
host=216.82.225.202
outboundproxy=216.82.225.202
progressinbound=yes
qualify=300
type=peer
disallow=all
allow=ulaw

Incoming Settings
USER Context : from-bandwidth-B
USER Details :
type=peer
reinvite=yes
port=5060
insecure=invite,port
host=216.82.225.202
fromdomain=216.82.225.202
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw
qualify=300


Configure Outbound routes

Now you need to add 1 Outbound Routes

Route Name : US-Canada
Dial patterns :
911
1NXXNXXXXXX
1NXXNXXXXXX
etc ..
Trunk sequence :
SIP/BW-SIP-A
SIP/BW-SIP-B



Configure Inbound routes

Description : John Doe
DID Number : +12025081234
Destination : Choose an extension, IVR, Queue, ... (what you want ..)