[asterisk-users] German sip dial rules

Daniel Tryba daniel at tryba.nl
Mon Jun 12 11:53:02 CDT 2017


On Mon, Jun 12, 2017 at 05:00:31PM +0200, Hans-Peter Jansen wrote:
> is somebody attending, that wants to share his outgoing dial rules of 
> extension.conf, like used in typical(?) german pbx setups?
> 
>  * zero prefix for outside calls
>  * zero zero or plus prefix for international calls
>  * handle emergency calls
> 
> With ISDN, one was able to just forward the called number, but with sip, one 
> has to normalize the dialed pattern in order to match SIP (provider) 
> expectations... As always, the devil is in the details.

Shouldn't you just ask the provider?

But not being German, the only problem I know of is the ISDN 
sub addressing feature widely in use.

Looking at https://en.wikipedia.org/wiki/Telephone_numbers_in_Germany
I'd guess a dialplan would be (assuming the operator wants e164+):

exten => _1.,1,Dial(SIP/${EXTEN}@provider)
exten => _[2-9].,1,Goto(+49xyz${EXTEN:1},1)
exten => _0[1-9].,1,Goto(+49${EXTEN:1},1)
exten => _00[1-9].,1,Goto(+${EXTEN:2},1)

exten => _+.,1,Dial(SIP/${EXTEN}@provider)




More information about the asterisk-users mailing list