[Asterisk-cvs] asterisk/channels chan_zap.c,1.344.2.13,1.344.2.14
russell at lists.digium.com
russell at lists.digium.com
Sun Mar 27 22:54:33 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv32602/channels
Modified Files:
Tag: v1-0
chan_zap.c
Log Message:
look for the fax extension in the main context, as well (bug #3634)
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.344.2.13
retrieving revision 1.344.2.14
diff -u -d -r1.344.2.13 -r1.344.2.14
--- chan_zap.c 25 Feb 2005 18:11:41 -0000 1.344.2.13
+++ chan_zap.c 28 Mar 2005 04:48:25 -0000 1.344.2.14
@@ -4060,7 +4060,7 @@
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 */
More information about the svn-commits
mailing list