Fix logging level and reduce NAT ping interval
This commit is contained in:
@@ -308,7 +308,7 @@ modparam("uac","restore_mode","none")
|
||||
|
||||
# ----------------- Settings for RTimer ---------------
|
||||
# time interval set to 60 seconds
|
||||
modparam("rtimer", "timer", "name=NATPING;interval=60;mode=1;")
|
||||
modparam("rtimer", "timer", "name=NATPING;interval=5;mode=1;")
|
||||
modparam("rtimer", "exec", "timer=NATPING;route=NATPING")
|
||||
#!endif
|
||||
|
||||
@@ -893,7 +893,7 @@ route[NATPING] {
|
||||
sht_lock("natping=>natpinglock");
|
||||
sht_iterator_start("nat_iterator", "natping");
|
||||
while(sht_iterator_next("nat_iterator")) {
|
||||
xlog("OPTIONS to $shtitval(nat_iterator) via $shtitkey(nat_iterator)...\n");
|
||||
xnotice("OPTIONS to $shtitval(nat_iterator) via $shtitkey(nat_iterator)...\n");
|
||||
$uac_req(method) = "OPTIONS";
|
||||
$uac_req(ruri) = $shtitval(nat_iterator);
|
||||
$uac_req(furi) = PCSCF_URL;
|
||||
@@ -909,7 +909,7 @@ route[NATPING] {
|
||||
|
||||
event_route[uac:reply] {
|
||||
##!ifdef WITH_DEBUG
|
||||
xlog("request sent to $uac_req(ruri) completed with code: $uac_req(evcode), Type $uac_req(evtype)\n");
|
||||
xnotice("request sent to $uac_req(ruri) completed with code: $uac_req(evcode), Type $uac_req(evtype)\n");
|
||||
##!endif
|
||||
if (($uac_req(evtype) != 1) || ($uac_req(evcode) != 200)) {
|
||||
if ($sht(natpingfail=>$uac_req(ouri)) == $null) {
|
||||
|
@@ -726,7 +726,7 @@ route[XMLRPC] {
|
||||
# Route for handling Registrations:
|
||||
######################################################################
|
||||
route[REGISTER] {
|
||||
xlog("ALGORITHM IS [$aa] and User-Agent is [$ua]\n");
|
||||
xnotice("ALGORITHM IS [$aa] and User-Agent is [$ua]\n");
|
||||
$var(alg) = $aa;
|
||||
if ($aa == $null) {
|
||||
$var(alg) = "MD5"; #force to MD5 for zoiper.... non-ims
|
||||
|
Reference in New Issue
Block a user