[Asterisk-cvs] asterisk/channels chan_zap.c,1.192,1.193

markster at lists.digium.com markster at lists.digium.com
Tue Mar 16 18:48:08 CST 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Answer the line when hangup received and callwait is up


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -d -r1.192 -r1.193
--- chan_zap.c	15 Mar 2004 09:14:16 -0000	1.192
+++ chan_zap.c	16 Mar 2004 23:42:41 -0000	1.193
@@ -1769,6 +1769,8 @@
 				swap_subs(p, SUB_CALLWAIT, SUB_REAL);
 				unalloc_sub(p, SUB_CALLWAIT);
 				p->owner = p->subs[SUB_REAL].owner;
+				if (p->owner->_state != AST_STATE_UP)
+					p->subs[SUB_REAL].needanswer = 1;
 				if (p->subs[SUB_REAL].owner->bridge)
 					ast_moh_stop(p->subs[SUB_REAL].owner->bridge);
 			} else if (p->subs[SUB_THREEWAY].zfd > -1) {




More information about the svn-commits mailing list