dect
/
asterisk
Archived
13
0
Fork 0

Don't play "your message has been saved" twice.

(closes issue #12893)
 Reported by: jaroth
 Patches: 
       duplicate_saved.patch uploaded by jaroth (license 50)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125438 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2008-06-26 17:40:25 +00:00
parent a1fa45760e
commit 1426132cea
1 changed files with 5 additions and 1 deletions

View File

@ -5394,7 +5394,11 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st
res = ast_play_and_wait(chan, "vm-messages");
if (!res)
res = ast_play_and_wait(chan, "vm-saved"); */
res = ast_play_and_wait(chan, "vm-msgsaved");
/* If forwarded with intro, DON'T PLAY THIS MESSAGE AGAIN! */
if (ast_strlen_zero(tmptxtfile)) { /* not a forwarded message with intro */
res = ast_play_and_wait(chan, "vm-msgsaved");
}
}
}
}