]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 164648 via svnmerge from
authorSteve Murphy <murf@digium.com>
Tue, 16 Dec 2008 15:37:46 +0000 (15:37 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 16 Dec 2008 15:37:46 +0000 (15:37 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
r164648 | murf | 2008-12-16 08:31:54 -0700 (Tue, 16 Dec 2008) | 13 lines

Merged revisions 164634 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r164634 | murf | 2008-12-16 08:15:58 -0700 (Tue, 16 Dec 2008) | 5 lines

I added a sentence to clarify why - and ' ' are ignored in patterns
as per bug 14076. Leif says he'll put some stuff about it in the
extensions.conf sample, etc.

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164654 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index b6f702af5551a00559b95d96f7fc7ee33c3bce67..719cc5fcdd962ff646b1ed25e7c5c8a901311105 100644 (file)
@@ -1620,7 +1620,8 @@ static void destroy_pattern_tree(struct match_char *pattern_tree) /* pattern tre
  * Special characters used in patterns:
  *     '_'     underscore is the leading character of a pattern.
  *             In other position it is treated as a regular char.
- *     ' ' '-' space and '-' are separator and ignored.
+ *     ' ' '-' space and '-' are separator and ignored. Why? so
+ *             patterns like NXX-XXX-XXXX or NXX XXX XXXX will work.
  *     .       one or more of any character. Only allowed at the end of
  *             a pattern.
  *     !       zero or more of anything. Also impacts the result of CANMATCH