提交 42f296de authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-4331 FS-4424 --resolve 2 for one sale

上级 f50d14a7
...@@ -3510,7 +3510,7 @@ static switch_call_cause_t pickup_outgoing_channel(switch_core_session_t *sessio ...@@ -3510,7 +3510,7 @@ static switch_call_cause_t pickup_outgoing_channel(switch_core_session_t *sessio
tech_pvt = switch_core_session_alloc(nsession, sizeof(*tech_pvt)); tech_pvt = switch_core_session_alloc(nsession, sizeof(*tech_pvt));
tech_pvt->key = switch_core_session_strdup(nsession, pickup); tech_pvt->key = switch_core_session_strdup(nsession, pickup);
switch_event_dup(&tech_pvt->vars, var_event);
switch_core_session_set_private(nsession, tech_pvt); switch_core_session_set_private(nsession, tech_pvt);
...@@ -3535,6 +3535,8 @@ static switch_call_cause_t pickup_outgoing_channel(switch_core_session_t *sessio ...@@ -3535,6 +3535,8 @@ static switch_call_cause_t pickup_outgoing_channel(switch_core_session_t *sessio
switch_channel_set_flag(nchannel, CF_PICKUP); switch_channel_set_flag(nchannel, CF_PICKUP);
switch_channel_set_flag(nchannel, CF_NO_PRESENCE); switch_channel_set_flag(nchannel, CF_NO_PRESENCE);
switch_event_dup(&tech_pvt->vars, var_event);
goto done; goto done;
error: error:
......
...@@ -2580,6 +2580,16 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess ...@@ -2580,6 +2580,16 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
local_clobber = switch_true(lc); local_clobber = switch_true(lc);
} }
if (switch_channel_test_flag(originate_status[i].peer_channel, CF_NO_PRESENCE)) {
if (var_event) {
switch_event_del_header(var_event, "presence_id");
}
if (local_var_event) {
switch_event_del_header(local_var_event, "presence_id");
}
}
if (local_clobber) { if (local_clobber) {
if (var_event) { if (var_event) {
switch_event_header_t *header; switch_event_header_t *header;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论