]> 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:49 +0000 (00:13 +0500)
src/mod/endpoints/mod_sofia/sofia.c

index b8e8868c34c985e51ed4d1c6b86c4eb2406e449a..77b93110e031d580bbed13596610a1c2867d3627 100644 (file)
@@ -6877,6 +6877,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);