[Asterisk-Users] Complicated Dialing plan routing

Niklas Larsson pnsystem at comhem.se
Wed Dec 7 08:07:42 MST 2005


On Tue, 6 Dec 2005 20:50:25 +0100, 'kristian at netatonce.se' wrote:

> I wan't users that are within the same area code
> to be able to dial each other using just their
> "extension" as well as using area code +
> "extension". Users in other area codes are of
> course only available through "area code +
> extension".

Can't you first convert the ${EXTEN} to a full 10 digit number, then have send them to a macro with all the:

exten => 0470445566,Dial(SIP/WhatEver/${EXTEN})
[...]
exten => _X.,Dial(Zap/g2/${EXTEN})

/Niklas



More information about the asterisk-users mailing list