mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
FS-4656 --resolve with this patch the bug is fixed but also the old behaviour of setting this variable on the A leg expecting it to auto-set it on the B leg is no longer supported. It must be exported or put in the dialstring with {} to put it on the B leg going forward
This commit is contained in:
parent
03fce657e8
commit
ea599992e1
@ -4909,13 +4909,8 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
|||||||
if (session) {
|
if (session) {
|
||||||
const char *vval = NULL;
|
const char *vval = NULL;
|
||||||
|
|
||||||
if ((vval = switch_channel_get_variable(o_channel, "sip_auto_answer")) && switch_true(vval)) {
|
|
||||||
switch_channel_set_variable_printf(nchannel, "sip_h_Call-Info", "<sip:%s>;answer-after=0", profile->sipip);
|
|
||||||
switch_channel_set_variable(nchannel, "sip_invite_params", "intercom=true");
|
|
||||||
}
|
|
||||||
|
|
||||||
switch_ivr_transfer_variable(session, nsession, SOFIA_REPLACES_HEADER);
|
switch_ivr_transfer_variable(session, nsession, SOFIA_REPLACES_HEADER);
|
||||||
switch_ivr_transfer_variable(session, nsession, "sip_auto_answer");
|
|
||||||
if (!(vval = switch_channel_get_variable(o_channel, "sip_copy_custom_headers")) || switch_true(vval)) {
|
if (!(vval = switch_channel_get_variable(o_channel, "sip_copy_custom_headers")) || switch_true(vval)) {
|
||||||
switch_ivr_transfer_variable(session, nsession, SOFIA_SIP_HEADER_PREFIX_T);
|
switch_ivr_transfer_variable(session, nsession, SOFIA_SIP_HEADER_PREFIX_T);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user