[Freeswitch-svn] [commit] r10071 - freeswitch/trunk/src/mod/xml_int/mod_xml_curl

Freeswitch SVN brian at freeswitch.org
Sun Oct 19 19:55:55 EDT 2008


Author: brian
Date: Sun Oct 19 19:55:54 2008
New Revision: 10071

Modified:
   freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c

Log:
don't add API or complete till after the config is parsed

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	(original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	Sun Oct 19 19:55:54 2008
@@ -343,10 +343,6 @@
 	/* connect my internal structure to the blank pointer passed to me */
 	*module_interface = switch_loadable_module_create_module_interface(pool, modname);
 
-	SWITCH_ADD_API(xml_curl_api_interface, "xml_curl", "XML Curl", xml_curl_function, XML_CURL_SYNTAX);
-	switch_console_set_complete("add xml_curl debug_on");
-	switch_console_set_complete("add xml_curl debug_off");
-
 	memset(&globals,0,sizeof(globals));
 	globals.pool = pool;
 	globals.hash_root = NULL;
@@ -358,6 +354,10 @@
 		return SWITCH_STATUS_FALSE;
 	}
 
+	SWITCH_ADD_API(xml_curl_api_interface, "xml_curl", "XML Curl", xml_curl_function, XML_CURL_SYNTAX);
+	switch_console_set_complete("add xml_curl debug_on");
+	switch_console_set_complete("add xml_curl debug_off");
+
 	/* indicate that the module should continue to be loaded */
 	return SWITCH_STATUS_SUCCESS;
 }



More information about the Freeswitch-svn mailing list