[Asterisk-cvs] asterisk/channels chan_zap.c,1.341,1.342

markster at lists.digium.com markster at lists.digium.com
Tue Sep 14 08:34:39 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Inband notifies always succeed (bug #2420)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.341
retrieving revision 1.342
diff -u -d -r1.341 -r1.342
--- chan_zap.c	13 Sep 2004 23:07:49 -0000	1.341
+++ chan_zap.c	14 Sep 2004 12:36:14 -0000	1.342
@@ -4183,6 +4183,7 @@
 			if (p->priindication_oob && p->sig == SIG_PRI) {
 				chan->hangupcause = AST_CAUSE_USER_BUSY;
 				chan->_softhangup |= AST_SOFTHANGUP_DEV;
+				res = 0;
 			} else
 #endif
 				res = tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_BUSY);
@@ -4252,6 +4253,7 @@
 			if (p->priindication_oob && p->sig == SIG_PRI) {
 				chan->hangupcause = AST_CAUSE_SWITCH_CONGESTION;
 				chan->_softhangup |= AST_SOFTHANGUP_DEV;
+				res = 0;
 			} else
 #endif
 				res = tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_CONGESTION);




More information about the svn-commits mailing list