[Freeswitch-svn] [commit] r9624 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Tue Sep 23 12:14:53 EDT 2008


Author: mikej
Date: Tue Sep 23 12:14:53 2008
New Revision: 9624

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Log:
(MODENDP-135) add redirect variable to channel as well as partner channel

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Tue Sep 23 12:14:53 2008
@@ -2148,10 +2148,12 @@
 					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++;



More information about the Freeswitch-svn mailing list