aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_macro.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-15 03:24:39 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-15 03:24:39 +0000
commitb9408b5da5ffd1fa30c21011f5e157f2c5d8a9da (patch)
tree5e7d9c9675131dcedf9858dc920fe84980144ea9 /apps/app_macro.c
parent70cedacdde512d2ed5984eec242c55f3239b73fc (diff)
Small macro fix (bug #3044)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4447 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_macro.c')
-rwxr-xr-xapps/app_macro.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_macro.c b/apps/app_macro.c
index a48defacf..4e8a5936e 100755
--- a/apps/app_macro.c
+++ b/apps/app_macro.c
@@ -152,7 +152,8 @@ static int macro_exec(struct ast_channel *chan, void *data)
while(ast_exists_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num)) {
if ((res = ast_spawn_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num))) {
/* Something bad happened, or a hangup has been requested. */
- if (((res >= '0') && (res <= '9')) || ((res >= 'A') && (res <= 'F'))) {
+ if (((res >= '0') && (res <= '9')) || ((res >= 'A') && (res <= 'F')) ||
+ (res == '*') || (res == '#')) {
/* Just return result as to the previous application as if it had been dialed */
ast_log(LOG_DEBUG, "Oooh, got something to jump out with ('%c')!\n", res);
break;