aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 15:31:54 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 15:31:54 +0000
commit2e4ad7641c082e35fb32dfa93d69c54abc4b6067 (patch)
tree1a721c297a2be4057acc11ce5ba709e77c7124e7 /main
parente31a6cd5902c143d8c9b9779dca5b8a518cbb27e (diff)
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: http://svn.digium.com/svn/asterisk/trunk@164648 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 8fb1393ea..b695913f3 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -2017,7 +2017,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