]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Do not open transmit channel until TCS is received
authorPaul Cadach <paul@odt.east.telecom.kz>
Thu, 28 Sep 2006 10:51:21 +0000 (10:51 +0000)
committerPaul Cadach <paul@odt.east.telecom.kz>
Thu, 28 Sep 2006 10:51:21 +0000 (10:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43846 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/h323/ast_h323.cxx

index 6a3eb7ec15970aac12cddf4505afd4a6121acc74..73b81865f03c35d2734ea80574ae22973b4eece0 100644 (file)
@@ -1394,6 +1394,10 @@ H323Channel * MyH323Connection::CreateRealTimeLogicalChannel(const H323Capabilit
                                                                        const H245_H2250LogicalChannelParameters * /*param*/,
                                                                        RTP_QOS * /*param*/ )
 {
+       /* Do not open tx channel when transmitter has been paused by empty TCS */
+       if ((dir == H323Channel::IsTransmitter) && transmitterSidePaused)
+               return NULL;
+
        return new MyH323_ExternalRTPChannel(*this, capability, dir, sessionID);
 }