[Asterisk-cvs] asterisk/channels chan_zap.c,1.349,1.350

markster at lists.digium.com markster at lists.digium.com
Sat Oct 2 13:14:47 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Don't set state to UP state within the driver, but instead allow ast_read to do so.


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.349
retrieving revision 1.350
diff -u -d -r1.349 -r1.350
--- chan_zap.c	2 Oct 2004 15:04:38 -0000	1.349
+++ chan_zap.c	2 Oct 2004 17:16:36 -0000	1.350
@@ -3867,7 +3867,6 @@
 		p->subs[index].needanswer = 0;
 		p->subs[index].f.frametype = AST_FRAME_CONTROL;
 		p->subs[index].f.subclass = AST_CONTROL_ANSWER;
-		ast_setstate(ast, AST_STATE_UP);
 		ast_mutex_unlock(&p->lock);
 		return &p->subs[index].f;
 	}	
@@ -4019,7 +4018,6 @@
 			   of a DTMF digit */
 			p->subs[index].f.frametype = AST_FRAME_CONTROL;
 			p->subs[index].f.subclass = AST_CONTROL_ANSWER;
-			ast_setstate(ast, AST_STATE_UP);
 			f = &p->subs[index].f;
 		} else if (p->callwaitcas) {
 			if ((f->subclass == 'A') || (f->subclass == 'D')) {




More information about the svn-commits mailing list