[Serusers] "nat_uac_test" - missing modules when starting SER?

Marty Chen marty-chen at neo-ol.com
Thu Apr 22 12:07:10 CEST 2004


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 at neo-ol.com





More information about the sr-users mailing list