From 48b3e46f00ead6ce3bd3b9d3fc46d5618f48536c Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Wed, 9 Jan 2013 20:29:32 +0000 Subject: [PATCH] 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 ........ Merged revisions 378776 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@378780 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/rtp_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/rtp_engine.c b/main/rtp_engine.c index 4e26690889..e7680ed52c 100644 --- a/main/rtp_engine.c +++ b/main/rtp_engine.c @@ -849,7 +849,7 @@ char *ast_rtp_lookup_mime_multiple2(struct ast_str *buf, struct ast_format_cap * } else { int x; ast_str_append(&buf, 0, "0x%x (", (unsigned int) rtp_capability); - for (x = 1; x < AST_RTP_MAX; x <<= 1) { + for (x = 1; x <= AST_RTP_MAX; x <<= 1) { if (rtp_capability & x) { name = ast_rtp_lookup_mime_subtype2(asterisk_format, NULL, x, options); ast_str_append(&buf, 0, "%s|", name);