[Home]

Summary:ASTERISK-20772: Loop bug in ast_rtp_lookup_mime_multiple2() [main/rtp_engine.c]
Reporter:Xavier Hienne (xhienne)Labels:
Date Opened:2012-12-06 11:20:07.000-0600Date Closed:2013-01-09 14:31:45.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/RTP
Versions:1.8.19.0 11.1.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:In ast_rtp_lookup_mime_multiple2() \[main/rtp_engine.c], we are looping through the AST_RTP_xxx capabilities, but due to the erroneous end condition, we are missing the last one (AST_RTP_CISCO_DTMF == AST_RTP_MAX).

The end condition should be (format <= AST_RTP_MAX) instead.

(bug tagged as minor because it just affects the debugging output)
Comments:By: Xavier Hienne (xhienne) 2012-12-06 11:25:22.393-0600

BTW, I was referring to the 1.8 branch. In the Asterisk-11 branch, the end condition should be (x <= AST_RTP_MAX) of course.