diff options
author | Jason Parker <jparker@digium.com> | 2007-09-20 17:10:14 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2007-09-20 17:10:14 +0000 |
commit | dfc4e39e47b3233aa955f34deb45f850fe17a131 (patch) | |
tree | 869ddb33762290171215cb09834bd57e426674df /apps/app_disa.c | |
parent | b24f4a86bb666fbde9282493e9c5e196ba109b0b (diff) |
Merged revisions 83246 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r83246 | qwell | 2007-09-20 12:09:14 -0500 (Thu, 20 Sep 2007) | 8 lines
If # is pressed after dialing an extension in DISA, stop trying to collect more digits.
(closes issue #10754)
Reported by: atis
Patches:
app_disa.c.branch.patch uploaded by atis (license 242)
app_disa.c.trunk.patch uploaded by atis (license 242)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_disa.c')
-rw-r--r-- | apps/app_disa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_disa.c b/apps/app_disa.c index 081abe603..3756c3d5e 100644 --- a/apps/app_disa.c +++ b/apps/app_disa.c @@ -283,6 +283,10 @@ static int disa_exec(struct ast_channel *chan, void *data) ast_debug(1,"Successful DISA log-in on chan %s\n", chan->name); continue; } + } else { + if (j == '#') { /* end of extension */ + break; + } } exten[i++] = j; /* save digit */ |