diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c index 4251d1207..9b44306bf 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -2006,6 +2006,10 @@ static struct match_char *add_exten_to_pattern_tree(struct ast_context *con, str qsort(buf, specif, 1, compare_char); specif <<= 8; specif += buf[0]; + } else if (*s1 == '-') { + /* Skip dashes in patterns */ + s1++; + continue; } else { if (*s1 == '\\') { s1++; |