[asterisk-commits] kpfleming: trunk r223330 - /trunk/apps/app_fax.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 9 15:58:48 CDT 2009


Author: kpfleming
Date: Fri Oct  9 15:58:44 2009
New Revision: 223330

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=223330
Log:
Initiate T.38 switchover when acting as called party, regardless of FAX direction.

SendFAX() and ReceiveFAX() can be given options to indicate whether they should
act as the calling or called party; this mode should be used to decide whether
to initiate a switchover to T.38, not the direction that the FAX transfer will
take place.

(closes issue #16039)
Reported by: jamicque

Modified:
    trunk/apps/app_fax.c

Modified: trunk/apps/app_fax.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_fax.c?view=diff&rev=223330&r1=223329&r2=223330
==============================================================================
--- trunk/apps/app_fax.c (original)
+++ trunk/apps/app_fax.c Fri Oct  9 15:58:44 2009
@@ -377,8 +377,8 @@
 							     .transcoding_jbig = 1,
 	};
 
-	/* if in receive mode, try to use T.38 */
-	if (!s->direction) {
+	/* if in called party mode, try to use T.38 */
+	if (s->caller_mode == FALSE) {
 		/* check if we are already in T.38 mode (unlikely), or if we can request
 		 * a switch... if so, request it now and wait for the result, rather
 		 * than starting an audio FAX session that will have to be cancelled




More information about the asterisk-commits mailing list