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
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel



_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to