[OpenSIPS-Users] Rtpproxy behind the NAT

Daniel Goepp dan at goepp.net
Wed May 5 12:00:33 CEST 2010


We created a fix for this (see attached), this adds a -A parameter which you
can set to your public IP.  For example:

rtpproxy -A <public_ip> -l <private_ip> -s udp:localhost:12221 -L 8192 -m
25000 -M 34999 -F -d INFO LOG_LOCAL0

Using this, and a number of changes to the opensips config to advertise the
public address, rewrite contacts and sdps has our boxes running fine behind
NAT.

-dg


On Wed, May 5, 2010 at 11:51 AM, Indiver <nehru.indu at gmail.com> wrote:

>
> Hello Every one,
>
> My network setup is one to one nating of public and private ip. I want to
> run rtpproxy behind the NAT  with in the local IP,but in vain. can't create
> listener error appears when i run rtpproxy on local ip. Can we run rtpproxy
> behind the NAT with local IP. If possible can any one specify the method.
>
> Regards,
> Indiver.
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/Rtpproxy-behind-the-NAT-tp5008041p5008041.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100505/351e7159/attachment.htm 
-------------- next part --------------
diff -r rtpproxy-1.2.1/main.c rtpproxy-1.2.1-thamer/main.c
132a133
>     cf->advertised = NULL;
150c151
<     while ((ch = getopt(argc, argv, "vf2Rl:6:s:S:t:r:p:T:L:m:M:u:Fin:Pad:")) != -1)
---
>     while ((ch = getopt(argc, argv, "vf2Rl:6:s:S:t:r:p:T:L:m:M:u:Fin:Pad:A:")) != -1)
151a153,157
>
>       case 'A':
>         cf->advertised = strdup(optarg);
>         break;
>

diff -r rtpproxy-1.2.1/rtpp_command.c rtpproxy-1.2.1-thamer/rtpp_command.c
204c204,209
<     else
---
>     else {
>
>       if(cf->advertised != NULL)
>       len += sprintf(cp, "%d %s%s\n", lport, cf->advertised,
>         (lia[0]->sa_family == AF_INET) ? "" : " 6");
>       else
206a212,214
>
>     }
>

diff -r rtpproxy-1.2.1/rtpp_defines.h rtpproxy-1.2.1-thamer/rtpp_defines.h
138a139,140
>
>     char *advertised;


More information about the Users mailing list