[Asterisk-code-review] app voicemail: Fix Channel variable VM MESSAGEFILE for "urge... (asterisk[13])
Bryan Boatright
asteriskteam at digium.com
Wed Jan 2 12:03:24 CST 2019
Bryan Boatright has uploaded this change for review. ( https://gerrit.asterisk.org/10845
Change subject: app_voicemail: Fix Channel variable VM_MESSAGEFILE for "urgent" voicemail
......................................................................
app_voicemail: Fix Channel variable VM_MESSAGEFILE for "urgent" voicemail
If a voicemail is marked "urgent" then the VM_MESSAGEFILE channel variable is
not updated correctly since urgent messages are in a different directory. The
fix is to update the channel variable when the path to the urgent message is
created.
ASTERISK-28225
Change-Id: I8efbace06e6122ea0793f7bdb073d4378e8274ca
---
M apps/app_voicemail.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/45/10845/1
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 1dd7aa0..06b2720 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -7056,6 +7056,7 @@
RENAME(dir, msgnum, vmu->mailbox, vmu->context, urgdir, x, sfn, dfn);
/* Notification must happen for this new message in Urgent folder, not INBOX */
ast_copy_string(fn, dfn, sizeof(fn));
+ pbx_builtin_setvar_helper(chan, "VM_MESSAGEFILE", fn);
msgnum = x;
}
#endif
--
To view, visit https://gerrit.asterisk.org/10845
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8efbace06e6122ea0793f7bdb073d4378e8274ca
Gerrit-Change-Number: 10845
Gerrit-PatchSet: 1
Gerrit-Owner: Bryan Boatright <ast-bugs at omega71.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190102/bc8eb865/attachment.html>
More information about the asterisk-code-review
mailing list