[Devel] ignore rtp proxy if two clients are behind NAT and if they have the same external ip

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Jan 4 18:11:40 CET 2007


Hi Piotr,

note you have to do the check after the lookup(location) in order to get 
the destination address (which is loaded from the location table).

to debug, try to print (via xlog) the i:13 avp and $src_ip.

regards,
bogdan

Piotr Szymanek wrote:

>
>> Hi,
>>
>> see http://www.voice-sistem.ro/docs/avpops/ar01s08.html#ex_org_dst
>> but note this will not work properly if yo have multiple levels of NAT!
>>
>> regards,
>> bogdan
>>
>
> I take advantage of Example 30 and I try
>
> loadmodule "/usr/local/lib/openser/modules/avpops.so"
> ...
> route[4] {
>
>        # 
> -----------------------------------------------------------------
>        # NAT Traversal Section
>        # 
> -----------------------------------------------------------------
>
>        if (isflagset(6)) {
>                force_rport();
>                fix_nated_contact();
>
>                avp_write("$ruri/domain", "i:13");
>                if (!avp_check("i:13","eq/$src_ip/i")) {
>                    # source IP is not the same as destination IP
>                    force_rtp_proxy();
>                 }
>               avp_delete("i:13/g");
>        }
> }
>
> but always it call force_rtp_proxy event if I register into SER two 
> clients from one workstation :(
> What is wrong ?
> Please help
>
> Thanks
> Piter
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>




More information about the Devel mailing list