Skip to content

Commit 086e9da

Browse files
committed
Fix logging level and reduce NAT ping interval
1 parent c52d122 commit 086e9da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pcscf/kamailio_pcscf.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ modparam("uac","restore_mode","none")
308308

309309
# ----------------- Settings for RTimer ---------------
310310
# time interval set to 60 seconds
311-
modparam("rtimer", "timer", "name=NATPING;interval=60;mode=1;")
311+
modparam("rtimer", "timer", "name=NATPING;interval=5;mode=1;")
312312
modparam("rtimer", "exec", "timer=NATPING;route=NATPING")
313313
#!endif
314314

@@ -893,7 +893,7 @@ route[NATPING] {
893893
sht_lock("natping=>natpinglock");
894894
sht_iterator_start("nat_iterator", "natping");
895895
while(sht_iterator_next("nat_iterator")) {
896-
xlog("OPTIONS to $shtitval(nat_iterator) via $shtitkey(nat_iterator)...\n");
896+
xnotice("OPTIONS to $shtitval(nat_iterator) via $shtitkey(nat_iterator)...\n");
897897
$uac_req(method) = "OPTIONS";
898898
$uac_req(ruri) = $shtitval(nat_iterator);
899899
$uac_req(furi) = PCSCF_URL;
@@ -909,7 +909,7 @@ route[NATPING] {
909909

910910
event_route[uac:reply] {
911911
##!ifdef WITH_DEBUG
912-
xlog("request sent to $uac_req(ruri) completed with code: $uac_req(evcode), Type $uac_req(evtype)\n");
912+
xnotice("request sent to $uac_req(ruri) completed with code: $uac_req(evcode), Type $uac_req(evtype)\n");
913913
##!endif
914914
if (($uac_req(evtype) != 1) || ($uac_req(evcode) != 200)) {
915915
if ($sht(natpingfail=>$uac_req(ouri)) == $null) {

scscf/kamailio_scscf.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ route[XMLRPC] {
726726
# Route for handling Registrations:
727727
######################################################################
728728
route[REGISTER] {
729-
xlog("ALGORITHM IS [$aa] and User-Agent is [$ua]\n");
729+
xnotice("ALGORITHM IS [$aa] and User-Agent is [$ua]\n");
730730
$var(alg) = $aa;
731731
if ($aa == $null) {
732732
$var(alg) = "MD5"; #force to MD5 for zoiper.... non-ims

0 commit comments

Comments
 (0)