Browse Source

fix log message for min-expires in registrar

4.3
lazedo 7 years ago
committed by Luis Azedo
parent
commit
ab5c9c69a2
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      kamailio/registrar-role.cfg

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

@ -408,9 +408,8 @@ route[REGISTRAR_BOUNDS]
if($var(expires) != 0) { if($var(expires) != 0) {
if($sel(cfg_get.kazoo.registrar_error_min_expires) == 1) { if($sel(cfg_get.kazoo.registrar_error_min_expires) == 1) {
if($var(expires) < REGISTRAR_MIN_EXPIRES) { if($var(expires) < REGISTRAR_MIN_EXPIRES) {
$var(expires) = REGISTRAR_MIN_EXPIRES;
xlog("L_WARNING", "$ci|end|expires $var(expires) too brief registering $Au from IP $si:$sp\n");
append_to_reply("Min-Expires: $var(expires)\r\n");
xlog("L_WARNING", "$ci|end|expires $var(expires) too brief (configured $def(REGISTRAR_MIN_EXPIRES)) registering $Au from IP $si:$sp\n");
append_to_reply("Min-Expires: $def(REGISTRAR_MIN_EXPIRES)\r\n");
send_reply("423", "Interval Too Brief"); send_reply("423", "Interval Too Brief");
exit; exit;
} }


Loading…
Cancel
Save