[asterisk-commits] dlee: branch 1.8 r378776 - /branches/1.8/main/rtp_engine.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 9 14:26:48 CST 2013


Author: dlee
Date: Wed Jan  9 14:26:44 2013
New Revision: 378776

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378776
Log:
Fix end condition in ast_rtp_lookup_mime_multiple2.

The erroneous end condition would never include the AST_RTP_CISCO_DTMF flag
in the debug output.

(closes issue ASTERISK-20772)
Reported by: Xavier Hienne

Modified:
    branches/1.8/main/rtp_engine.c

Modified: branches/1.8/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/rtp_engine.c?view=diff&rev=378776&r1=378775&r2=378776
==============================================================================
--- branches/1.8/main/rtp_engine.c (original)
+++ branches/1.8/main/rtp_engine.c Wed Jan  9 14:26:44 2013
@@ -711,7 +711,7 @@
 
 	ast_str_append(&buf, 0, "0x%llx (", (unsigned long long) capability);
 
-	for (format = 1; format < AST_RTP_MAX; format <<= 1) {
+	for (format = 1; format <= AST_RTP_MAX; format <<= 1) {
 		if (capability & format) {
 			const char *name = ast_rtp_lookup_mime_subtype2(asterisk_format, format, options);
 			ast_str_append(&buf, 0, "%s|", name);




More information about the asterisk-commits mailing list