[svn-commits] mnicholson: branch 1.4 r277497 - /branches/1.4/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 16 16:18:42 CDT 2010


Author: mnicholson
Date: Fri Jul 16 16:18:38 2010
New Revision: 277497

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=277497
Log:
Default to no udptl error correction so that error correction will be disabled in the event that the remote end indicates that they do not support the error correction mode we requested.

FAX-128

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=277497&r1=277496&r2=277497
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Fri Jul 16 16:18:38 2010
@@ -5515,6 +5515,11 @@
 				if (option_debug > 1)
 					ast_log(LOG_DEBUG, "T38 state changed to %d on channel %s\n", p->t38.state, p->owner ? p->owner->name : "<none>");
 			}
+
+			/* default EC to none, the remote end should respond
+			 * with the EC they want to use */
+			p->t38.peercapability &= ~T38FAX_UDP_EC_NONE;
+			ast_udptl_set_error_correction_scheme(p->udptl, UDPTL_ERROR_CORRECTION_NONE);
 		} else {
 			ast_log(LOG_WARNING, "Unsupported SDP media type in offer: %s\n", m);
 			continue;




More information about the svn-commits mailing list