Fix logging level and reduce NAT ping interval

This commit is contained in:
herlesupreeth
2024-06-05 10:04:58 +02:00
parent c52d122b6c
commit 086e9dad0a
2 changed files with 4 additions and 4 deletions

View File

@@ -308,7 +308,7 @@ modparam("uac","restore_mode","none")
# ----------------- Settings for RTimer --------------- # ----------------- Settings for RTimer ---------------
# time interval set to 60 seconds # 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") modparam("rtimer", "exec", "timer=NATPING;route=NATPING")
#!endif #!endif
@@ -893,7 +893,7 @@ route[NATPING] {
sht_lock("natping=>natpinglock"); sht_lock("natping=>natpinglock");
sht_iterator_start("nat_iterator", "natping"); sht_iterator_start("nat_iterator", "natping");
while(sht_iterator_next("nat_iterator")) { 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(method) = "OPTIONS";
$uac_req(ruri) = $shtitval(nat_iterator); $uac_req(ruri) = $shtitval(nat_iterator);
$uac_req(furi) = PCSCF_URL; $uac_req(furi) = PCSCF_URL;
@@ -909,7 +909,7 @@ route[NATPING] {
event_route[uac:reply] { event_route[uac:reply] {
##!ifdef WITH_DEBUG ##!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 ##!endif
if (($uac_req(evtype) != 1) || ($uac_req(evcode) != 200)) { if (($uac_req(evtype) != 1) || ($uac_req(evcode) != 200)) {
if ($sht(natpingfail=>$uac_req(ouri)) == $null) { if ($sht(natpingfail=>$uac_req(ouri)) == $null) {

View File

@@ -726,7 +726,7 @@ route[XMLRPC] {
# Route for handling Registrations: # Route for handling Registrations:
###################################################################### ######################################################################
route[REGISTER] { 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; $var(alg) = $aa;
if ($aa == $null) { if ($aa == $null) {
$var(alg) = "MD5"; #force to MD5 for zoiper.... non-ims $var(alg) = "MD5"; #force to MD5 for zoiper.... non-ims