FS-5572 --resolve set new variable by doing export bypass_keep_codec=true to force re-invite with the same codec it was using previously
This commit is contained in:
parent
bbf2d73cf5
commit
010085e92d
|
@ -1936,6 +1936,11 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
|
||||||
}
|
}
|
||||||
sofia_glue_tech_set_local_sdp(tech_pvt, NULL, SWITCH_FALSE);
|
sofia_glue_tech_set_local_sdp(tech_pvt, NULL, SWITCH_FALSE);
|
||||||
|
|
||||||
|
if (switch_true(switch_channel_get_variable(session->channel, "bypass_keep_codec"))) {
|
||||||
|
switch_channel_set_variable(session->channel, "absolute_codec_string", switch_channel_get_variable(session->channel, "ep_codec_string"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ((uuid = switch_channel_get_partner_uuid(channel))
|
if ((uuid = switch_channel_get_partner_uuid(channel))
|
||||||
&& (other_session = switch_core_session_locate(uuid))) {
|
&& (other_session = switch_core_session_locate(uuid))) {
|
||||||
other_channel = switch_core_session_get_channel(other_session);
|
other_channel = switch_core_session_get_channel(other_session);
|
||||||
|
|
Loading…
Reference in New Issue