Support needed to incorporate "+1" in dial plan fo

Hello Everyone:

I’m trying to incorporate a “+1” in the dial plan in the asterisk for all calls dialed into the USA from outside. I know that “001” can be added and is usually dialed while dialing a US number from the outside world; however, this is specifically for an FMC project that I’ve been working on for a while.

The PSTN also takes care of the +1, so incoming calls into the asterisk are handled perfectly, but when it gets a +1617XXXXXXX number it does not know what to do with it. I want to know what would be the syntax of the dial plan - is this a part of the pattern matching feature.

I wrote down a line of code, but need someone to correct me:

exten => _+1XXXXXXXXXX,n,Dial(${IAXTRUNK}/${EXTEN:1},60)

Can we add +1 as a part of pattern matching feature? I havn’t seen anyone do that - therefore this post!

Please pour in all your knowledge and experience to hepl find a solution to this! :smile:

Thanks so much!