<div>Hi Bogdan,</div>  <div>the solution you gave was to detect if caller and callee are behind <STRONG>same NAT</STRONG>, I just wanted to detect if caller and calee are behind "NAT". Can you help me in defining condition for this.<BR><BR><B><I>Bogdan-Andrei Iancu &lt;bogdan@voice-system.ro&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi,<BR><BR>this is a topic largely discussed in the past - a google on the archive <BR>will give you a lot of info.<BR>shortly, you have to you avp_check() to compare the src_ip of the INVITE <BR>with the destination of it (dst_uri). See the avpops and the pseudo <BR>variables docs.<BR><BR>regards,<BR>bogdan<BR><BR>Jayesh Nambiar wrote:<BR><BR>&gt; Hi all,<BR>&gt; I am trying to implement the following scenario:<BR>&gt; Whenever a NATed client calls to user at public IP or whenever a user <BR>&gt; at public IP calls a NATed client, I dont want to use mediaproxy. the
 <BR>&gt; fix_nated_sdp function does the job.<BR>&gt; But when both the caller and callee are behind nat, only then <BR>&gt; mediaproxy should be used. Can someone please help me in defining a <BR>&gt; condition which will return true if both the caller and callee are nated.<BR>&gt; I tried a lot, but my conditions allow calls from NATed client to <BR>&gt; public IP clients to use mediaproxy which I dont want.<BR>&gt; <BR>&gt; Please help me in this regard, as I want to minimise the use of <BR>&gt; mediaproxy as much as possible.<BR>&gt; <BR>&gt; Thanks in advance,<BR>&gt; jayesh<BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; Jiyo cricket on Yahoo! India cricket <BR>&gt; <HTTP: cricket in.sports.yahoo.com *http: mailcricket in mail us.rd.yahoo.com /><BR>&gt; Yahoo! Messenger Mobile <BR>&gt; <HTTP: *http: in mail us.rd.yahoo.com messenger new in.mobile.yahoo.com mailmobilemessenger /><BR>&gt; Stay in touch with your buddies all the
 time.<BR>&gt;<BR>&gt;------------------------------------------------------------------------<BR>&gt;<BR>&gt;_______________________________________________<BR>&gt;Users mailing list<BR>&gt;Users@openser.org<BR>&gt;http://openser.org/cgi-bin/mailman/listinfo/users<BR>&gt; <BR>&gt;<BR><BR></BLOCKQUOTE><BR><p>
        

        
                <hr size=1> 
Jiyo cricket on <a href="http://us.rd.yahoo.com/mail/in/mailcricket/*http://in.sports.yahoo.com/cricket/">Yahoo! India cricket</a><br>
<a href="http://us.rd.yahoo.com/mail/in/mailmobilemessenger/*http://in.mobile.yahoo.com/new/messenger/">Yahoo! Messenger Mobile</a> Stay in touch with your buddies all the time.