[asterisk-commits] file: trunk r370845 - /trunk/main/rtp_engine.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 7 12:47:56 CDT 2012


Author: file
Date: Tue Aug  7 12:47:52 2012
New Revision: 370845

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370845
Log:
Fix a bug uncovered by the test suite where the RTP payload number was not getting set.

Modified:
    trunk/main/rtp_engine.c

Modified: trunk/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/rtp_engine.c?view=diff&rev=370845&r1=370844&r2=370845
==============================================================================
--- trunk/main/rtp_engine.c (original)
+++ trunk/main/rtp_engine.c Tue Aug  7 12:47:52 2012
@@ -590,10 +590,12 @@
 			if (!(type = ao2_alloc(sizeof(*type), NULL))) {
 				continue;
 			}
+			type->rtp_code = pt;
 			ao2_link_flags(codecs->payloads, type, OBJ_NOLOCK);
 		}
 
 		*type = t->payload_type;
+		type->rtp_code = pt;
 
 		if ((t->payload_type.format.id == AST_FORMAT_G726) && t->payload_type.asterisk_format && (options & AST_RTP_OPT_G726_NONSTANDARD)) {
 			ast_format_set(&type->format, AST_FORMAT_G726_AAL2, 0);




More information about the asterisk-commits mailing list