diff options
author | David M. Lee <dlee@digium.com> | 2013-01-09 20:30:33 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-01-09 20:30:33 +0000 |
commit | 6dfcc86c0d5fa6f685b80067a6ee894ae3058bb5 (patch) | |
tree | 934c9a32a7da7d08999e211943acd1c8b88d79d9 /main/rtp_engine.c | |
parent | 2f25e4b83e9805beb1d5314c14fe5a0d59a240f3 (diff) |
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
........
Merged revisions 378780 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/rtp_engine.c')
-rw-r--r-- | main/rtp_engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rtp_engine.c b/main/rtp_engine.c index 29c9286a1..7cbfba0ca 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); |