[asterisk-bugs] [JIRA] (ASTERISK-28225) Channel variable VM_MESSAGEFILE not updated correctly if message marked "urgent"
boatright (JIRA)
noreply at issues.asterisk.org
Sun Dec 30 09:40:47 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-28225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=245845#comment-245845 ]
boatright commented on ASTERISK-28225:
--------------------------------------
It appears my old "submission license agreement" is not in effect any longer so I cannot attach the patch. Since it is short, I will add it as a comment while I get my license agreement updated.
--- asterisk-16.1.1/apps/app_voicemail.c 2018-12-26 12:45:13.000000000 -0600
+++ asterisk-16.1.1-patch/apps/app_voicemail.c 2018-12-30 08:56:47.721180201 -0600
@@ -7082,6 +7082,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
> Channel variable VM_MESSAGEFILE not updated correctly if message marked "urgent"
> --------------------------------------------------------------------------------
>
> Key: ASTERISK-28225
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28225
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Applications/app_voicemail
> Affects Versions: 16.1.1
> Reporter: boatright
> Severity: Minor
>
> I think this bug has existed since at least version 11.
> 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. Patch attached.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list