[asterisk-commits] mnicholson: branch 10 r339043 - /branches/10/res/res_fax.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 3 10:41:39 CDT 2011


Author: mnicholson
Date: Mon Oct  3 10:41:36 2011
New Revision: 339043

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=339043
Log:
Don't clear the AST_FAX_TECH_MULTI_DOC flag right after we set it.

Modified:
    branches/10/res/res_fax.c

Modified: branches/10/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/res/res_fax.c?view=diff&rev=339043&r1=339042&r2=339043
==============================================================================
--- branches/10/res/res_fax.c (original)
+++ branches/10/res/res_fax.c Mon Oct  3 10:41:36 2011
@@ -2224,16 +2224,16 @@
 		file_count++;
 	}
 
-	if (file_count > 1) {
-		details->caps |= AST_FAX_TECH_MULTI_DOC;
-	}
-
 	ast_verb(3, "Channel '%s' sending FAX:\n", chan->name);
 	AST_LIST_TRAVERSE(&details->documents, doc, next) {
 		ast_verb(3, "   %s\n", doc->filename);
 	}
 
 	details->caps = AST_FAX_TECH_SEND;
+
+	if (file_count > 1) {
+		details->caps |= AST_FAX_TECH_MULTI_DOC;
+	}
 
 	/* check for debug */
 	if (ast_test_flag(&opts, OPT_DEBUG) || global_fax_debug) {




More information about the asterisk-commits mailing list