[asterisk-dev] zero-or-more match
Kevin P. Fleming
kpfleming at digium.com
Wed Feb 10 13:03:58 CST 2010
Jared Smith wrote:
> We'd obviously need to set priority of one type of pattern matching over
> the other, so that people have some sort of expectation how to structure
> their extensions. It's already hard enough for most people to know
> which of the following would match if the user dialed extension 822 in
> the context below... Let's make sure we set clear rules for precedence,
> or we'll only make matters worse.
>
> [patterns]
> exten => _NXX ,1,NoOp(1)
> exten => _[1-8]22 ,1,NoOp(2)
> exten => _[a-h]1X ,1,NoOp(3)
> exten => _X. ,1,NoOp(4)
> exten => _X2. ,1,NoOp(5)
> exten => _[0-9*#]11,1,NoOp(6)
If it's not (2), we fail.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org
More information about the asterisk-dev
mailing list