summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
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 dceb2fbf4..a33d9a767 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -3054,7 +3054,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)) {
snprintf(prefile, sizeof(prefile), "%s%s/%s/busy", VM_SPOOL_DIR, vmu->context, ext);
} else if (ast_test_flag(options, OPT_UNAVAIL_GREETING)) {