(MODENDP-135) add redirect variable to channel as well as partner channel
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9624 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
870a3ef8ff
commit
72699aac81
|
@ -2148,10 +2148,12 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
|
|||
if (p_contact->m_url->url_user) {
|
||||
switch_snprintf(var_name, sizeof(var_name), "sip_redirect_contact_user_%d", i);
|
||||
switch_channel_set_variable_partner(channel, var_name, p_contact->m_url->url_user);
|
||||
switch_channel_set_variable(channel, var_name, p_contact->m_url->url_user);
|
||||
}
|
||||
if (p_contact->m_url->url_host) {
|
||||
switch_snprintf(var_name, sizeof(var_name), "sip_redirect_contact_host_%d", i);
|
||||
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);
|
||||
}
|
||||
p_contact = p_contact->m_next;
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue