Skip to content

Commit

Permalink
[mod_verto] Setting transfer_disposition to recv_replace on aleg
Browse files Browse the repository at this point in the history
  • Loading branch information
italorossi authored Mar 12, 2020
1 parent 64da1fd commit 87a64ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mod/endpoints/mod_verto/mod_verto.c
Original file line number Diff line number Diff line change
Expand Up @@ -2994,6 +2994,7 @@ static switch_bool_t attended_transfer(switch_core_session_t *session, switch_co

if (tech_pvt && b_tech_pvt) {
switch_channel_set_variable(tech_pvt->channel, "refer_uuid", switch_core_session_get_uuid(b_tech_pvt->session));
switch_channel_set_variable(tech_pvt->channel, "transfer_disposition", "recv_replace");
switch_channel_set_variable(b_tech_pvt->channel, "transfer_disposition", "replaced");

br_a = switch_channel_get_partner_uuid(tech_pvt->channel);
Expand Down Expand Up @@ -3205,6 +3206,7 @@ static switch_bool_t verto__modify_func(const char *method, cJSON *params, jsock
if (switch_core_session_get_partner(tech_pvt->session, &other_session) == SWITCH_STATUS_SUCCESS) {
switch_ivr_session_transfer(other_session, destination, NULL, NULL);
cJSON_AddItemToObject(obj, "message", cJSON_CreateString("CALL TRANSFERRED"));
switch_channel_set_variable(tech_pvt->channel, "transfer_disposition", "recv_replace");
switch_core_session_rwunlock(other_session);
} else {
cJSON_AddItemToObject(obj, "message", cJSON_CreateString("call is not bridged"));
Expand Down

0 comments on commit 87a64ea

Please sign in to comment.