Hi,
in this case, you may see if the caller is behind the nat by using
nat_uac_test() function; to see if the callee is register from behind a
nat ,after doing lookup("location"), test the NAT flag of register (note
that at registration time - save() - you have to set this flag -if
nated- to be saved into location table).
regards,
bogdan
Jayesh Nambiar wrote:
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 <[EMAIL PROTECTED]>/* 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
>
_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users