diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-12 08:35:22 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-12 08:35:22 +0000 |
commit | bbe710c4ca99ed5757225fc1b2add02409954099 (patch) | |
tree | 3033e47e4d99fcb4a8f5102880424fa44b319fd0 /channels/chan_misdn.c | |
parent | 23a5b63f5d3938c6aa9d102cbf449d14d2edc4ae (diff) |
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.2@68887 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_misdn.c')
-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 97ec2caab..3181a1a53 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; } |