From: Russell Bryant Date: Mon, 28 Mar 2005 04:48:25 +0000 (+0000) Subject: look for the fax extension in the main context, as well (bug #3634) X-Git-Tag: 1.0.11.1~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ead78e8517d52404b03b33a41b01eec42d83118;p=thirdparty%2Fasterisk.git look for the fax extension in the main context, as well (bug #3634) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5283 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 0b7054fdc0..3c306182c8 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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 */