aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_disa.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-20 17:09:14 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-20 17:09:14 +0000
commit196758d2106b17eb90235afae99c8c669e97023d (patch)
tree953b97efbb6d80d916942cc5255bd42dd147e9e4 /apps/app_disa.c
parent3a372f04666aefe39ef0cebfe7566d0be3d90e5a (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@83246 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_disa.c')
-rw-r--r--apps/app_disa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_disa.c b/apps/app_disa.c
index 1ec0531bf..4b7852a13 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 */