[asterisk-bugs] [Asterisk 0011994]: Introducing en extension pattern matching variables similar to X or Z, but also recognizes the * and/or #
noreply at bugs.digium.com
noreply at bugs.digium.com
Thu Feb 14 10:01:07 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11994
======================================================================
Reported By: buckersher
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 11994
Category: Addons/General
Reproducibility: always
Severity: trivial
Priority: normal
Status: new
Asterisk Version: 1.4.14
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 02-14-2008 08:30 CST
Last Modified: 02-14-2008 10:01 CST
======================================================================
Summary: Introducing en extension pattern matching variables
similar to X or Z, but also recognizes the * and/or #
Description:
Asterisk has pattern matching mainly only for numerical digits, such as the
X or Z patterns. It would be useful if a pattern character can be
introduced that will also recognize the * or #, such as when a context
needs to redirect all the calls to another context. Although the wildcard
period pattern can be used in that case, it is not advisable to start a
pattern matching sequence with a period. Likewise, there are other useful
implementations for having this kind of pattern matching as well.
======================================================================
----------------------------------------------------------------------
jsmith - 02-14-08 10:01
----------------------------------------------------------------------
Also, it might be wise to note that you can already do something like
this:
exten => _[2-9*#]XX,1,Verbose(1,I matched a three digit number that
started with N or * or #)
without having to add new pattern matching syntax.
Issue History
Date Modified Username Field Change
======================================================================
02-14-08 10:01 jsmith Note Added: 0082243
======================================================================
More information about the asterisk-bugs
mailing list