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

Freeswitch SVN mikej at freeswitch.org
Sat Apr 28 22:02:06 EDT 2007


Author: mikej
Date: Sat Apr 28 22:02:05 2007
New Revision: 5038

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

Log:
hint... hint... 

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	Sat Apr 28 22:02:05 2007
@@ -467,7 +467,9 @@
 		return status;
 	}
 
-	if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
+	snprintf(url, sizeof(url), "profile=%s", switch_str_nil(profile_name));
+
+	if (!(xml = switch_xml_open_cfg(cf, &cfg, url))) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
 		status = SWITCH_STATUS_FALSE;
 		goto done;



More information about the Freeswitch-svn mailing list