aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 16:47:39 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-09 16:47:39 +0000
commit47875ca1301cfd3f025e426d9ea9aef4d5fca1dc (patch)
treef41865ed6ed46fcd7b2ac64af28fb2939a00cf59
parente6e217d5e1b52a155a4cc1950ba30bf682ef7a11 (diff)
Merged revisions 162014 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r162014 | russell | 2008-12-09 10:46:53 -0600 (Tue, 09 Dec 2008) | 5 lines Allow DISA to handle extensions that start with #. (closes issue #13330) Reported by: jcovert ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@162016 f38db490-d61c-443f-a65b-d21fe96a405b
-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 80aeb09ea..8217a2456 100644
--- a/apps/app_disa.c
+++ b/apps/app_disa.c
@@ -303,8 +303,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;
+ }
}
}