From 4ead78e8517d52404b03b33a41b01eec42d83118 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 28 Mar 2005 04:48:25 +0000 Subject: [PATCH] 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 --- channels/chan_zap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */