From 37ded96cfa130df5a2649a43058fcf01016b3d01 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Tue, 12 Jun 2007 08:35:22 +0000 Subject: [PATCH] if the bridged partner is mISDN too we should not send dtmf tones, they are transmitted inband always git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68887 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_misdn.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 97ec2caab7..3181a1a53b 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -2068,10 +2068,14 @@ static int misdn_digit(struct ast_channel *ast, char digit ) } break; - default: - if ( bc->send_dtmf ) { + default: + /* Do not send Digits in CONNECTED State, when + * the other side is too mISDN. */ + if (p->other_ch ) + return 0; + + if ( bc->send_dtmf ) send_digit_to_chan(p,digit); - } break; }