diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-08 23:39:12 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-08 23:39:12 +0000 |
commit | 5e0b13ad943244f362d767d46a85ce616151a5f9 (patch) | |
tree | 560faf81e0e7400a2693e3a05da38d013bb7155a /apps | |
parent | b32f31638215ea7dbb8c66d22ccf0035f1d8417e (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@50098 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 03fd167b6..e87ce97a3 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)); |