|
|
@ -1143,10 +1143,6 @@ int astobj2_init(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char ref_filename[1024];
|
|
|
|
char ref_filename[1024];
|
|
|
|
|
|
|
|
|
|
|
|
if (container_init() != 0) {
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ast_opt_ref_debug) {
|
|
|
|
if (ast_opt_ref_debug) {
|
|
|
|
snprintf(ref_filename, sizeof(ref_filename), "%s/refs", ast_config_AST_LOG_DIR);
|
|
|
|
snprintf(ref_filename, sizeof(ref_filename), "%s/refs", ast_config_AST_LOG_DIR);
|
|
|
|
ref_log = fopen(ref_filename, "w");
|
|
|
|
ref_log = fopen(ref_filename, "w");
|
|
|
@ -1155,6 +1151,11 @@ int astobj2_init(void)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (container_init() != 0) {
|
|
|
|
|
|
|
|
fclose(ref_log);
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(AO2_DEBUG)
|
|
|
|
#if defined(AO2_DEBUG)
|
|
|
|
ast_cli_register_multiple(cli_astobj2, ARRAY_LEN(cli_astobj2));
|
|
|
|
ast_cli_register_multiple(cli_astobj2, ARRAY_LEN(cli_astobj2));
|
|
|
|
#endif /* defined(AO2_DEBUG) */
|
|
|
|
#endif /* defined(AO2_DEBUG) */
|
|
|
|