diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-18 15:07:38 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-18 15:07:38 +0000 |
commit | ff2738555b93f68d45824f0899c9a971e00b40a2 (patch) | |
tree | 34b041696307898c53cfd5288e3d4827edbe2ca0 /apps | |
parent | ef9b87ddeb0443cf43c6c63532df22d15567edba (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@28211 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index f61f58e86..35eedeca6 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6520,20 +6520,21 @@ 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'; - break; - + if (retries > 3) + res = 't'; } - if (res == 't') - res = 0; - else if (res == '*') - res = -1; + break; + } + if (res == 't') + res = 0; + else if (res == '*') + res = -1; } - + } + } else if (option == 1) { /* Reply */ /* Send reply directly to sender */ |