[Asterisk-cvs] asterisk/channels chan_iax.c,1.41,1.42 chan_iax2.c,1.74,1.75

martinp at lists.digium.com martinp at lists.digium.com
Mon Nov 17 17:20:37 CST 2003


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

Modified Files:
	chan_iax.c chan_iax2.c 
Log Message:
We have to hangup the bridge not continue on AbsoluteTimeout


Index: chan_iax.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- chan_iax.c	17 Nov 2003 23:37:56 -0000	1.41
+++ chan_iax.c	17 Nov 2003 23:46:54 -0000	1.42
@@ -1918,7 +1918,7 @@
 	struct ast_channel *cs[3];
 	struct ast_channel *who;
 	int to = -1;
-	int res;
+	int res = -1;
 	int transferstarted=0;
 	struct ast_frame *f;
 	struct chan_iax_pvt *p0 = c0->pvt->pvt;
@@ -1963,7 +1963,7 @@
 		who = ast_waitfor_n(cs, 2, &to);
 		if (!who) {
 			if (ast_check_hangup(c0) || ast_check_hangup(c1)) {
-				res = 0;
+				res = -1;
 				break;
 			}
 			continue;

Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- chan_iax2.c	17 Nov 2003 23:37:56 -0000	1.74
+++ chan_iax2.c	17 Nov 2003 23:46:54 -0000	1.75
@@ -2042,7 +2042,7 @@
 		who = ast_waitfor_n(cs, 2, &to);
 		if (!who) {
 			if (ast_check_hangup(c0) || ast_check_hangup(c1)) {
-				res = 0;
+				res = -1;
 				break;
 			}
 			continue;




More information about the svn-commits mailing list