Noob writing first European dialplan

Hi All,

I’m trying to get my first dialplan up and running. To make matter more complicated all the examples are a bit US-centric, and I’m actually a US native trying to get the dialplan working in Amsterdam where I’m not familiar with the conventions used for phone numbers (they seem to be varying length, not sure which numbers are valid in which positions, etc).

I’ve got a US SIP account with unlimited calls (US_OUT), and a Dutch fixed line (NL_OUT) on a zaptel interface. I want to break the calls out a with a little more granularity than that so I can shop around for a few other SIP providers for specific calling areas and start saving on LD in the near future.

I want the dialplan to function as any other local phone with the exception that I want to keep US-style 11 digit dialing for awhile even if it masks some local numbers until the rest of the US users get used to dialing 001.

I’ve hacked out a basic dialplan, and it seems to work for the test situations I’ve thought of but I’m sure I’ve forgotten something. Can some of you more experienced people (both with asterisk as well as dialing from the EU) take a look and tell me what I’ve gotten wrong or forgotten? Any stylistic suggestions or best practices that I should know about also appreciated. Thanks in advance!


[code]; emergency services
exten => _112,1,Dial(${NL_OUT}/${EXTEN})
exten => _112,2,Congestion( )
exten => _112,102,Congestion( )

; US hacked dialing
exten => _1NXXNXXXXXX,1,Dial(${US_OUT}/${EXTEN})
exten => _1NXXNXXXXXX,2,Congestion( )
exten => _1NXXNXXXXXX,102,Congestion( )

; US proper dialing
exten => _001NXXNXXXXXX,1,Dial(${US_OUT}/${EXTEN:2})
exten => _001NXXNXXXXXX,2,Congestion( )
exten => _001NXXNXXXXXX,102,Congestion( )

; AMS local
exten => _NX.,1,Dial(${NL_OUT}/${EXTEN})
exten => _NX.,2,Congestion( )
exten => _NX.,102,Congestion( )

; NL outside AMS
exten => _0ZX.,1,Dial(${NL_OUT}/${EXTEN})
exten => _0ZX.,2,Congestion( )
exten => _0ZX.,102,Congestion( )

; international LD (non US)
exten => _00ZX.,1,Dial(${NL_OUT}/${EXTEN})
exten => _00ZX.,2,Congestion( )
exten => _00ZX.,102,Congestion( )

exten => t,1,Hangup( )[/code]