From: Jason Parker Date: Thu, 20 Sep 2007 17:09:14 +0000 (+0000) Subject: If # is pressed after dialing an extension in DISA, stop trying to collect more digits. X-Git-Tag: 1.4.12~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1467addf7e52c45c7959d1467dd03b56224b0d9;p=thirdparty%2Fasterisk.git If # is pressed after dialing an extension in DISA, stop trying to collect more digits. (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/branches/1.4@83246 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_disa.c b/apps/app_disa.c index 1ec0531bfc..4b7852a135 100644 --- a/apps/app_disa.c +++ b/apps/app_disa.c @@ -297,6 +297,10 @@ static int disa_exec(struct ast_channel *chan, void *data) ast_log(LOG_DEBUG,"Successful DISA log-in on chan %s\n", chan->name); continue; } + } else { + if (j == '#') { /* end of extension */ + break; + } } exten[i++] = j; /* save digit */