[Asterisk-cvs] asterisk/channels chan_zap.c,1.432,1.433

kpfleming at lists.digium.com kpfleming at lists.digium.com
Fri Apr 29 10:43:10 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv12297/channels

Modified Files:
	chan_zap.c 
Log Message:
make write() failures on Zap channels more prominent than 'debug' messages (bug #4107)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.432
retrieving revision 1.433
diff -u -d -r1.432 -r1.433
--- chan_zap.c	27 Apr 2005 23:44:24 -0000	1.432
+++ chan_zap.c	29 Apr 2005 15:32:44 -0000	1.433
@@ -4391,8 +4391,7 @@
 			size = (linear ? READ_SIZE * 2 : READ_SIZE);
 		res = write(fd, buf, size);
 		if (res != size) {
-			if (option_debug)
-				ast_log(LOG_DEBUG, "Write returned %d (%s) on channel %d\n", res, strerror(errno), p->channel);
+			ast_log(LOG_WARNING, "Write returned %d (%s) on channel %d - audio may have been lost\n", res, strerror(errno), p->channel);
 			return sent;
 		}
 		len -= size;




More information about the svn-commits mailing list