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++; }