aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-08 23:45:36 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-08 23:45:36 +0000
commit827a8169bef04af0fa3ad72e42330689b66ba78d (patch)
treef289c003d6ad76deb8939b55d4edb0fc27703509 /apps/app_voicemail.c
parentab0c7cb5550510966afcab50bc0e43858ca0710e (diff)
Bug 5960
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7406 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 85ea1c8ff..40cca00f0 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -536,10 +536,10 @@ static struct ast_vm_user *find_user_realtime(struct ast_vm_user *ivm, const cha
if (mailbox)
ast_copy_string(retval->mailbox, mailbox, sizeof(retval->mailbox));
populate_defaults(retval);
- if (ast_test_flag((&globalflags), VM_SEARCH))
+ if (!context && ast_test_flag((&globalflags), VM_SEARCH))
var = ast_load_realtime("voicemail", "mailbox", mailbox, NULL);
else
- var = ast_load_realtime("voicemail", "mailbox", mailbox, "context", retval->context, NULL);
+ var = ast_load_realtime("voicemail", "mailbox", mailbox, "context", context, NULL);
if (var) {
tmp = var;
while(tmp) {