aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_disa.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 16:46:53 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 16:46:53 +0000
commit7d248cd79cee0a54a8f46b40ea8ae58afe511362 (patch)
treef05439629379a76d3c8990db6624028135fc1e91 /apps/app_disa.c
parent9e2244e8e495c2c0d099cfcb62065c8c21da18fc (diff)
Allow DISA to handle extensions that start with #.
(closes issue #13330) Reported by: jcovert git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@162014 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_disa.c')
-rw-r--r--apps/app_disa.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/app_disa.c b/apps/app_disa.c
index f0c9aced7..c3fe1a90a 100644
--- a/apps/app_disa.c
+++ b/apps/app_disa.c
@@ -298,8 +298,14 @@ static int disa_exec(struct ast_channel *chan, void *data)
continue;
}
} else {
- if (j == '#') { /* end of extension */
- break;
+ if (j == '#') { /* end of extension .. maybe */
+ if (i == 0 &&
+ (ast_matchmore_extension(chan, args.context, "#", 1, chan->cid.cid_num) ||
+ ast_exists_extension(chan, args.context, "#", 1, chan->cid.cid_num)) ) {
+ /* Let the # be the part of, or the entire extension */
+ } else {
+ break;
+ }
}
}