]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Patch to play correct sound file when a voicemail's urgent status is removed
authorRusty Newton <rnewton@digium.com>
Thu, 15 Nov 2012 01:43:43 +0000 (01:43 +0000)
committerRusty Newton <rnewton@digium.com>
Thu, 15 Nov 2012 01:43:43 +0000 (01:43 +0000)
We were attempting to play "vm-urgent-removed", which didn't exist. Now we play "vm-marked-nonurgent" which exists
and is the correct sound file. Previous behavior was silence and a warning on the CLI.

(issue ASTERISK-20280)
(closes issue ASTERISK-20280)
Reported by: Tomo Takebe
Tested by: Rusty Newton
Patches:
    asterisk20280.patch uploaded by Rusty Newton (license 5829)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@376262 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 85b9171e8b74c1c9c2ced0e032b82c9df5cd4fae..3e34307e8391af8325a0b992641ce16a500c533c 100644 (file)
@@ -13574,7 +13574,7 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
                                        strcpy(flag, "Urgent");
                                } else if (flag) {
                                        ast_verbose(VERBOSE_PREFIX_3 "UNmarking message as Urgent\n");
-                                       res = ast_play_and_wait(chan, "vm-urgent-removed");
+                                       res = ast_play_and_wait(chan, "vm-marked-nonurgent");
                                        strcpy(flag, "");
                                } else {
                                        ast_play_and_wait(chan, "vm-sorry");