[Asterisk-cvs] asterisk/channels chan_zap.c,1.409,1.410
markster at lists.digium.com
markster at lists.digium.com
Sun Feb 27 18:20:47 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv20996/channels
Modified Files:
chan_zap.c
Log Message:
Look for faxexten in the main context, too (bug #3634)
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.409
retrieving revision 1.410
diff -u -d -r1.409 -r1.410
--- chan_zap.c 25 Feb 2005 17:32:37 -0000 1.409
+++ chan_zap.c 28 Feb 2005 00:18:28 -0000 1.410
@@ -4193,7 +4193,7 @@
if (!p->faxhandled) {
p->faxhandled++;
if (strcmp(ast->exten, "fax")) {
- if (ast_exists_extension(ast, ast->context, "fax", 1, ast->cid.cid_num)) {
+ if (ast_exists_extension(ast, ast_strlen_zero(ast->macrocontext) ? ast->context : ast->macrocontext, "fax", 1, ast->cid.cid_num)) {
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 */
More information about the svn-commits
mailing list