diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-20 18:19:18 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-20 18:19:18 +0000 |
commit | 0cb07a4fdfcb616285b2871b4c78e5de7938c2a8 (patch) | |
tree | de9645395f9c17c7de987651bb208dbefa943899 /apps | |
parent | 75e2414dfa391f029f01296ad8e83661e856f322 (diff) |
Fix the UpdateConfig manager action to properly treat "variables" and "objects"
differently (a=b versus a=>b).
(issue #9568, reported by pari, patch by me)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@61690 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 29ecd100a..fe37ec717 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -798,7 +798,7 @@ static void vm_change_password(struct ast_vm_user *vmu, const char *newpassword) ast_log(LOG_WARNING, "Failed to get category structure.\n"); break; } - ast_variable_update(cat, vmu->mailbox, new, NULL); + ast_variable_update(cat, vmu->mailbox, new, NULL, 0); } } /* save the results */ @@ -830,7 +830,7 @@ static void vm_change_password(struct ast_vm_user *vmu, const char *newpassword) break; } if (!var) - ast_variable_update(cat, "vmsecret", new, NULL); + ast_variable_update(cat, "vmsecret", new, NULL, 0); else ast_variable_append(cat, var); } @@ -3842,7 +3842,7 @@ static int vm_forwardoptions(struct ast_channel *chan, struct ast_vm_user *vmu, *duration += prepend_duration; msg_cat = ast_category_get(msg_cfg, "message"); snprintf(duration_str, 11, "%ld", *duration); - if (!ast_variable_update(msg_cat, "duration", duration_str, NULL)) { + if (!ast_variable_update(msg_cat, "duration", duration_str, NULL, 0)) { config_text_file_save(textfile, msg_cfg, "app_voicemail"); STORE(curdir, vmu->mailbox, context, curmsg, chan, vmu, vmfmts, *duration, vms); } |