[sr-dev] git:master:ef739858: core: fix setting pv_cache_limit param

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 4 09:04:39 CET 2017


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-04T09:03:28+01:00

core: fix setting pv_cache_limit param

---

Modified: src/core/cfg.y

---

Diff:  https://github.com/kamailio/kamailio/commit/ef7398589aaff02d6521171ff569726db6996c6a.diff
Patch: https://github.com/kamailio/kamailio/commit/ef7398589aaff02d6521171ff569726db6996c6a.patch

---

diff --git a/src/core/cfg.y b/src/core/cfg.y
index 4548d321f9..85105120b7 100644
--- a/src/core/cfg.y
+++ b/src/core/cfg.y
@@ -1556,11 +1556,11 @@ assign_stm:
 	| MAX_WLOOPS EQUAL error { yyerror("number expected"); }
 	| PVBUFSIZE EQUAL NUMBER { pv_set_buffer_size($3); }
 	| PVBUFSIZE EQUAL error { yyerror("number expected"); }
-	| PVBUFSLOTS EQUAL NUMBER { default_core_cfg.pv_cache_limit=$3; }
+	| PVBUFSLOTS EQUAL NUMBER { pv_set_buffer_slots($3); }
 	| PVBUFSLOTS EQUAL error { yyerror("number expected"); }
-	| PVCACHELIMIT EQUAL NUMBER { default_core_cfg.pv_cache_action=$3; }
+	| PVCACHELIMIT EQUAL NUMBER { default_core_cfg.pv_cache_limit=$3; }
 	| PVCACHELIMIT EQUAL error { yyerror("number expected"); }
-	| PVCACHEACTION EQUAL NUMBER { pv_set_buffer_slots($3); }
+	| PVCACHEACTION EQUAL NUMBER { default_core_cfg.pv_cache_action=$3; }
 	| PVCACHEACTION EQUAL error { yyerror("number expected"); }
 	| HTTP_REPLY_PARSE EQUAL NUMBER { http_reply_parse=$3; }
 	| HTTP_REPLY_PARSE EQUAL error { yyerror("boolean value expected"); }




More information about the sr-dev mailing list