[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 10:47: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 edited comment on ASTERISK-28225 at 12/30/18 10:46 AM:
-----------------------------------------------------------------

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

(I will follow all the instructions relating to Gerrit and the patch submission process once my license agreement is accepted.)


was (Author: boatright):
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