[svn-commits] kmoore: trunk r369900 - /trunk/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 10 10:36:38 CDT 2012


Author: kmoore
Date: Tue Jul 10 10:36:37 2012
New Revision: 369900

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369900
Log:
Fix failing SDP_offer_answer test

Asterisk now generates image stream declinations with the same
transport case that it used to before the stream declination
improvements. (udptl vs UDPTL)

(closes issue SWP-4736)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=369900&r1=369899&r2=369900
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Jul 10 10:36:37 2012
@@ -9527,14 +9527,14 @@
 			if (((sscanf(m, "image %30u udptl t38%n", &x, &len) == 1 && len > 0) ||
 			     (sscanf(m, "image %30u UDPTL t38%n", &x, &len) == 1 && len > 0))) {
 				/* produce zero-port m-line since it may be needed later
-				 * length is "m=image 0 UDPTL t38" + "\0" */
+				 * length is "m=image 0 udptl t38" + "\0" */
 				if (!(offer->decline_m_line = ast_malloc(20))) {
 					ast_log(LOG_WARNING, "Failed to allocate memory for SDP offer declination\n");
 					res = -1;
 					goto process_sdp_cleanup;
 				}
 				/* guaranteed to be exactly the right length */
-				strcpy(offer->decline_m_line, "m=image 0 UDPTL t38");
+				strcpy(offer->decline_m_line, "m=image 0 udptl t38");
 
 				if (x == 0) {
 					ast_log(LOG_WARNING, "Ignoring image stream offer because port number is zero\n");




More information about the svn-commits mailing list