Module: kamailio
Branch: master
Commit: 6e950945df2fc236e153db7292bf6ad832fedd6a
URL:
https://github.com/kamailio/kamailio/commit/6e950945df2fc236e153db7292bf6ad…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-06-13T09:05:08+02:00
core: latency log parameters accept negative integer value
- core log levels can be negative
- reported by Olle E. Johansson, GH #669
---
Modified: cfg.y
---
Diff:
https://github.com/kamailio/kamailio/commit/6e950945df2fc236e153db7292bf6ad…
Patch:
https://github.com/kamailio/kamailio/commit/6e950945df2fc236e153db7292bf6ad…
---
diff --git a/cfg.y b/cfg.y
index 91553ff..134e932 100644
--- a/cfg.y
+++ b/cfg.y
@@ -1520,9 +1520,9 @@ assign_stm:
| SERVER_ID EQUAL NUMBER { server_id=$3; }
| MAX_RECURSIVE_LEVEL EQUAL NUMBER { set_max_recursive_level($3); }
| MAX_BRANCHES_PARAM EQUAL NUMBER { sr_dst_max_branches = $3; }
- | LATENCY_LOG EQUAL NUMBER { default_core_cfg.latency_log=$3; }
+ | LATENCY_LOG EQUAL intno { default_core_cfg.latency_log=$3; }
| LATENCY_LOG EQUAL error { yyerror("number expected"); }
- | LATENCY_CFG_LOG EQUAL NUMBER { default_core_cfg.latency_cfg_log=$3; }
+ | LATENCY_CFG_LOG EQUAL intno { default_core_cfg.latency_cfg_log=$3; }
| LATENCY_CFG_LOG EQUAL error { yyerror("number expected"); }
| LATENCY_LIMIT_DB EQUAL NUMBER { default_core_cfg.latency_limit_db=$3; }
| LATENCY_LIMIT_DB EQUAL error { yyerror("number expected"); }