Allow dashes in extensions (bug #2835)
authorMark Spencer <markster@digium.com>
Fri, 12 Nov 2004 02:54:17 +0000 (02:54 +0000)
committerMark Spencer <markster@digium.com>
Fri, 12 Nov 2004 02:54:17 +0000 (02:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4218 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index e353845..9f71877 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -557,6 +557,7 @@ static void pbx_destroy(struct ast_pbx *p)
        match=1;\
        pattern++;\
        while(match && *data && *pattern && (*pattern != '/')) {\
+               while (*data == '-' && (*(data+1) != '\0')) data++;\
                switch(toupper(*pattern)) {\
                case '[': \
                {\