[Users] enable NAT OPTION ping
Raymond Chen
rchen at broadz.com
Thu Nov 10 14:36:46 CET 2005
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 at 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;
};
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20051110/82cf2988/attachment.htm>
More information about the sr-users
mailing list