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,
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
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
--- 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
...@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
--- 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
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,...
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:
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 =
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
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,
-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
12 matches
Mail list logo