From f6404e6e159171eae402666fc607371a87d80d73 Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Wed, 9 Jan 2013 20:26:44 +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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@378776 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 118fadfc26..04905358cb 100644 --- a/main/rtp_engine.c +++ b/main/rtp_engine.c @@ -711,7 +711,7 @@ char *ast_rtp_lookup_mime_multiple2(struct ast_str *buf, const format_t capabili 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); -- 2.47.3