]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
re-add "password" for realtime voicemail
authorJason Parker <jparker@digium.com>
Wed, 17 Jan 2007 17:36:53 +0000 (17:36 +0000)
committerJason Parker <jparker@digium.com>
Wed, 17 Jan 2007 17:36:53 +0000 (17:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51186 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index bb4514f81ee99bdf455c0fb44d7dac34f7a2ee92..1fb7dd07ca745e03a1bd8e9bcacd363ac1197694 100644 (file)
@@ -659,7 +659,7 @@ static void apply_options_full(struct ast_vm_user *retval, struct ast_variable *
        while (tmp) {
                if (!strcasecmp(tmp->name, "vmpassword")) {
                        ast_copy_string(retval->password, tmp->value, sizeof(retval->password));
-               } else if (!strcasecmp(tmp->name, "secret")) { /* don't overwrite vmpassword if it exists */
+               } else if (!strcasecmp(tmp->name, "secret") || !strcasecmp(tmp->name, "password")) { /* don't overwrite vmpassword if it exists */
                        if (ast_strlen_zero(retval->password))
                                ast_copy_string(retval->password, tmp->value, sizeof(retval->password));
                } else if (!strcasecmp(tmp->name, "uniqueid")) {