提交 9f701529 authored 作者: Brian West's avatar Brian West

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

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10071 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 de719816
...@@ -343,10 +343,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_curl_load) ...@@ -343,10 +343,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_curl_load)
/* connect my internal structure to the blank pointer passed to me */ /* connect my internal structure to the blank pointer passed to me */
*module_interface = switch_loadable_module_create_module_interface(pool, modname); *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)); memset(&globals,0,sizeof(globals));
globals.pool = pool; globals.pool = pool;
globals.hash_root = NULL; globals.hash_root = NULL;
...@@ -358,6 +354,10 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_curl_load) ...@@ -358,6 +354,10 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_curl_load)
return SWITCH_STATUS_FALSE; 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 */ /* indicate that the module should continue to be loaded */
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论