diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-x | apps/app_voicemail.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 7cd529ad3..56002c734 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -11,8 +11,6 @@ * 05-10-2005 : Support for Swedish and Norwegian added by Daniel Nylander, http://www.danielnylander.se/ * * 05-11-2005 : An option for maximum number of messsages per mailbox added by GDS Partners (www.gdspartners.com) - * Stojan Sljivic <stojan.sljivic@gdspartners.com> - * * 07-11-2005 : An issue with voicemail synchronization has been fixed by GDS Partners (www.gdspartners.com) * Stojan Sljivic <stojan.sljivic@gdspartners.com> * @@ -27,9 +25,9 @@ * at the top of the source tree. */ -/* +/*! \file * - * Voicemail System + * \brief Comedian Mail - Voicemail System * */ @@ -1400,7 +1398,7 @@ static int copy(char *infile, char *outfile) } if (len) { res = write(ofd, buf, len); - if (res != len) { + if (errno == ENOMEM || errno == ENOSPC || res != len) { ast_log(LOG_WARNING, "Write failed on %s (%d of %d): %s\n", outfile, res, len, strerror(errno)); close(ifd); close(ofd); |