Skip to main content

Setting up bandwidth.com trunk using e.164 dialing

Posted by cbbs70a on Sat, 08/24/2013

All;
I'm trying to setup a trunk from bandwidth.com using e.164. I'm able to make outbound calls without a problem, but when I make an inbound call, the 10 digit DID is showing up prefaced with a +1. I tried stripping off the first two characters but still no luck. I'm not sure exactly what I'm missing, but it must be something very simple. I tried creating an inbound route matching 10 digits, a route matching 1 plus 10 digits, and one matching +1 plus 10 digits to no avail. What am I missing here? Any help at all would be greatly appreciated.
Thanks;
Frank


Submitted by eeman on Mon, 08/26/2013 Permalink

+15025894638 works for me on inbound routes in asterisk without issue. check the CLI output for some 'sent to invalid extension VALUE in CONTEXT' statement.

Submitted by cbbs70a on Thu, 08/29/2013 Permalink

Thanks for the feedback. I made it more difficult than it needed to be. I created the context (I found this from another post)

[from-bandwidth]
exten => _+X.,1,Set(DID=${EXTEN:2})
exten => _+X.,n,Set(CALLERID(num)=${CALLERID(num):2})
exten => _+X.,n,Goto(from-outside,${DID},1)

then used that context in sip.conf for the trunk definition.
Regards;
FSD