aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_indications.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-25 06:10:20 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-25 06:10:20 +0000
commit2207b9a515214bf72785eabf75bd587bd7df23e8 (patch)
tree5e740f79246c281ef1bc43bcffc87fd21f676005 /res/res_indications.c
parentc7f2030d7977ded782c6430a33e57bbbb69cd6df (diff)
Merge config updates (bug #3406)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4889 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_indications.c')
-rwxr-xr-xres/res_indications.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/res/res_indications.c b/res/res_indications.c
index ec2db5741..cc744ec55 100755
--- a/res/res_indications.c
+++ b/res/res_indications.c
@@ -230,7 +230,7 @@ static int ind_load_module(void)
/* that the following cast is needed, is yuk! */
/* yup, checked it out. It is NOT written to. */
- cfg = ast_load((char *)config);
+ cfg = ast_config_load((char *)config);
if (!cfg)
return 0;
@@ -245,7 +245,7 @@ static int ind_load_module(void)
tones = malloc(sizeof(struct tone_zone));
if (!tones) {
ast_log(LOG_WARNING,"Out of memory\n");
- ast_destroy(cfg);
+ ast_config_destroy(cfg);
return -1;
}
memset(tones,0,sizeof(struct tone_zone));
@@ -269,7 +269,7 @@ static int ind_load_module(void)
tmp = realloc(tones->ringcadance,(tones->nrringcadance+1)*sizeof(int));
if (!tmp) {
ast_log(LOG_WARNING, "Out of memory\n");
- ast_destroy(cfg);
+ ast_config_destroy(cfg);
return -1;
}
tones->ringcadance = tmp;
@@ -286,7 +286,7 @@ static int ind_load_module(void)
struct tone_zone* azone = malloc(sizeof(struct tone_zone));
if (!azone) {
ast_log(LOG_WARNING,"Out of memory\n");
- ast_destroy(cfg);
+ ast_config_destroy(cfg);
return -1;
}
memset(azone,0,sizeof(struct tone_zone));
@@ -313,7 +313,7 @@ static int ind_load_module(void)
ts = malloc(sizeof(struct tone_zone_sound));
if (!ts) {
ast_log(LOG_WARNING, "Out of memory\n");
- ast_destroy(cfg);
+ ast_config_destroy(cfg);
return -1;
}
ts->next = NULL;
@@ -341,7 +341,7 @@ out: v = v->next;
if (!country || !*country || ast_set_indication_country(country))
ast_log(LOG_WARNING,"Unable to set the default country (for indication tones)\n");
- ast_destroy(cfg);
+ ast_config_destroy(cfg);
return 0;
}