From 87a64eab18d5ad63b7f52ccb7603be8be2320434 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=8Dtalo=20Rossi?= Date: Thu, 12 Mar 2020 08:23:40 -0700 Subject: [PATCH] [mod_verto] Setting transfer_disposition to recv_replace on aleg --- src/mod/endpoints/mod_verto/mod_verto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 2a180acb55..9f7cf57602 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -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); @@ -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")); -- 2.47.2