aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_directory.c')
-rwxr-xr-xapps/app_directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index eab10a3fc..8404d5269 100755
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -351,7 +351,7 @@ static int directory_exec(struct ast_channel *chan, void *data)
ast_log(LOG_WARNING, "directory requires an argument (context[,dialcontext])\n");
return -1;
}
- cfg = ast_load(DIRECTORY_CONFIG);
+ cfg = ast_config_load(DIRECTORY_CONFIG);
if (!cfg) {
ast_log(LOG_WARNING, "Unable to open directory configuration %s\n", DIRECTORY_CONFIG);
return -1;
@@ -400,7 +400,7 @@ top:
}
}
}
- ast_destroy(cfg);
+ ast_config_destroy(cfg);
LOCAL_USER_REMOVE(u);
return res;
}