Browse Source

add REGISTRAR_NAT_PING_NAT_ONLY macro and default to 0

update-rsyslog-config
lazedo 7 years ago
parent
commit
3a334b55ea
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      kamailio/registrar-role.cfg

+ 2
- 4
kamailio/registrar-role.cfg View File

@ -1,4 +1,5 @@
#!trydef REGISTRAR_NAT_PING_INTERVAL 30 #!trydef REGISTRAR_NAT_PING_INTERVAL 30
#!trydef REGISTRAR_NAT_PING_NAT_ONLY 0
#!trydef REGISTRAR_NAT_PING_WORKERS 5 #!trydef REGISTRAR_NAT_PING_WORKERS 5
#!trydef REGISTRAR_MIN_EXPIRES 300 #!trydef REGISTRAR_MIN_EXPIRES 300
#!trydef REGISTRAR_MAX_EXPIRES 3600 #!trydef REGISTRAR_MAX_EXPIRES 3600
@ -54,7 +55,7 @@ modparam("usrloc", "close_expired_tcp", REGISTRAR_CLOSE_EXPIRED_TCP)
#!trydef NATHELPER_LOADED #!trydef NATHELPER_LOADED
loadmodule "nathelper.so" loadmodule "nathelper.so"
modparam("nathelper", "natping_interval", REGISTRAR_NAT_PING_INTERVAL) modparam("nathelper", "natping_interval", REGISTRAR_NAT_PING_INTERVAL)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "ping_nated_only", REGISTRAR_NAT_PING_NAT_ONLY)
modparam("nathelper", "natping_processes", REGISTRAR_NAT_PING_WORKERS) modparam("nathelper", "natping_processes", REGISTRAR_NAT_PING_WORKERS)
modparam("nathelper", "sipping_bflag", FLB_NATSIPPING) modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)
#!endif #!endif
@ -98,9 +99,6 @@ route[HANDLE_REGISTER]
return; return;
} }
resetbflag(FLB_NATB);
resetbflag(FLB_NATSIPPING);
if (isflagset(FLT_NATS)) { if (isflagset(FLT_NATS)) {
setbflag(FLB_NATB); setbflag(FLB_NATB);
fix_nated_register(); fix_nated_register();


Loading…
Cancel
Save