mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-10 03:48:34 +00:00
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
This commit is contained in:
@@ -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);
|
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) {
|
if (capability & format) {
|
||||||
const char *name = ast_rtp_lookup_mime_subtype2(asterisk_format, format, options);
|
const char *name = ast_rtp_lookup_mime_subtype2(asterisk_format, format, options);
|
||||||
ast_str_append(&buf, 0, "%s|", name);
|
ast_str_append(&buf, 0, "%s|", name);
|
||||||
|
|||||||
Reference in New Issue
Block a user