[Serusers] mediaproxy: Can I tell if two UAs are behind the same firewall?

Marian Dumitru marian.dumitru at voice-sistem.ro
Tue Feb 15 23:19:17 CET 2005


Paul,

you just have to check the NAT flag if it's set. it's the flag you set 
when a request is detected as NATed. The same flag is set by lookup() if 
the returned location is NATed.
Default is flag 6, but you can configure it via usrloc module param 
"nat_flag".

Best regards,
Marian

Java Rockx wrote:
> Great!
> 
> One more question. After my call to lookup("location"), how can I
> determine if the destination (ie, party being called) is NATed?
> 
> Regards,
> Paul
> 
> 
> On Tue, 15 Feb 2005 20:57:07 +0100, Marian Dumitru
> <marian.dumitru at voice-sistem.ro> wrote:
> 
>>Hi Paul,
>>
>>You can do this test, totally independent of mediaproxy or nathelper.
>>Use  avpops to compare to equal the src_ip of the INVITE against the
>>domain part of the RURI after lookup("location").
>>
>>Best regards,
>>Marian
>>
>>Java Rockx wrote:
>>
>>>Hi All.
>>>
>>>I'm using MediaProxy with ser-0.9.
>>>
>>>Is there a way to test if a caller and callee are behind the same NAT
>>>(assuming both are registred with my sip proxy)?
>>>
>>>I'd like to not use mediaproxy for calls where the caller can directly
>>>contact the callee.
>>>
>>>Regards,
>>>Paul
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers at lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>
>>--
>>Voice System
>>http://www.voice-system.ro
>>


-- 
Voice System
http://www.voice-system.ro




More information about the sr-users mailing list