change Listen ip H323plus

Discussion related to implementation and use of the H.323 Plus H.323 stack at http://www.h323plus.org.
Post Reply
DJs3000
Posts: 3
Joined: Thu Jun 14, 2012 4:33 pm

change Listen ip H323plus

Post by DJs3000 »

Use in the project h323plus OpenMcu is a big problem when the video server is behind NAT. Where in the source code can be corrected to h323plus sent my external ip address. I do not want to use the GK is too much :) I want to substitute a link to the source code of your external IP address and then it will work well behind a NAT. Thanks in advance.

shorne
Posts: 45
Joined: Thu Aug 27, 2009 4:17 am

Re: change Listen ip H323plus

Post by shorne »

There is a function in H323EndPoint
virtual void TranslateTCPAddress(
PIPSocket::Address & /*localAddr*/,
const PIPSocket::Address & /*remoteAddr */
) { }

Override and change the localAddr to that of your public IP address.
Don't forget to port forward in the router.

DJs3000
Posts: 3
Joined: Thu Jun 14, 2012 4:33 pm

Re: change Listen ip H323plus

Post by DJs3000 »

shorne wrote:There is a function in H323EndPoint
virtual void TranslateTCPAddress(
PIPSocket::Address & /*localAddr*/,
const PIPSocket::Address & /*remoteAddr */
) { }

Override and change the localAddr to that of your public IP address.
Don't forget to port forward in the router.
Dear Shorne. I go to line 2207 in file h323ep.h then go line
PIPSocket :: Address & / * localAddr * /,
If my public ip 2.2.2.2, how to change this line?

DJs3000
Posts: 3
Joined: Thu Jun 14, 2012 4:33 pm

Re: change Listen ip H323plus

Post by DJs3000 »

tried to change the code:

Code: Select all

    virtual void TranslateTCPAddress(
      PIPSocket::Address & localAddr,
      const PIPSocket::Address & /* remoteAddr */
    ) {
        localAddr = "my.ext.ip";
    }
Compilation is successful but nothing has changed. :?
There is another question ... This change will only transmit port 1720? whether to broadcast RTP ports to the specified public ip?

Post Reply