#include "asterisk/strings.h"
#include "asterisk/utils.h"
-#define AST_LOAD_CFG ast_config_load
-#define AST_DESTROY_CFG ast_config_destroy
-
#define NO_DEFAULT "<>"
#define NONE 0
struct ast_variable *v;
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");
return -1;
} else if (cfg == CONFIG_STATUS_FILEUNCHANGED)
_fill_defaults();
misdn_cfg_unlock();
- AST_DESTROY_CFG(cfg);
+ ast_config_destroy(cfg);
return 0;
}