Hi Simon

I have changed the code as above, But it still not opening the receiver channel
In OpenWhileLocked it calls
channel = capability.CreateChannel(connection, H323Channel::IsTransmitter, sessionID, NULL);
Which opens transmitter channel

Please Help me..

Regards
Alam



On 1/22/08, Simon Horne <s.horne@packetizer.com> wrote:
Alam


Yes it appears to be only opening in one direction

As I said I have not tested the code :-)
Change the code to:

#ifdef H323_H224
if (h245_available && startH224) {
  if(remoteCapabilities.FindCapability("H.224") != NULL) {
    H323Capability * capability =
localCapabilities.FindCapability ("H.224");
    if(capability != NULL)
      OpenLogicalChannel(*capability, 4, H323Channel::IsBidirectional);
  }
  startH224 = FALSE;
}
#endif

I will check in a fix to the CVS.

Simon


-----Original Message-----
From: h323plus-bounces@lists.packetizer.com
[mailto:h323plus-bounces@lists.packetizer.com ]On Behalf Of mohammad alam
Sent: Monday, January 21, 2008 9:49 PM
To: h323plus@lists.packetizer.com
Subject: [h323plus] H323_H224 Channel problem.


Hi Simon
I am implementing FECC in my Application.
The following code snippet of h323.cxx.opens H323_H224 channel only in one
direction i.e in Transmit direction only.

#ifdef H323_H224
if(h245_available && startH224) {
   if(remoteCapabilities.FindCapability("H.224") != NULL) {
     H323Capability * capability = localCapabilities.FindCapability("
H.224");
     if(capability != NULL) {
    if(logicalChannels->Open(*capability,
OpalMediaFormat::DefaultH224SessionID)) {
   H323Channel * channel = capability->CreateChannel(*this,
H323Channel::IsTransmitter, OpalMediaFormat::DefaultH224SessionID, NULL);
         if(channel != NULL) {
  channel->SetNumber(logicalChannels->GetNextChannelNumber());
  fastStartChannels.Append(channel);
         }
       }
     }
   }

startH224 = FALSE;
}
#endif

Receiver channel is not being open.
How to open H323_H224 Receiver channel ?
Pls help me..

Regards
Alam