[Asterisk-cvs] asterisk/channels chan_alsa.c,1.29,1.30

markster at lists.digium.com markster at lists.digium.com
Sun Nov 28 16:29:37 CST 2004


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

Modified Files:
	chan_alsa.c 
Log Message:
Add ability to store voicemail in ODBC database


Index: chan_alsa.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_alsa.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- chan_alsa.c	26 Oct 2004 22:25:43 -0000	1.29
+++ chan_alsa.c	28 Nov 2004 21:28:30 -0000	1.30
@@ -588,13 +588,13 @@
 		} else {
 			if (res == -ESTRPIPE) {
 				ast_log(LOG_ERROR, "You've got some big problems\n");
-			}
-			if (res > 0)
-				res = 0;
+			} else if (res < 0)
+				ast_log(LOG_NOTICE, "Error %d on write\n", res);
 		}
 	}
 	ast_mutex_unlock(&alsalock);
-
+	if (res > 0)
+		res = 0;
 	return res;
 }
 




More information about the svn-commits mailing list