mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@61691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user