On Thu, Apr 5, 2012 at 7:11 PM, Ashwani Kumar <ash1412@gmail.com> wrote:
Hi Simon.

I implement the code as follows:

H323_ExternalRTPChannel *a = (H323_ExternalRTPChannel *)&channel;
PIPSocket::Address x;
WORD y;
                if (a->GetSessionID()==1) {
                a->GetRemoteAddress(x, y);
         }
               if (a->GetSessionID()==2) {
                a->GetRemoteAddress(x, y);
         }


inside the "PBoolean SimpleH323Connection::OnStartLogicalChannel(H323Channel & channel) "


function. but I am not able to compile the code.
Getting following errors:

main.cxx: In member function 'virtual PBoolean SimpleH323Connection::OnStartLogicalChannel(H323Channel&)':
main.cxx:1563:27: error: 'a' was not declared in this scope
main.cxx:1563:57: error: expected primary-expression before ')' token




Please help to rectify the problem/suggest code to read remote address & port number.

Regards,
Ashwani


On Thu, Apr 5, 2012 at 4:19 PM, Ashwani Kumar <ash1412@gmail.com> wrote:
Hi simon,

I want to implement code to read remote end audio and video port numbers in simph323 (when call established).

Can you please suggest the code added to be in simph323 application.



--


Thanks in Advance.
Ashwani Kumar




--