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

FreeSWITCH SVN brian at freeswitch.org
Sun May 10 10:12:30 PDT 2009


Author: brian
Date: Sun May 10 12:12:29 2009
New Revision: 13271

Log:
 MODSOFIA-7

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

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	Sun May 10 12:12:29 2009
@@ -2898,6 +2898,11 @@
 						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++;
 				}



More information about the Freeswitch-svn mailing list