mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Oops, missed one
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@111185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -39,9 +39,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#include "asterisk/strings.h"
|
#include "asterisk/strings.h"
|
||||||
#include "asterisk/utils.h"
|
#include "asterisk/utils.h"
|
||||||
|
|
||||||
#define AST_LOAD_CFG ast_config_load
|
|
||||||
#define AST_DESTROY_CFG ast_config_destroy
|
|
||||||
|
|
||||||
#define NO_DEFAULT "<>"
|
#define NO_DEFAULT "<>"
|
||||||
#define NONE 0
|
#define NONE 0
|
||||||
|
|
||||||
@@ -1095,7 +1092,7 @@ int misdn_cfg_init(int this_max_ports, int reload)
|
|||||||
struct ast_variable *v;
|
struct ast_variable *v;
|
||||||
struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
|
struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
|
||||||
|
|
||||||
if (!(cfg = AST_LOAD_CFG(config, config_flags))) {
|
if (!(cfg = ast_config_load2(config, "chan_misdn", config_flags))) {
|
||||||
ast_log(LOG_WARNING, "missing file: misdn.conf\n");
|
ast_log(LOG_WARNING, "missing file: misdn.conf\n");
|
||||||
return -1;
|
return -1;
|
||||||
} else if (cfg == CONFIG_STATUS_FILEUNCHANGED)
|
} else if (cfg == CONFIG_STATUS_FILEUNCHANGED)
|
||||||
@@ -1149,7 +1146,7 @@ int misdn_cfg_init(int this_max_ports, int reload)
|
|||||||
_fill_defaults();
|
_fill_defaults();
|
||||||
|
|
||||||
misdn_cfg_unlock();
|
misdn_cfg_unlock();
|
||||||
AST_DESTROY_CFG(cfg);
|
ast_config_destroy(cfg);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user