[sr-dev] git:5.6:bdd1c561: core: init pv buffers earlier to be avaialble for cli params

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 4 11:00:29 CEST 2022


Module: kamailio
Branch: 5.6
Commit: bdd1c561ed640bc79a270532ed70346c5478001f
URL: https://github.com/kamailio/kamailio/commit/bdd1c561ed640bc79a270532ed70346c5478001f

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-07-04T10:35:38+02:00

core: init pv buffers earlier to be avaialble for cli params

- GH #3152

(cherry picked from commit a78adb5340ae6cb57f756189d070c32c49bfa426)

---

Modified: src/main.c

---

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

---

diff --git a/src/main.c b/src/main.c
index cb0c92e357..4ee5afe9d0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2172,6 +2172,10 @@ int main(int argc, char** argv)
 	init_tcp_options(); /* set the defaults before the config */
 #endif
 
+	if (pv_init_buffer()<0) {
+		goto error;
+	}
+
 	pp_define_core();
 
 	/* process command line (cfg. file path etc) */




More information about the sr-dev mailing list