aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-01 04:50:52 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-01 04:50:52 +0000
commit1165bef844c6a9268f909fc94769b0cde273e8e0 (patch)
treec72e972a009fa7eae8a15b2202f31a57ef11eac3 /apps
parent9da1ade23d365957efad4631f4af9c08ca9630b2 (diff)
Add some extra checks & verbosity (bug #3686)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5110 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 021b59aba..8f7adb3c5 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -4436,15 +4436,20 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
logretries++;
if (!valid) {
if (skipuser || logretries >= maxlogins) {
- if (ast_streamfile(chan, "vm-incorrect", chan->language))
- break;
+ if (ast_streamfile(chan, "vm-incorrect", chan->language)) {
+ ast_log(LOG_WARNING, "Unable to stream incorrect message\n");
+ return -1;
+ }
} else {
if (useadsi)
adsi_login(chan);
- if (ast_streamfile(chan, "vm-incorrect-mailbox", chan->language))
- break;
+ if (ast_streamfile(chan, "vm-incorrect-mailbox", chan->language)) {
+ ast_log(LOG_WARNING, "Unable to stream incorrect mailbox message\n");
+ return -1;
+ }
}
- ast_waitstream(chan, "");
+ if (ast_waitstream(chan, "")) /* Channel is hung up */
+ return -1;
}
}
if (!valid && (logretries >= maxlogins)) {