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

FreeSWITCH SVN anthm at freeswitch.org
Thu Jun 18 08:59:29 PDT 2009


Author: anthm
Date: Thu Jun 18 10:59:28 2009
New Revision: 13841

Log:
dont put params in chan names on sofia urls

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Thu Jun 18 10:59:28 2009
@@ -474,6 +474,7 @@
 {
 	char name[256];
 	unsigned int x;
+	char *p;
 
 	switch_assert(session != NULL);
 	switch_assert(profile != NULL);
@@ -515,6 +516,9 @@
 	switch_core_session_set_private(session, tech_pvt);
 
 	switch_snprintf(name, sizeof(name), "sofia/%s/%s", profile->name, channame);
+	if ((p = strchr(name, ';'))) {
+		*p = '\0';
+	}
 	switch_channel_set_name(tech_pvt->channel, name);
 }
 



More information about the Freeswitch-svn mailing list