[Serusers] Multiple UA behind NAT and SIP Proxy Outside LAN

Richard richard at o-matrix.org
Sat Oct 30 02:54:16 CEST 2004


You can do either,

1. write your own C module to compare the src_ip and r-uri's ip address, or 

2. use exec_msg() to call a shell script. This function exports variables to
the shell. It is in ser admin guide section 4.1

Richard


> -----Original Message-----
> From: Allan [mailto:voip_tango at yahoo.ca]
> Sent: Friday, October 29, 2004 2:33 PM
> To: Richard
> Subject: RE: [Serusers] Multiple UA behind NAT and SIP Proxy Outside LAN
> 
> Thanks Richard,
> 
> How would this line look?  I have read through the
> admin  guide a number of times but have not seen how
> to do this.  How would I actually compare the src_ip
> variable with part of the uri?
> 
> Regards,
> Allan
> 
>  --- Richard <richard at o-matrix.org> wrote:
> > You can check if the src_ip and the r-uri's ip
> > address are the same. Just
> > make sure this is done after lookup() and before
> > being forwarded. This
> > method has lots of limitations. Check the archive
> > for more discussions. But
> > most of time it is sufficient.
> >
> > > -----Original Message-----
> > > From: serusers-bounces at lists.iptel.org
> > [mailto:serusers-bounces at lists.iptel.org] On
> > > Behalf Of Allan
> > > Sent: Friday, October 29, 2004 2:08 PM
> > > To: Andris Parra L.; serusers at lists.iptel.org
> > > Subject: Re: [Serusers] Multiple UA behind NAT and
> > SIP Proxy Outside LAN
> > >
> > > I am also looking for a way to determine if two
> > UAs
> > > are behind the same NAT.  I have found that if I
> > do
> > > not force rtp_proxy between two UAs known to be
> > behind
> > > the same NAT, the call is setup and torn down
> > through
> > > SER and RTP is sent directly between the two UAs.
> > > This is how I want to call to operate.  I just
> > can't
> > > see a way via SER's scripting language to make a
> > > decision based on the src_ip of the initial
> > request
> > > and a portion of the URI domain, which in my case
> > is
> > > the IP address of the NAT.
> > >
> > > Regards,
> > > Allan
> > >
> > >
> > >  --- "Andris Parra L." <apl_1980b at yahoo.com>
> > wrote:
> > > > I4m wondering if there is a way to comunicate UA
> > > > agents betwen them that are behind the same nat,
> > > > they are working perfectly with the outside
> > world
> > > > (I4m not having problems with Nat traversal),
> > but
> > > > they try to send the RTP and RTCP data to the
> > > > aparent public IP that they are registered in
> > the
> > > > Sip Proxy, and of course, the multimedia data
> > isn4t
> > > > processed by the router because the destination
> > IP
> > > > is the one asigned to the WAN interface of it
> > and it
> > > > sees it in the LAN interface.
> > > > I4m thinking that maybe the Sip Proxy (ser 0.14)
> > > > isn4t the problem, maybe the infraestructure is
> > not
> > > > enough, so, is there anything that you could
> > answer
> > > > me tha guide me in this scenario?
> > > >
> > > > I4ll be grateful for any information you could
> > give
> > > > me.
> > > >
> > > >
> > > >
> > > >
> > > > Andris Parra L.
> > > > apl_1980b at yahoo.com
> > > > Ipsofactum LTDA.
> > > > www.ipsofactum.com
> > > >
> > > > ---------------------------------
> > > > Do you Yahoo!?
> > > > Express yourself with Y! Messenger! Free.
> > Download
> > > now.>
> > _______________________________________________
> > > > Serusers mailing list
> > > > serusers at lists.iptel.org
> > > > http://lists.iptel.org/mailman/listinfo/serusers
> > > >
> > >
> > >
> >
> ______________________________________________________________________
> > > Post your free ad now! http://personals.yahoo.ca
> > >
> > > _______________________________________________
> > > Serusers mailing list
> > > serusers at lists.iptel.org
> > > http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
> 
> ______________________________________________________________________
> Post your free ad now! http://personals.yahoo.ca




More information about the sr-users mailing list