* in the voicemail main loop vms->curmsg initial invalid pointer is set to -1 to cover scenarios where user presses '4' to listen a previous message, otherwise the pointer produces playback of an invalid message with the invalid counter Change-Id: If3c69b1e1783b25e4e1fd10ecf96e0923a7178cemr9.5.1
parent
c5ead4d098
commit
98b461eb6e
@ -0,0 +1,10 @@
|
||||
--- a/apps/app_voicemail.c
|
||||
+++ b/apps/app_voicemail.c
|
||||
@@ -12276,6 +12276,7 @@ static int vm_execmain(struct ast_channe
|
||||
#endif
|
||||
|
||||
/* Add the vm_state to the active list and keep it active */
|
||||
+ vms.curmsg = -1;
|
||||
vms.lastmsg = -1;
|
||||
vms.deleted = NULL;
|
||||
vms.heard = NULL;
|
Loading…
Reference in new issue