static void parse_rtp_bugs(sofia_profile_t *profile, const char *str)
{
+
if (switch_stristr("clear", str)) {
profile->auto_rtp_bugs = 0;
}
profile->auto_rtp_bugs &= ~RTP_BUG_SONUS_SEND_INVALID_TIMESTAMP_2833;
}
- if (switch_stristr("RTP_BUG_IGNORE_MARK_BIT", str)) {
+ if (switch_stristr("IGNORE_MARK_BIT", str)) {
profile->auto_rtp_bugs |= RTP_BUG_IGNORE_MARK_BIT;
}
- if (switch_stristr("~RTP_BUG_IGNORE_MARK_BIT", str)) {
+ if (switch_stristr("~IGNORE_MARK_BIT", str)) {
profile->auto_rtp_bugs &= ~RTP_BUG_IGNORE_MARK_BIT;
}
sofia_set_flag(tech_pvt, TFLAG_RTP);
sofia_set_flag(tech_pvt, TFLAG_IO);
+ if (tech_pvt->profile->auto_rtp_bugs & RTP_BUG_IGNORE_MARK_BIT) {
+ tech_pvt->rtp_bugs |= RTP_BUG_IGNORE_MARK_BIT;
+ }
+
switch_rtp_intentional_bugs(tech_pvt->rtp_session, tech_pvt->rtp_bugs);
if ((vad_in && inb) || (vad_out && !inb)) {