[asterisk-commits] kpfleming: trunk r304599 - /trunk/res/res_fax.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 27 14:07:09 CST 2011


Author: kpfleming
Date: Thu Jan 27 14:07:05 2011
New Revision: 304599

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=304599
Log:
Fix bug with 'F' option for ReceiveFAX and SendFAX.

Skipping the call to set_t38_fax_caps() caused the FAX session
details to not be marked as supporting audio FAX either... the
function's name is a bit misleading. This patch restores the
single bit of non-T.38 behavior from that function when audio
mode is forced.


Modified:
    trunk/res/res_fax.c

Modified: trunk/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_fax.c?view=diff&rev=304599&r1=304598&r2=304599
==============================================================================
--- trunk/res/res_fax.c (original)
+++ trunk/res/res_fax.c Thu Jan 27 14:07:05 2011
@@ -1663,6 +1663,8 @@
 			ao2_ref(details, -1);
 			return -1;
 		}
+	} else {
+		details->caps |= AST_FAX_TECH_AUDIO;
 	}
 
 	if (!ast_test_flag(&opts, OPT_FORCE_AUDIO) && (details->caps & AST_FAX_TECH_T38)) {
@@ -2145,6 +2147,8 @@
 			ao2_ref(details, -1);
 			return -1;
 		}
+	} else {
+		details->caps |= AST_FAX_TECH_AUDIO;
 	}
 
 	if (!ast_test_flag(&opts, OPT_FORCE_AUDIO) && (details->caps & AST_FAX_TECH_T38)) {




More information about the asterisk-commits mailing list