diff options
author | Joshua Colp <jcolp@digium.com> | 2006-05-18 14:40:20 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-05-18 14:40:20 +0000 |
commit | b37f523effde6c1aec7403859841717974291b6c (patch) | |
tree | 1e20af304cd4aefc814d4a8c0331e059a29f7518 /apps/app_voicemail.c | |
parent | 6d603ec09c3ae0e612d15c83267b9e28a50cd35e (diff) |
Merged revisions 28169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r28169 | file | 2006-05-18 11:27:21 -0300 (Thu, 18 May 2006) | 2 lines
Fix endless looping message by checking value of res before doing retries stuff. (issue #7140 reported by tanischen)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 5fb642fec..a306f9d60 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6826,12 +6826,13 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s res = ast_play_and_wait(chan, "vm-star-cancel"); if (!res) res = ast_waitfordigit(chan, 6000); - if (!res) + if (!res) { retries++; - if (retries > 3) - res = 't'; + if (retries > 3) + res = 't'; + } break; - + } if (res == 't') res = 0; @@ -6839,7 +6840,7 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s res = -1; } break; - + case 1: /* Reply */ /* Send reply directly to sender */ if (ast_strlen_zero(cid)) |