]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
look for the fax extension in the main context, as well (bug #3634)
authorRussell Bryant <russell@russellbryant.com>
Mon, 28 Mar 2005 04:48:25 +0000 (04:48 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 28 Mar 2005 04:48:25 +0000 (04:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5283 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 0b7054fdc04432449b6611192cce95365966f34a..3c306182c8f480d30906ea2b95fa89a7073c94e4 100755 (executable)
@@ -4060,7 +4060,7 @@ struct ast_frame  *zt_read(struct ast_channel *ast)
                        if (!p->faxhandled) {
                                p->faxhandled++;
                                if (strcmp(ast->exten, "fax")) {
-                                       if (ast_exists_extension(ast, ast->context, "fax", 1, ast->callerid)) {
+                                       if (ast_exists_extension(ast, ast_strlen_zero(ast->macrocontext) ? ast->context : ast->macrocontext, "fax", 1, ast->callerid)) {
                                                if (option_verbose > 2)
                                                        ast_verbose(VERBOSE_PREFIX_3 "Redirecting %s to fax extension\n", ast->name);
                                                /* Save the DID/DNIS when we transfer the fax call to a "fax" extension */