Many thanks for that!! I didn't know that the order worked quite like that but I see it now... Better go check the other contexts... (the [56][0-9] worked fine).
Adrian Marsh -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Atis Sent: 05 September 2007 17:15 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Dialplan regexp On 9/5/07, Adrian Marsh <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED] ICQ: 142239285 Skype: atis.lezdins Cell Phone: +371 28806004 [Tele2, Latvia] Work phone: +1 800 7502835 [Toll free, USA] ?BEST? -> www.BEST.eu.org _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --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 _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --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
