Merge pull request #1 from pitzkey/master-issue-608

app_voicemail: Add variable when VM Box is full
This commit is contained in:
pitzkey 2024-02-14 10:43:39 -05:00 committed by GitHub
commit 2a640a5a24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -2701,6 +2701,7 @@ static int imap_check_limits(struct ast_channel *chan, struct vm_state *vms, str
if (chan) {
ast_play_and_wait(chan, "vm-mailboxfull");
pbx_builtin_setvar_helper(chan, "VMSTATUS", "FAILED");
pbx_builtin_setvar_helper(chan, "VMBXFULL", "TRUE");
}
return -1;
}
@ -6919,6 +6920,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
res = ast_waitstream(chan, "");
ast_log(AST_LOG_WARNING, "No more messages possible\n");
pbx_builtin_setvar_helper(chan, "VMSTATUS", "FAILED");
pbx_builtin_setvar_helper(chan, "VMBXFULL", "TRUE");
inprocess_count(vmu->mailbox, vmu->context, -1);
goto leave_vm_out;
}