[sr-dev] git:5.1:5aff4422: core: fix setting pv_cache_limit param

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[sr-dev] git:5.1:5aff4422: core: fix setting pv_cache_limit param

Daniel-Constantin Mierla
Module: kamailio
Branch: 5.1
Commit: 5aff4422815f6842d8ecfd028451a13be22d7374
URL: https://github.com/kamailio/kamailio/commit/5aff4422815f6842d8ecfd028451a13be22d7374

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
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/5aff4422815f6842d8ecfd028451a13be22d7374.diff
Patch: https://github.com/kamailio/kamailio/commit/5aff4422815f6842d8ecfd028451a13be22d7374.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"); }


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev