[Asterisk-cvs] asterisk/channels chan_agent.c,1.100,1.101

jim at lists.digium.com jim at lists.digium.com
Wed Dec 22 15:54:40 CST 2004


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

Modified Files:
	chan_agent.c 
Log Message:
Fixed ackcall (once again, this time differently) in chan_agent


Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- chan_agent.c	19 Dec 2004 21:13:41 -0000	1.100
+++ chan_agent.c	22 Dec 2004 20:50:23 -0000	1.101
@@ -354,7 +354,7 @@
 			p->acknowledged = 0;
 		}
 	}
-	if (f && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_ANSWER)) {
+	if ((p->chan && (p->chan->_state != AST_STATE_UP)) && f && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_ANSWER)) {
 /* TC */
 		if (p->ackcall) {
 			if (option_verbose > 2)




More information about the svn-commits mailing list