From: Ítalo Rossi Date: Thu, 12 Mar 2020 15:23:40 +0000 (-0700) Subject: [mod_verto] Setting transfer_disposition to recv_replace on aleg X-Git-Tag: v1.10.3^2~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87a64eab18d5ad63b7f52ccb7603be8be2320434;p=thirdparty%2Ffreeswitch.git [mod_verto] Setting transfer_disposition to recv_replace on aleg --- 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"));