Extension direct DID routing (bandwidth.com)

I’m currently trying to set direct DIDs for extensions though my connection with bandwidth.com and I realize that bandwidth.com sends DIDs with a +1 prefix.

I’m wondering if there’s a way to get around this in FreePBX? I try to set the extension as +1NXXNXXNXXX in the direct did box, but when I save changes, it automatically removes the +1.

Any ideas (or maybe already a fix?)

Thanks :slight_smile:

Actually that should read _+X. since international calls will come in with +[2-9] and therefore bog the system.

[quote=“RexPoke”]I’m currently trying to set direct DIDs for extensions though my connection with bandwidth.com and I realize that bandwidth.com sends DIDs with a +1 prefix.

I’m wondering if there’s a way to get around this in FreePBX? I try to set the extension as +1NXXNXXNXXX in the direct did box, but when I save changes, it automatically removes the +1.

Any ideas (or maybe already a fix?)

Thanks :)[/quote]

What I did to address this is remove the +1 on the way in. In the file extensions_custom.conf add this:

[from-pstn-custom]
exten => _+1.,1,Set(DID=${EXTEN:2}) ; Remove +1 from DID
exten => _+1.,n,Set(CALLERID(num)=${CALLERID(num):2}) ; Remove +1 from CID
exten => _+1.,n,Goto(from-trunk,${DID},1)