提交 2b796370 authored 作者: Michael Jerris's avatar Michael Jerris

FS-7523: [mod_json_cdr] don't install state handlers before we configure the module

上级 7382cecf
......@@ -572,11 +572,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_cdr_load)
switch_xml_t cfg, xml, settings, param;
switch_status_t status = SWITCH_STATUS_SUCCESS;
/* test global state handlers */
switch_core_add_state_handler(&state_handlers);
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
memset(&globals, 0, sizeof(globals));
globals.log_http_and_disk = 0;
......@@ -726,6 +721,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_cdr_load)
return SWITCH_STATUS_GENERR;
}
/* test global state handlers */
switch_core_add_state_handler(&state_handlers);
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
switch_xml_free(xml);
return status;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论