[Asterisk-cvs] asterisk/channels chan_phone.c,1.43,1.44

markster at lists.digium.com markster at lists.digium.com
Tue Mar 1 23:45:14 CST 2005


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

Modified Files:
	chan_phone.c 
Log Message:
Fix chan_phone error code (bug #3692)


Index: chan_phone.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_phone.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- chan_phone.c	25 Jan 2005 06:10:20 -0000	1.43
+++ chan_phone.c	2 Mar 2005 05:42:38 -0000	1.44
@@ -530,7 +530,8 @@
 static int phone_send_text(struct ast_channel *ast, char *text)
 {
     int length = strlen(text);
-    return phone_write_buf(ast->pvt->pvt, text, length, length);
+    return phone_write_buf(ast->pvt->pvt, text, length, length) == 
+           length ? 0 : -1;
 }
 
 static int phone_write(struct ast_channel *ast, struct ast_frame *frame)




More information about the svn-commits mailing list