Module: kamailio
Branch: 5.1
Commit: 5aff4422815f6842d8ecfd028451a13be22d7374
URL:
https://github.com/kamailio/kamailio/commit/5aff4422815f6842d8ecfd028451a13…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-04T09:26:58+01:00
core: fix setting pv_cache_limit param
(cherry picked from commit ef7398589aaff02d6521171ff569726db6996c6a)
---
Modified: src/core/cfg.y
---
Diff:
https://github.com/kamailio/kamailio/commit/5aff4422815f6842d8ecfd028451a13…
Patch:
https://github.com/kamailio/kamailio/commit/5aff4422815f6842d8ecfd028451a13…
---
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"); }