[sr-dev] git:master:6e950945: core: latency log parameters accept negative integer value

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 13 09:06:15 CEST 2016


Module: kamailio
Branch: master
Commit: 6e950945df2fc236e153db7292bf6ad832fedd6a
URL: https://github.com/kamailio/kamailio/commit/6e950945df2fc236e153db7292bf6ad832fedd6a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/6e950945df2fc236e153db7292bf6ad832fedd6a.diff
Patch: https://github.com/kamailio/kamailio/commit/6e950945df2fc236e153db7292bf6ad832fedd6a.patch

---

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"); }




More information about the sr-dev mailing list