On 9/5/07, Adrian Marsh <Adrian.Marsh at ubiquisys.com>
wrote:> Hi,
>
> Can anyone tell me why the below dialplan doesn't filter off dialed
> numbers for 01793520158, and jump to "local",priority1
> If I change it to :
>
> exten => 01793520158,1,Goto(local,${EXTEN:-3},1)
> ....
>
> then it works fine (but that's too specific)...
>
>
> exten => _017935201[56][0-9],1,Goto(local,${EXTEN:-3},1)
> exten => _0.,1,Set(CALLERID(num)=${PSTN_GLOBAL}${CALLERID(num):-3})
> exten => _0.,2,Dial(${TRUNK}/${EXTEN},,W)
I'm not sure about [56][0-9], but..
_0. will be executed before 017... because it is first in ASCII
sorting. If you need 017 before, you should change _0. to _0X.
CLI "show dialplan" is your friend ;-)
Regards,
Atis
--
Atis Lezdins,
IT Responsible of BEST Riga,
atis at BEST.eu.org
ICQ: 142239285
Skype: atis.lezdins
Cell Phone: +371 28806004 [Tele2, Latvia]
Work phone: +1 800 7502835 [Toll free, USA]
?BEST? -> www.BEST.eu.org