which version of ser do you use? It's for sure in unstable and stable from cvs.
klaus
Marty Chen wrote:
hi, when ever i startup SER with this function used, "nat_uac_test", i get the cfg loading error "is some module missing"
i know the function is in nathelper module, and it is loaded too. can someone tell me what to do in order to use this function?
below is a sample code using nat_uac_test. thx in advance.
marty.
============================================================== if (nat_uac_test("3")) { # allow RR-ed requests, as these may indicate that # a NAT-enabled proxy takes care of it; unless it is # a REGISTER if (method == "REGISTER" || ! search("ˆRecord-Route:")) { log("LOG: Someone trying to register from private IP, rewriting\n"); # This will work only for user agents that support symmetric # communication. We tested quite many of them and majority is # smart smart enough to be symmetric. In some phones, like # it takes a configuration option. With Cisco 7960, it is # called NAT_Enable=Yes, with kphone it is called # "symmetric media" and "symmetric signaling". (The latter # not part of public released yet.) fix_nated_contact(); # Rewrite contact with source IP of signalling if (method == "INVITE") { fix_nated_sdp("1"); # Add direction=active to SDP }; force_rport(); # Add rport parameter to topmost Via setflag(6); # Mark as NATed }; };
best regards,
Neo-Online Corporation Next Gen Networking Expert Marty Chen System Engineer Tel: +886-2-7707-7988 ext 151 Cell: +886-960-516-560 Email: marty-chen@neo-ol.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers