mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-04 12:21:54 +00:00
FS-5399 --resolve
This commit is contained in:
parent
79230a5d8a
commit
16690e491d
@ -302,6 +302,7 @@ typedef enum {
|
|||||||
TFLAG_INB_NOMEDIA,
|
TFLAG_INB_NOMEDIA,
|
||||||
TFLAG_LATE_NEGOTIATION,
|
TFLAG_LATE_NEGOTIATION,
|
||||||
TFLAG_SDP,
|
TFLAG_SDP,
|
||||||
|
TFLAG_NEW_SDP,
|
||||||
TFLAG_TPORT_LOG,
|
TFLAG_TPORT_LOG,
|
||||||
TFLAG_SENT_UPDATE,
|
TFLAG_SENT_UPDATE,
|
||||||
TFLAG_PROXY_MEDIA,
|
TFLAG_PROXY_MEDIA,
|
||||||
|
@ -5756,6 +5756,8 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
|
|||||||
}
|
}
|
||||||
|
|
||||||
sofia_glue_pass_sdp(tech_pvt, (char *) r_sdp);
|
sofia_glue_pass_sdp(tech_pvt, (char *) r_sdp);
|
||||||
|
sofia_set_flag(tech_pvt, TFLAG_NEW_SDP);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -6315,10 +6317,11 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
|
|||||||
break;
|
break;
|
||||||
case nua_callstate_ready:
|
case nua_callstate_ready:
|
||||||
if (!switch_channel_test_flag(channel, CF_PROXY_MODE) && !switch_channel_test_flag(channel, CF_PROXY_MEDIA) &&
|
if (!switch_channel_test_flag(channel, CF_PROXY_MODE) && !switch_channel_test_flag(channel, CF_PROXY_MEDIA) &&
|
||||||
r_sdp && !is_dup_sdp && switch_core_media_ready(tech_pvt->session, SWITCH_MEDIA_TYPE_AUDIO) && !sofia_test_flag(tech_pvt, TFLAG_NOSDP_REINVITE)) {
|
r_sdp && (!is_dup_sdp || sofia_test_flag(tech_pvt, TFLAG_NEW_SDP)) && switch_core_media_ready(tech_pvt->session, SWITCH_MEDIA_TYPE_AUDIO) && !sofia_test_flag(tech_pvt, TFLAG_NOSDP_REINVITE)) {
|
||||||
/* sdp changed since 18X w sdp, we're supposed to ignore it but we, of course, were pressured into supporting it */
|
/* 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;
|
uint8_t match = 0;
|
||||||
|
|
||||||
|
sofia_clear_flag(tech_pvt, TFLAG_NEW_SDP);
|
||||||
switch_channel_set_flag(tech_pvt->channel, CF_REINVITE);
|
switch_channel_set_flag(tech_pvt->channel, CF_REINVITE);
|
||||||
|
|
||||||
if (tech_pvt->mparams.num_codecs) {
|
if (tech_pvt->mparams.num_codecs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user