]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 68887 via svnmerge from
authorChristian Richter <christian.richter@beronet.com>
Fri, 22 Jun 2007 15:22:06 +0000 (15:22 +0000)
committerChristian Richter <christian.richter@beronet.com>
Fri, 22 Jun 2007 15:22:06 +0000 (15:22 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@71106 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 786ac701fab82220f59657057a46c358093cfe78..6b2a67aa4e65f3581e30fd6ccff13bd5e9fe5290 100644 (file)
@@ -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;
        }