Hello,
are there any objections to extend the https://github.com/kamailio/kamailio-docker packages to support some environment variables to allow some customization?
* add a run.sh script
* evaluate SHM_MEMORY and PKG_MEMORY variables
* set "-M" and "-m" parameters appropriately for startup
The shared memory pool can be set in the kamailio.cfg, but AFAIK the private memory pool not. Additionally using environment variables would be the common way that is used also in other well-known packages. If no variable is set, the default would be used.
Thanks,
Henning
Module: kamailio
Branch: master
Commit: 065a83fbb1a8b9b1912aadecff039a485c2d46dd
URL: https://github.com/kamailio/kamailio/commit/065a83fbb1a8b9b1912aadecff039a4…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-10-29T09:31:37+02:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/kamailio/commit/065a83fbb1a8b9b1912aadecff039a4…
Patch: https://github.com/kamailio/kamailio/commit/065a83fbb1a8b9b1912aadecff039a4…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index 9d4287804f..abf41a6d85 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -1206,7 +1206,9 @@ With congestion control the formula becomes :
set is chosen.
* limit - the maximum number of items to be stored in XAVP list for
further fail-overs (the first selected destination and default
- destination are the first to be put in the list)
+ destination are the first to be put in the list). This can improve
+ the performance especially if you are using a large list of
+ gateways.
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
Module: kamailio
Branch: master
Commit: 0dc7d711c4c2d16d532862344f9ccd629de38e20
URL: https://github.com/kamailio/kamailio/commit/0dc7d711c4c2d16d532862344f9ccd6…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2022-10-29T07:17:10Z
dispatcher: small docs extensions regarding to ds_select_dst
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/0dc7d711c4c2d16d532862344f9ccd6…
Patch: https://github.com/kamailio/kamailio/commit/0dc7d711c4c2d16d532862344f9ccd6…
---
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml
index 1c9de29ba78..022c915e139 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -1399,7 +1399,8 @@ With congestion control the formula becomes :
<emphasis>limit</emphasis> - the maximum number of items to be
stored in XAVP list for further fail-overs (the first selected
destination and default destination are the first to be put in
- the list)
+ the list). This can improve the performance especially if you
+ are using a large list of gateways.
</para>
</listitem>
</itemizedlist>
Module: kamailio
Branch: master
Commit: 9b4d4d059e6222a64a9b9cadb0b867bea27ed0d8
URL: https://github.com/kamailio/kamailio/commit/9b4d4d059e6222a64a9b9cadb0b867b…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2022-10-29T07:15:10Z
dispatcher: small spelling fix in comment
---
Modified: src/modules/dispatcher/dispatch.c
---
Diff: https://github.com/kamailio/kamailio/commit/9b4d4d059e6222a64a9b9cadb0b867b…
Patch: https://github.com/kamailio/kamailio/commit/9b4d4d059e6222a64a9b9cadb0b867b…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index 8f06f6f5cbb..66ebd19996e 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -2065,7 +2065,7 @@ int ds_select_dst(struct sip_msg *msg, int set, int alg, int mode)
* Set destination address from group 'set' selected with alogorithm 'alg'
* - the rest of addresses in group are added as next destination in xavps,
* up to the 'limit'
- * - mode specify to set address in R-URI or outboud proxy
+ * - mode specify to set address in R-URI or outbound proxy
*
*/
int ds_select_dst_limit(sip_msg_t *msg, int set, int alg, uint32_t limit,
Module: kamailio
Branch: master
Commit: e7e2366634f7b56136b11d4b196150467a18b651
URL: https://github.com/kamailio/kamailio/commit/e7e2366634f7b56136b11d4b1961504…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2022-10-29T07:14:57Z
core: small spelling fix in comment
---
Modified: src/core/parser/msg_parser.h
---
Diff: https://github.com/kamailio/kamailio/commit/e7e2366634f7b56136b11d4b1961504…
Patch: https://github.com/kamailio/kamailio/commit/e7e2366634f7b56136b11d4b1961504…
---
diff --git a/src/core/parser/msg_parser.h b/src/core/parser/msg_parser.h
index 595c1be8957..d582ddf7200 100644
--- a/src/core/parser/msg_parser.h
+++ b/src/core/parser/msg_parser.h
@@ -110,7 +110,7 @@ typedef enum request_method {
#define FL_MSG_NOREPLY (1<<23) /*!< do not send sip reply for request */
#define FL_SIPTRACE (1<<24) /*!< message to be traced in stateless replies */
#define FL_ROUTE_ADDR (1<<25) /*!< request has Route address for next hop */
-#define FL_USE_OTCPID (1<<26) /*!< request to be routed using outboud tcp con id */
+#define FL_USE_OTCPID (1<<26) /*!< request to be routed using outbound tcp con id */
/* WARNING: Value (1 << 28) is reserved for use in kamailio call_control
* module (flag FL_USE_CALL_CONTROL )! */