On Mon, Apr 9, 2012 at 3:27 PM, Ashwani Kumar <ash1412@gmail.com> wrote:
I tried to set local address (IP & port number)

external.SetExternalAddress(H323TransportAddress(addr, port), H323TransportAddress(addr, port+1));

but problem remain same.



On Sat, Apr 7, 2012 at 6:35 PM, Ashwani Kumar <ash1412@gmail.com> wrote:
Hi Simon,

I have implemented the code to read remote parameters as given in h323con.h +1517



         H323Channel * MyConnection::CreateRealTimeLogicalChannel(
                                        const H323Capability & capability,
                                        H323Channel::Directions dir,
                                        unsigned sessionID,
                                        const H245_H2250LogicalChannelParameters * param,
                                        RTP_QOS * rtpqos)
         {
           return new H323_ExternalRTPChannel(*this, capability, dir, sessionID,
                                              externalIpAddress, externalPort);
         }

         PBoolean OnStartLogicalChannel(H323Channel & channel)
         {
           H323_ExternalRTPChannel & external = (H323_ExternalRTPChannel &)channel;
           external.GetRemoteAddress(remoteIpAddress, remotePort);
         }


I am able to read remote end ip and port numbers.

But After implementation of the above code, I am not able to set my local Ip and port numbers.
Both IP and port number in H.245 message are showing 0 value. Below is the h323 message:


2012/04/07 18:24:40.873 4               h323.cxx(4253)  H323    OnOpenLogicalChannel
2012/04/07 18:24:40.873 3           channels.cxx(1042)  H323RTP OnSendOpenAck
2012/04/07 18:24:40.873 2         transports.cxx(433)   H323    Use of non IP transport address: ""
2012/04/07 18:24:40.873 2         transports.cxx(433)   H323    Use of non IP transport address: ""
2012/04/07 18:24:40.873 2           channels.cxx(1064)  H323RTP Sending open logical channel ACK: sessionID=1
2012/04/07 18:24:40.873 2             h323ep.cxx(2321)  H323    Started receiving logical channel: G.711-uLaw-64k <2>
2012/04/07 18:24:40.874 3            h323pdu.cxx(630)   H245    Sending PDU [ip$192.168.7.87:5500/ip$192.168.7.63:63622] :
  response openLogicalChannelAck {
    forwardLogicalChannelNumber = 4
    forwardMultiplexAckParameters = h2250LogicalChannelAckParameters {
      sessionID = 1
      mediaChannel = unicastAddress iPAddress {
        network =  4 octets {
          00 00 00 00                                        ....
        }
        tsapIdentifier = 0
      }
      mediaControlChannel = unicastAddress iPAddress {
        network =  4 octets {
          00 00 00 00                                        ....
        }
        tsapIdentifier = 0
      }
      flowControlToZero = false
    }
  }



Please help to solve above problem.



Regards,
Ashwani







--


Regards.
Ashwani Kumar
Embedded Engg.
Mob:+91-9880631584