diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-22 15:22:06 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-22 15:22:06 +0000 |
commit | 92d583f1e32b40dc25aba6bdcc1b555b4ff1807f (patch) | |
tree | 8a3305ae73e0a6de3174835ec9a989bf1956da7c /channels | |
parent | 376824d16632d31c4cdf2165ef0f097c70d31f5a (diff) |
Merged revisions 68887 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r68887 | crichter | 2007-06-12 10:35:22 +0200 (Di, 12 Jun 2007) | 1 line
if the bridged partner is mISDN too we should not send dtmf tones, they are transmitted inband always
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71106 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_misdn.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 786ac701f..6b2a67aa4 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -2234,10 +2234,14 @@ static int misdn_digit_end(struct ast_channel *ast, char digit, unsigned int dur } 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; } |