From 5a4e282ae810f52195417c3e70a2d203b18a4142 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Wed, 2 Jul 2003 21:56:03 +0000
Subject: [PATCH] Fix CIDCW for native bridging

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_zap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 6b96a1941a..023a2c4c78 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -3233,7 +3233,7 @@ struct ast_frame  *zt_read(struct ast_channel *ast)
 		p->subs[index].f.data = NULL;
 		p->subs[index].f.datalen= 0;
 	}
-	if (p->dsp && !p->ignoredtmf && !index) {
+	if (p->dsp && (!p->ignoredtmf || p->callwaitcas || p->busydetect  || p->callprogress) && !index) {
 		/* Perform busy detection. etc on the zap line */
 		f = ast_dsp_process(ast, p->dsp, &p->subs[index].f, 0);
 		if (f) {
-- 
GitLab