aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_disa.c
diff options
context:
space:
mode:
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 */