aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn_config.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-26 20:34:05 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-26 20:34:05 +0000
commit69426738cd097ea7a6e8dd07dcef8504007c1798 (patch)
tree251f0bf9523fb4e8a7ce606270ffeb7b55072851 /channels/misdn_config.c
parent6e6e828cd555ddf0bcc5c08edfec46aaf700e050 (diff)
Oops, missed one
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111185 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/misdn_config.c')
-rw-r--r--channels/misdn_config.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/channels/misdn_config.c b/channels/misdn_config.c
index ec74d9213..fd9df2248 100644
--- a/channels/misdn_config.c
+++ b/channels/misdn_config.c
@@ -39,9 +39,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#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
@@ -1095,7 +1092,7 @@ int misdn_cfg_init(int this_max_ports, int reload)
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)
@@ -1149,7 +1146,7 @@ int misdn_cfg_init(int this_max_ports, int reload)
_fill_defaults();
misdn_cfg_unlock();
- AST_DESTROY_CFG(cfg);
+ ast_config_destroy(cfg);
return 0;
}