diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-20 18:23:24 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-20 18:23:24 +0000 |
commit | 28472c738345af3d092c4fabd338a8ff1e73611f (patch) | |
tree | a916a6f504a9ac69db826e48eca6444b2796d5d9 /apps | |
parent | f011109cce0aff92037ddb70c688543980474a0c (diff) |
Merged revisions 61690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r61690 | russell | 2007-04-20 13:19:18 -0500 (Fri, 20 Apr 2007) | 4 lines
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/trunk@61691 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 408005a26..ba2da801d 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -839,7 +839,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 */ @@ -871,7 +871,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); } @@ -3967,7 +3967,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); } |