Re: [asterisk-users] dialplan number matching

2009-07-20 Thread Stefan Schmidt
hello, why not use execif or gotoif? this would look like this: exten = _X.,n,ExecIf($[${EXTEN:${LEN(${EXTEN})-1}}=3]|do would ever you want to do best regards steve Vieri schrieb: Hi, How can I match an extension ending with 3 (just an example but applicable to any other digit,

Re: [asterisk-users] dialplan number matching

2009-07-17 Thread Danny Nicholas
Assuming you are using 4 digit extensions, this syntax would be: - exten = _ZXX3,n,... For 3 digits - exten = _ZX3,n,... The . is a wildcard that says take rest of number, so anything after that is irrelevant. -Original Message- From: asterisk-users-boun...@lists.digium.com

Re: [asterisk-users] dialplan number matching

2009-07-17 Thread John A. Sullivan III
On Fri, 2009-07-17 at 02:11 -0700, Vieri wrote: Hi, How can I match an extension ending with 3 (just an example but applicable to any other digit, including * or #)? exten = _ZX.3,n,... exten = _ZX.#,n,... (the above does not work) Can regular expressions be used in the standard

Re: [asterisk-users] dialplan number matching

2009-07-17 Thread Vieri
--- On Fri, 7/17/09, Danny Nicholas da...@debsinc.com wrote: Assuming you are using 4 digit extensions, this syntax would be: - exten = _ZXX3,n,... For 3 digits - exten = _ZX3,n,... The . is a wildcard that says take rest of number, so anything after that is irrelevant. Thanks but the

Re: [asterisk-users] dialplan number matching

2009-07-17 Thread Danny Nicholas
...@lists.digium.com] On Behalf Of Vieri Sent: Friday, July 17, 2009 2:43 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] dialplan number matching --- On Fri, 7/17/09, Danny Nicholas da...@debsinc.com wrote: Assuming you are using 4 digit extensions, this syntax would

Re: [asterisk-users] dialplan number matching

2009-07-17 Thread Vieri
--- On Fri, 7/17/09, John A. Sullivan III jsulli...@opensourcedevel.com wrote: Hi, How can I match an extension ending with 3 (just an example but applicable to any other digit, including * or #)? exten = _ZX.3,n,... exten = _ZX.#,n,... (the above does not work) Can

Re: [asterisk-users] dialplan number matching

2009-07-17 Thread John A. Sullivan III
On Fri, 2009-07-17 at 12:56 -0700, Vieri wrote: --- On Fri, 7/17/09, John A. Sullivan III jsulli...@opensourcedevel.com wrote: Hi, How can I match an extension ending with 3 (just an example but applicable to any other digit, including * or #)? exten = _ZX.3,n,...

Re: [asterisk-users] Dialplan or matching

2006-08-23 Thread Kevin Smith
Glad I could help. I agree, these mailing lists are a life saver. I personally have only been using Asterisk for about 5 months now, in fact I have never even delt with any PBX's before (complete newbie) but everyone here is very helpful and I am picking up a lot. Kevin David Cook wrote:

Re: [asterisk-users] Dialplan or matching

2006-08-22 Thread Kevin Smith
Hey David, Yes, it can, you just have to play around with the logic and what you are comparing and when you can do the comparison. Try something like this: exten = _18XXNXX,1, NoOP() exten = _18XXNXX,n,gotoif(${EXTEN}:2:2 = 00 | ${EXTEN}:2:2 = 66 | ${EXTEN}:2:2 = 77 | ${EXTEN}:2:2 =

Re: [asterisk-users] Dialplan or matching

2006-08-22 Thread David Cook
Thanks Kevin! That's what is great about these forums. I never thought of using gotoif() inside ... one of those Doh! moments. I included your concept in my standard [dial-ld] context with ${EXTEN}:1:3=800, etc. rather than by 2's, (so it doesn't overlap with 8XX area codes) and select my

Re: [asterisk-users] Dialplan or matching

2006-08-18 Thread William Moore
On 8/18/06, David Cook [EMAIL PROTECTED] wrote: Maybe I'm daft, but can asterisk to 'or' logic in dialplan matches sort of like the SPA's can? Tollfree numbers for example. I can have a line for each combination: exten = _1800NXX, Dial, exten = _1866NXX, Dial,

RE: [asterisk-users] Dialplan or matching

2006-08-18 Thread Rushowr
-Commercial Discussion Subject: Re: [asterisk-users] Dialplan or matching On 8/18/06, David Cook [EMAIL PROTECTED] wrote: Maybe I'm daft, but can asterisk to 'or' logic in dialplan matches sort of like the SPA's can? Tollfree numbers for example. I can have a line for each combination: exten