[OpenSIPS-Users] SIP SDP rfc1918 address fix

Alex Balashov abalashov at evaristesys.com
Mon Apr 24 23:41:47 EDT 2017


The intent of my questions was to get what you think about what you
actually want to accomplish. fix_nated_sdp() allows you to replace the
IP with the received signalling IP:

http://www.opensips.org/html/docs/modules/2.1.x/nathelper.html#id293899

But what about the port? 

On Mon, Apr 24, 2017 at 11:39:14PM -0400, Satish Patel wrote:

> after google found bunch of post where people suggesting use
> fix_nated_sdp()  is that right approach ?
> 
> On Mon, Apr 24, 2017 at 11:25 PM, Alex Balashov
> <abalashov at evaristesys.com> wrote:
> > Yes, but RTP can come from a different address than the signalling
> > (SIP). What sense would there be in substituting the source of the SIP
> > message in there?
> >
> > On Mon, Apr 24, 2017 at 11:23:30PM -0400, Satish Patel wrote:
> >
> >> I meant "origin public address of client"  if c line isn't public then
> >> media never work.
> >>
> >> c=IN IP4 192.168.1.8.
> >>
> >> It should be
> >>
> >> c=IN IP4 <public_ip_of_client>
> >>
> >> On Mon, Apr 24, 2017 at 11:04 PM, Alex Balashov
> >> <abalashov at evaristesys.com> wrote:
> >> > Satish,
> >> >
> >> > When you say "origin public address", do you mean the external source
> >> > address and port of the SIP message, or the incoming RTP stream?
> >> >
> >> > On Mon, Apr 24, 2017 at 11:00:40PM -0400, Satish Patel wrote:
> >> >
> >> >> In my INVITE/SDP i am seeing sometime rfc1918 address which i want fix
> >> >> and replace it with origin public address. ex
> >> >>
> >> >> I am seeing following info in INVITE
> >> >>
> >> >> v=0.
> >> >> o=amsip 0 0 IN IP4 192.168.1.8.
> >> >> s= .
> >> >> c=IN IP4 192.168.1.8.
> >> >> t=0 0.
> >> >> m=audio 22530 RTP/AVP 127 111 0 101.
> >> >>
> >> >> _______________________________________________
> >> >> Users mailing list
> >> >> Users at lists.opensips.org
> >> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >> >
> >> > --
> >> > Alex Balashov | Principal | Evariste Systems LLC
> >> >
> >> > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> >> > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
> >> >
> >> > _______________________________________________
> >> > Users mailing list
> >> > Users at lists.opensips.org
> >> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users at lists.opensips.org
> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> > --
> > Alex Balashov | Principal | Evariste Systems LLC
> >
> > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the Users mailing list