Compare commits

...

2 Commits

Author SHA1 Message Date
Anton Olofsson 3adcf136cf
Merge 51eab5cfe8 into 5cb74797fe 2025-01-17 16:41:26 +00:00
Anton Olofsson 51eab5cfe8 Always clear flag TFLAG_NEW_SDP
This prevents re-processing of unmodified SDP during re-INVITEs.
Before this change a remote party's UNMODIFIED answer to a re-INVITE would always be re-processed once,
due to TFLAG_NEW_SDP still being set.
2024-05-02 10:15:02 +02:00
1 changed files with 2 additions and 1 deletions

View File

@ -8503,7 +8503,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
/* sdp changed since 18X w sdp, we're supposed to ignore it but we, of course, were pressured into supporting it */
uint8_t match = 0;
sofia_clear_flag(tech_pvt, TFLAG_NEW_SDP);
switch_channel_set_flag(tech_pvt->channel, CF_REINVITE);
@ -8531,6 +8531,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
}
}
sofia_clear_flag(tech_pvt, TFLAG_NEW_SDP);
if (r_sdp && sofia_test_flag(tech_pvt, TFLAG_NOSDP_REINVITE)) {
sofia_clear_flag_locked(tech_pvt, TFLAG_NOSDP_REINVITE);