mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-02 21:13:08 -07:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@74047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user