From: Christian Richter Date: Tue, 12 Jun 2007 08:35:22 +0000 (+0000) Subject: if the bridged partner is mISDN too we should not send dtmf tones, they are transmitt... X-Git-Tag: 1.2.19~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37ded96cfa130df5a2649a43058fcf01016b3d01;p=thirdparty%2Fasterisk.git 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 --- 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; }