[Asterisk-cvs] asterisk/channels chan_zap.c,1.281,1.282

markster at lists.digium.com markster at lists.digium.com
Tue Jun 22 23:33:38 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Small simplification


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.281
retrieving revision 1.282
diff -u -d -r1.281 -r1.282
--- chan_zap.c	23 Jun 2004 03:16:58 -0000	1.281
+++ chan_zap.c	23 Jun 2004 03:19:32 -0000	1.282
@@ -1449,10 +1449,7 @@
 	strncpy(dest, rdest, sizeof(dest) - 1);
 	strncpy(p->dialdest, rdest, sizeof(dest) - 1);
 	if ((ast->_state == AST_STATE_BUSY)) {
-		struct ast_frame f = { AST_FRAME_CONTROL, AST_CONTROL_BUSY };
-		/* If this is a placeholder frame for a busy channel,
-		   return busy state immediately */
-		zap_queue_frame(p, &f);
+		p->subs[SUB_REAL].needbusy = 1;
 		ast_mutex_unlock(&p->lock);
 		return 0;
 	}




More information about the svn-commits mailing list