]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make macro processing consistent with regular exten processing (bug #3044)
authorRussell Bryant <russell@russellbryant.com>
Wed, 15 Dec 2004 03:56:10 +0000 (03:56 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 15 Dec 2004 03:56:10 +0000 (03:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4449 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_macro.c

index ea6775c90dcc24546cbb005b4109366ef8034921..03da13ed432cd64e39a258550fff2bc63f1f5288 100755 (executable)
@@ -140,7 +140,8 @@ static int macro_exec(struct ast_channel *chan, void *data)
   while(ast_exists_extension(chan, chan->context, chan->exten, chan->priority, chan->callerid)) {
        if ((res = ast_spawn_extension(chan, chan->context, chan->exten, chan->priority, chan->callerid))) {
                /* 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;