From 3e5633a2f2a1ca9ea5eb4be80f8c7747206b34be Mon Sep 17 00:00:00 2001 From: Brian West Date: Sun, 10 May 2009 17:12:29 +0000 Subject: [PATCH] MODSOFIA-7 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13271 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 1407e28657..8bcc130dac 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2898,6 +2898,11 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status switch_channel_set_variable_partner(channel, var_name, p_contact->m_url->url_host); switch_channel_set_variable(channel, var_name, p_contact->m_url->url_host); } + if (p_contact->m_url->url_params) { + switch_snprintf(var_name, sizeof(var_name), "sip_redirect_contact_params_%d", i); + switch_channel_set_variable_partner(channel, var_name, p_contact->m_url->url_params); + switch_channel_set_variable(channel, var_name, p_contact->m_url->url_params); + } p_contact = p_contact->m_next; i++; }