[h323plus] Need help to read Remote Port numbers in simph323

Ashwani Kumar ash1412 at gmail.com
Thu Apr 5 10:14:16 EDT 2012


On Thu, Apr 5, 2012 at 7:11 PM, Ashwani Kumar <ash1412 at 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 at 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
>> *
>>
>
>
>
> --
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.packetizer.com/pipermail/h323plus/attachments/20120405/db4fa9d2/attachment-0002.html>


More information about the h323plus mailing list