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? Regards /ralf ________________________________________________ Ralf Tr?skman, IT AdLibris AB, Odengatan 106, 113 22 Stockholm, Sweden Dir: +46-(0)707548074, vxl: +46-(0)85460 60 00, fax: +46-(0)85460 60 99 ralf at adlibris.com<mailto:ralf at adlibris.com> www.adlibris.com<http://www.adlibris.com/> P Please consider the environment before printing this e-mail -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090205/db566029/attachment.htm
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
On Thursday, February 5, 2009, Ralf Tr?skman wrote:> 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?I have this in Asterisk 1.4. My local area numbers are all six digits long and may not start with a zero or a one. So this works for me: exten => _NXXXXX,n,Dial(${LocalArea}/${LocalCode}${EXTEN}) Where ${LocalArea} is the trunk I've defined in [globals] and ${LocalCode} is my local area code. BTW, if you're careful about selecting your internal extensions, you should never have to dial 0 (or 9) to get an outside line. In my case, I've only got a few extensions, so 201 .. 209 are reserved for individual extensions and 211 to 219 are reserved for ring groups. The trick is to choose extensions that don't clash with anything outside your system that you're likely to dial. HTH, -- Geoff