mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 17:22:21 +00:00
update to last patch
This commit is contained in:
parent
d5ba2f3e3b
commit
4d928be3e3
@ -2105,6 +2105,7 @@ static void parse_domain_tag(sofia_profile_t *profile, switch_xml_t x_domain_tag
|
|||||||
|
|
||||||
static void parse_rtp_bugs(sofia_profile_t *profile, const char *str)
|
static void parse_rtp_bugs(sofia_profile_t *profile, const char *str)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (switch_stristr("clear", str)) {
|
if (switch_stristr("clear", str)) {
|
||||||
profile->auto_rtp_bugs = 0;
|
profile->auto_rtp_bugs = 0;
|
||||||
}
|
}
|
||||||
@ -2125,11 +2126,11 @@ static void parse_rtp_bugs(sofia_profile_t *profile, const char *str)
|
|||||||
profile->auto_rtp_bugs &= ~RTP_BUG_SONUS_SEND_INVALID_TIMESTAMP_2833;
|
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;
|
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;
|
profile->auto_rtp_bugs &= ~RTP_BUG_IGNORE_MARK_BIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2822,6 +2822,10 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
|
|||||||
sofia_set_flag(tech_pvt, TFLAG_RTP);
|
sofia_set_flag(tech_pvt, TFLAG_RTP);
|
||||||
sofia_set_flag(tech_pvt, TFLAG_IO);
|
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);
|
switch_rtp_intentional_bugs(tech_pvt->rtp_session, tech_pvt->rtp_bugs);
|
||||||
|
|
||||||
if ((vad_in && inb) || (vad_out && !inb)) {
|
if ((vad_in && inb) || (vad_out && !inb)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user