[asterisk-users] no need to dial areacode

Danny Nicholas danny at debsinc.com
Thu Feb 5 08:22:28 CST 2009


According to the documentation, this would also work:

exten _X.,1,Noop(Local number)

you would probably want to do it with 5 X's since most * use 3 or 4 digit
extensions.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ralf Träskman
Sent: Thursday, February 05, 2009 8:14 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] no need to dial areacode

Hi

Yes i have tried to get them to dial the whole number to, but no luck. Ill
try your suggestions.

/ralf

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Gordon
Henderson
Sent: den 5 februari 2009 14:50
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] no need to dial areacode

On Thu, 5 Feb 2009, Ralf Träskman wrote:

> Hi
>
> To dial an outside line i have to dial 0. I want to have that when we 
> dial local numbers, that is we are in the 08 area, I don't want to 
> have to dial 08, how to set this up in asterisk 1.6?

Are your local numbers a fixed length? If so, this might work:

; Local numbers - 8 digits long:

exten _XXXXXXXX,1,Noop(Local number)
exten _XXXXXXXX,n,Dial(${out}/08${EXTEN})

etc.

If you have other numbers of varying length, then this might not work...

This generally works OK in the UK for local area dialling. My local numbers
are 5 or 6 digits long, so ...

exten => _XXXXXX,1,Macro(dialOut,01364${EXTEN})
exten =>  _XXXXX,1,Macro(dialOut,01364${EXTEN})

Not perfect, but it works OK.

I do try to persuade my customers to always dial the full number though, 10
or 11 digits starting with 0, because that's what they need to do on a
mobile...

Gordon

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list