aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-09 14:57:41 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-09 14:57:41 +0000
commitb0571185a36891704a09a8ec34182fdd719e93f8 (patch)
treeb333925f7e8e525089ab3dd138500a535ebadc9d /apps/app_voicemail.c
parent432766bac595d4bf5ff06964679725153141efb2 (diff)
Fixed a logic error in leave_voicemail. Pass the mailbox instead of the context to inbox_count when the context is "default."
(closes issue #10135, reported by yannj, repaired by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74047 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index cfb7074c7..ccfec4185 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2860,7 +2860,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
if (strcmp(vmu->context, "default"))
snprintf(ext_context, sizeof(ext_context), "%s@%s", ext, vmu->context);
else
- ast_copy_string(ext_context, vmu->context, sizeof(ext_context));
+ ast_copy_string(ext_context, vmu->mailbox, sizeof(ext_context));
if (ast_test_flag(options, OPT_BUSY_GREETING)) {
res = create_dirpath(dest, sizeof(dest), vmu->context, ext, "busy");
snprintf(prefile, sizeof(prefile), "%s%s/%s/busy", VM_SPOOL_DIR, vmu->context, ext);