Hi Bogdan,
No, registration happens every minute.
Thanks
Ray
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
Sent: 2005年11月10日 23:01
To: Raymond Chen
Cc: users(a)openser.org
Subject: Re: [Users] enable NAT OPTION ping
Hi Raymond,
maybe the registration expires - check if when the PING stops, the
registered contact is still valid (not expired).
regards,
bogdan
Raymond Chen wrote:
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 I’ve 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;
};
};
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users