Hi Bogdan,
the solution you gave was to detect if caller and callee are behind same NAT, I just wanted to detect if caller and calee are behind "NAT". Can you help me in defining condition for this.

Bogdan-Andrei Iancu <bogdan@voice-system.ro> wrote:
Hi,

this is a topic largely discussed in the past - a google on the archive
will give you a lot of info.
shortly, you have to you avp_check() to compare the src_ip of the INVITE
with the destination of it (dst_uri). See the avpops and the pseudo
variables docs.

regards,
bogdan

Jayesh Nambiar wrote:

> Hi all,
> I am trying to implement the following scenario:
> Whenever a NATed client calls to user at public IP or whenever a user
> at public IP calls a NATed client, I dont want to use mediaproxy. the
> fix_nated_sdp function does the job.
> But when both the caller and callee are behind nat, only then
> mediaproxy should be used. Can someone please help me in defining a
> condition which will return true if both the caller and callee are nated.
> I tried a lot, but my conditions allow calls from NATed client to
> public IP clients to use mediaproxy which I dont want.
>
> Please help me in this regard, as I want to minimise the use of
> mediaproxy as much as possible.
>
> Thanks in advance,
> jayesh
>
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
>
> Yahoo! Messenger Mobile
>
> Stay in touch with your buddies all the time.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users@openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>



Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.