Module: kamailio
Branch: 4.2
Commit: 008b03ae8361ca06da9042b479c10e760391da72
URL: https://github.com/kamailio/kamailio/commit/008b03ae8361ca06da9042b479c10e7…
Author: Alex Balashov <abalashov(a)evaristesys.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:05:01+01:00
evapi: Listening socket will be bound with SO_REUSEADDR option so that rebinding does not have to wait for TIME_WAIT connections to clear.
(cherry picked from commit cd1a59f223e2806ca4c16ab4a8dc1e0ff2b219d1)
---
Modified: modules/evapi/evapi_dispatch.c
---
Diff: https://github.com/kamailio/kamailio/commit/008b03ae8361ca06da9042b479c10e7…
Patch: https://github.com/kamailio/kamailio/commit/008b03ae8361ca06da9042b479c10e7…
---
diff --git a/modules/evapi/evapi_dispatch.c b/modules/evapi/evapi_dispatch.c
index 6ee7e3d..1ba1c0b 100644
--- a/modules/evapi/evapi_dispatch.c
+++ b/modules/evapi/evapi_dispatch.c
@@ -434,6 +434,7 @@ int evapi_run_dispatcher(char *laddr, int lport)
struct hostent *h = NULL;
struct ev_io io_server;
struct ev_io io_notify;
+ int yes_true = 1;
LM_DBG("starting dispatcher processing\n");
@@ -469,6 +470,18 @@ int evapi_run_dispatcher(char *laddr, int lport)
evapi_srv_addr.sin_port = htons((short)lport);
evapi_srv_addr.sin_addr = *(struct in_addr*)h->h_addr;
+ /* Set SO_REUSEADDR option on listening socket so that we don't
+ * have to wait for connections in TIME_WAIT to go away before
+ * re-binding.
+ */
+
+ if(setsockopt(evapi_srv_sock, SOL_SOCKET, SO_REUSEADDR,
+ &yes_true, sizeof(int)) < 0) {
+ LM_ERR("cannot set SO_REUSEADDR option on descriptor\n");
+ close(evapi_srv_sock);
+ return -1;
+ }
+
if (bind(evapi_srv_sock, (struct sockaddr*)&evapi_srv_addr,
sizeof(evapi_srv_addr)) < 0) {
LM_ERR("cannot bind to local address and port [%s:%d]\n", laddr, lport);
Module: kamailio
Branch: 4.2
Commit: e2db60867748eac2e6585ef9d865b12c1e8ddfe2
URL: https://github.com/kamailio/kamailio/commit/e2db60867748eac2e6585ef9d865b12…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:04:19+01:00
sipcapture Add some missing \n in log messages
(cherry picked from commit 5bafc03222bf6fcc59dbcf8aec30def9cdb24581)
---
Modified: modules/sipcapture/sipcapture.c
---
Diff: https://github.com/kamailio/kamailio/commit/e2db60867748eac2e6585ef9d865b12…
Patch: https://github.com/kamailio/kamailio/commit/e2db60867748eac2e6585ef9d865b12…
---
diff --git a/modules/sipcapture/sipcapture.c b/modules/sipcapture/sipcapture.c
index 42df2c3..070482c 100644
--- a/modules/sipcapture/sipcapture.c
+++ b/modules/sipcapture/sipcapture.c
@@ -794,16 +794,16 @@ static int mod_init(void) {
}
if ((insert_retries <0) || ( insert_retries > 500)) {
- LM_ERR("insert_retries should be a value between 0 and 500");
+ LM_ERR("insert_retries should be a value between 0 and 500\n");
return -1;
}
if (( 0 == insert_retries) && (insert_retry_timeout != 0)){
- LM_ERR("insert_retry_timeout has no meaning when insert_retries is not set");
+ LM_ERR("insert_retry_timeout has no meaning when insert_retries is not set\n");
}
if ((insert_retry_timeout <0) || ( insert_retry_timeout > 300)) {
- LM_ERR("insert_retry_timeout should be a value between 0 and 300");
+ LM_ERR("insert_retry_timeout should be a value between 0 and 300\n");
return -1;
}
@@ -964,7 +964,7 @@ static int child_init(int rank)
while (c){
if (!c->db_url.s || !c->db_url.len ){
- LM_ERR("DB URL not set for capture mode:[%.*s]", c->name.len, c->name.s);
+ LM_ERR("DB URL not set for capture mode:[%.*s]\n", c->name.len, c->name.s);
return -1;
}
c->db_con = c->db_funcs.init(&c->db_url);
Hi!
While discussing the $RANDOM variable I noticed that it was missing from the cookbook and will add it.
Victor noted in IRC that we did not have a section ID identifier for pseudovariables - to generate
the README.
I added "v" on the wiki for this. Daniel - is this ok? I guess it's you managing the scripts...
http://www.kamailio.org/wiki/devel/module-docbook-readme?&#section_ids
/O
Reported by klaus.lists(a)inode.at
please correct typos in the "COREX" module documentation (verified in current devel module´s documentation), chapter 1.3 ff:
modparam("corex", "min_msg_len", 32)
The modparam "min_msg_len" (= http://kamailio.org/docs/modules/devel/modules/corex.html#idm14680) is always named "msg_min_len" in the README file and online documentation. Only the exemplary kamailio.cfg excerpt is using the right name of this module parameter. Please use the right parameters name "min_msg_len" in the whole document.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/65