From: Jason Parker Date: Mon, 8 Jan 2007 23:39:12 +0000 (+0000) Subject: Fix an issue with voicemail and users.conf, where it wouldn't ever parse a password... X-Git-Tag: 1.4.1~306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cd61779951ebe0b71cf450e3e2d2d1dfd82134d;p=thirdparty%2Fasterisk.git Fix an issue with voicemail and users.conf, where it wouldn't ever parse a password, since it was using "secret" instead of "password" Issue 8761, reported by and patch suggestion from ssokol. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@50098 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 03fd167b6e..e87ce97a33 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -657,7 +657,7 @@ static void apply_options_full(struct ast_vm_user *retval, struct ast_variable * struct ast_variable *tmp; tmp = var; while (tmp) { - if (!strcasecmp(tmp->name, "password")) { + if (!strcasecmp(tmp->name, "password") || !strcasecmp(tmp->name, "secret")) { ast_copy_string(retval->password, tmp->value, sizeof(retval->password)); } else if (!strcasecmp(tmp->name, "uniqueid")) { ast_copy_string(retval->uniqueid, tmp->value, sizeof(retval->uniqueid));