Dear all,

 

I want to force openser to ping all registered users with  OPTIONS message, my configuration as follow, flag in location table is 512 for sip_nat_flag, and 513 for NAT.  I can see the OPTIONS message send to the users and got replied for a few minutes, after that, it stop sending.   Is there something Ive done wrong?  

 

Thanks

 

Ray

 

 

modparam("registrar", "nat_flag", 6)

modparam("registrar", "sip_natping_flag", 5)

 

modparam("nathelper", "ping_nated_only", 0)

modparam("nathelper", "natping_interval", 30)

modparam("nathelper", "rtpproxy_sock", "/var/run/rtpproxy.sock")

modparam("nathelper", "sipping_method", "OPTIONS")

modparam("nathelper", "sipping_from", "sip:keepitopen@xxxxxx.net")

 

                if (nat_uac_test("31")) {

 

                        if (method == "REGISTER" || !search("^Record-Route:")) {

 

                                fix_nated_contact(); # Rewrite contact with source IP of signalling

                                if (method=="REGISTER") {

                                        fix_nated_register();

                                } else if (method == "INVITE") {

                                        fix_nated_sdp("1"); # Add direction=active to SDP

                                };

 

                                force_rport(); # Add rport parameter to topmost Via

                                append_hf("P-hint: Proxied\r\n");

                                setflag(6);    # Mark as NATed

                        };

                };

 

        if (uri==myself) {

 

                if (method=="REGISTER") {

 

                        if (!www_authorize("", "subscriber")) {

                                www_challenge("", "1");

                                exit();

                        };

                      

                       Setflag(5);

                        save("location");

 

                        return;

                };

 

                alias_db_lookup("aliases");

 

                if (lookup("location")) {

                        append_hf("P-hint: usrloc applied\r\n");

                        route(1);

                        return;

                };

 

        };