From: Mark Spencer Date: Sun, 11 May 2003 20:58:53 +0000 (+0000) Subject: Minor voicemail fixes X-Git-Tag: 0.5.0~500 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75113c58efc5535fd9a6e8a26d504c6a82078145;p=thirdparty%2Fasterisk.git Minor voicemail fixes git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@996 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c index 5b9ffcbcdc..80c0b40870 100755 --- a/apps/app_voicemail2.c +++ b/apps/app_voicemail2.c @@ -824,6 +824,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int } else ast_log(LOG_WARNING, "Error opening text file for output\n"); res = play_and_record(chan, NULL, fn, maxmessage, fmt); + if (res > 0) + res = 0; txt = fopen(txtfile, "a"); if (txt) { time(&end); @@ -1945,7 +1947,7 @@ static int vm_execmain(struct ast_channel *chan, void *data) } logretries++; } - if (logretries >= maxlogins) { + if (!valid && (logretries >= maxlogins)) { ast_stopstream(chan); res = play_and_wait(chan, "vm-goodbye"); if (res > 0)