[asterisk-commits] file: branch file/bridging r79713 - /team/file/bridging/bridges/bridge_zaptel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 16 11:44:02 CDT 2007


Author: file
Date: Thu Aug 16 11:44:01 2007
New Revision: 79713

URL: http://svn.digium.com/view/asterisk?view=rev&rev=79713
Log:
Pass back failure/success depending on whether careful_write fails or not.

Modified:
    team/file/bridging/bridges/bridge_zaptel.c

Modified: team/file/bridging/bridges/bridge_zaptel.c
URL: http://svn.digium.com/view/asterisk/team/file/bridging/bridges/bridge_zaptel.c?view=diff&rev=79713&r1=79712&r2=79713
==============================================================================
--- team/file/bridging/bridges/bridge_zaptel.c (original)
+++ team/file/bridging/bridges/bridge_zaptel.c Thu Aug 16 11:44:01 2007
@@ -205,10 +205,7 @@
 	if (frame->frametype != AST_FRAME_VOICE)
 		return AST_BRIDGE_WRITE_UNSUPPORTED;
 
-	/* Write audio into zaptel conference */
-	careful_write(fd, frame->data, frame->datalen);
-
-	return AST_BRIDGE_WRITE_SUCCESS;
+	return (careful_write(fd, frame->data, frame->datalen) ? AST_BRIDGE_WRITE_FAILED : AST_BRIDGE_WRITE_SUCCESS);
 }
 
 static int zaptel_bridge_fd(struct ast_bridge *bridge, struct ast_bridge_channel *bridge_channel, int fd)




More information about the asterisk-commits mailing list