]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] Setting transfer_disposition to recv_replace on aleg
authorÍtalo Rossi <italorossib@gmail.com>
Thu, 12 Mar 2020 15:23:40 +0000 (08:23 -0700)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2020 15:23:40 +0000 (19:23 +0400)
src/mod/endpoints/mod_verto/mod_verto.c

index 2a180acb5557212b024dea22478d10e6ac5157b3..9f7cf5760247c277f3ea8613554491fd45e64b29 100644 (file)
@@ -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"));