]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add sip_refer_to_params
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 28 Feb 2014 19:13:29 +0000 (00:13 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 28 Feb 2014 19:13:35 +0000 (00:13 +0500)
src/mod/endpoints/mod_sofia/sofia.c

index bbf7b50f9ddf839d2cd94dce93efa7dbc914d6d3..694d3d48568bad7beab94a35fc5278b6b271e39c 100644 (file)
@@ -7209,6 +7209,10 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
                        exten = (char *) refer_to->r_url->url_user;
                }
 
+               if (refer_to->r_url->url_params) {
+                       switch_channel_set_variable(tech_pvt->channel, "sip_refer_to_params", refer_to->r_url->url_params);
+               }
+
                switch_core_session_queue_indication(session, SWITCH_MESSAGE_REFER_EVENT);
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Process REFER to [%s@%s]\n", exten, (char *) refer_to->r_url->url_host);