[Asterisk-cvs] asterisk/channels chan_zap.c,1.116,1.117

markster at lists.digium.com markster at lists.digium.com
Tue Nov 4 14:55:40 CST 2003


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

Modified Files:
	chan_zap.c 
Log Message:
Turn off music on hold when doing *0


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- chan_zap.c	4 Nov 2003 02:40:09 -0000	1.116
+++ chan_zap.c	4 Nov 2003 21:21:49 -0000	1.117
@@ -4302,6 +4302,8 @@
 					swap_subs(p, SUB_REAL, SUB_THREEWAY);
 					unalloc_sub(p, SUB_THREEWAY);
 					p->owner = p->subs[SUB_REAL].owner;
+					if (p->subs[SUB_REAL].owner->bridge)
+						ast_moh_stop(p->subs[SUB_REAL].owner->bridge);
 					ast_hangup(chan);
 					return NULL;
 				} else {




More information about the svn-commits mailing list