Hello,
now that the summer in the northern hemisphere is gone and many of us
returned at the work, I am considering to release a new version of
Kamailio out of the latest stable branch 4.4. The plan is to have it out
next week, either on Wednesday Sep 14 or Thursday, the following day.
If the are issues not reported on the bug tracker from github project,
it is better to open one item. Do it also if you reported something on
sr-users or sr-dev in the past two months and it is not actual
discussion about it, likely it was forgotten or not noticed during the
holidays and digesting the archive is going to take a while.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.orghttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
When I use get_body_part on a multipart body, it doesn't detect properly the ending of multipart headers:
For instance in:
```
--vvemeemm0wqr7ayc5h367f3v8e66mc9t
Content-Type: application/sdp
Content-Length: 479
v=0
o=- 3669362310 3669362310 IN IP4 192.168.2.4
[...]
```
"Content-Length: 479" is taken into get_body_part("application/sdp", "$var(sdp)");
I will try to provide more details later.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/564
Module: kamailio
Branch: master
Commit: c2e94dc52807f4b6fcd7ccb7fd9f0c54dd7a17cc
URL: https://github.com/kamailio/kamailio/commit/c2e94dc52807f4b6fcd7ccb7fd9f0c5…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2016-09-13T13:16:20+02:00
modules: readme files regenerated - db_mongodb ...
---
Modified: modules/db_mongodb/README
Modified: modules/ndb_mongodb/README
---
Diff: https://github.com/kamailio/kamailio/commit/c2e94dc52807f4b6fcd7ccb7fd9f0c5…
Patch: https://github.com/kamailio/kamailio/commit/c2e94dc52807f4b6fcd7ccb7fd9f0c5…
---
diff --git a/modules/db_mongodb/README b/modules/db_mongodb/README
index 2d63137..d30b03f 100644
--- a/modules/db_mongodb/README
+++ b/modules/db_mongodb/README
@@ -79,8 +79,14 @@ Chapter 1. Admin Guide
running Kamailio with this module loaded:
* mongo-c-driver - available at
https://github.com/mongodb/mongo-c-driver
- Note: if you use tls module, use at least mongo-c-driver v1.2.1 -
- there were reports of issues inside earlier versions of the driver.
+ Note: if you use tls module, use at least mongo-c-driver v1.3.5 and
+ compile the library by configuring it without automatic init and
+ cleanup (you have to run: './configure
+ --disable-automatic-init-and-cleanup') -- this option is planned to
+ be removed in future versions. An alternative for v1.3.5 could be
+ the patch from:
+ https://github.com/miconda/mongo-c-driver/commit/51d95009de39eaeca4
+ 8491682a5ffec4f83cde55
4. Usage
diff --git a/modules/ndb_mongodb/README b/modules/ndb_mongodb/README
index 2e1c740..cac8081 100644
--- a/modules/ndb_mongodb/README
+++ b/modules/ndb_mongodb/README
@@ -98,8 +98,14 @@ Chapter 1. Admin Guide
running Kamailio with this module loaded:
* mongo-c-driver - available at
https://github.com/mongodb/mongo-c-driver
- Note: if you use tls module, use at least mongo-c-driver v1.2.1 -
- there were reports of issues inside earlier versions of the driver.
+ Note: if you use tls module, use at least mongo-c-driver v1.3.5 and
+ compile the library by configuring it without automatic init and
+ cleanup (you have to run: './configure
+ --disable-automatic-init-and-cleanup') -- this option is planned to
+ be removed in future versions. An alternative for v1.3.5 could be
+ the patch from:
+ https://github.com/miconda/mongo-c-driver/commit/51d95009de39eaeca4
+ 8491682a5ffec4f83cde55
3. Parameters
Module: kamailio
Branch: master
Commit: 361dc128016a4bd6611e802a775f7c395905d9b7
URL: https://github.com/kamailio/kamailio/commit/361dc128016a4bd6611e802a775f7c3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-09-13T13:04:43+02:00
ndb_mongodb: elaborated the docs for usage with tls module
---
Modified: modules/ndb_mongodb/doc/ndb_mongodb_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/361dc128016a4bd6611e802a775f7c3…
Patch: https://github.com/kamailio/kamailio/commit/361dc128016a4bd6611e802a775f7c3…
---
diff --git a/modules/ndb_mongodb/doc/ndb_mongodb_admin.xml b/modules/ndb_mongodb/doc/ndb_mongodb_admin.xml
index d6e5a3c..bdfaf76 100644
--- a/modules/ndb_mongodb/doc/ndb_mongodb_admin.xml
+++ b/modules/ndb_mongodb/doc/ndb_mongodb_admin.xml
@@ -53,8 +53,13 @@
<ulink url="https://github.com/mongodb/mongo-c-driver">https://github.com/mongodb/mongo-c-driver</ulink>
</para>
<para>
- Note: if you use tls module, use at least mongo-c-driver v1.2.1
- - there were reports of issues inside earlier versions of the driver.
+ Note: if you use tls module, use at least mongo-c-driver v1.3.5
+ and compile the library by configuring it without automatic init
+ and cleanup (you have to run:
+ './configure --disable-automatic-init-and-cleanup') -- this
+ option is planned to be removed in future versions. An alternative
+ for v1.3.5 could be the patch from:
+ https://github.com/miconda/mongo-c-driver/commit/51d95009de39eaeca48491682a…
</para>
</listitem>
</itemizedlist>
Module: kamailio
Branch: master
Commit: d8ba1694a63ec65efebe9761ea6e85aef7032050
URL: https://github.com/kamailio/kamailio/commit/d8ba1694a63ec65efebe9761ea6e85a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-09-13T13:04:43+02:00
db_mongodb: elaborated the docs for usage with tls module
---
Modified: modules/db_mongodb/doc/db_mongodb_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/d8ba1694a63ec65efebe9761ea6e85a…
Patch: https://github.com/kamailio/kamailio/commit/d8ba1694a63ec65efebe9761ea6e85a…
---
diff --git a/modules/db_mongodb/doc/db_mongodb_admin.xml b/modules/db_mongodb/doc/db_mongodb_admin.xml
index ef6f1c3..500407a 100644
--- a/modules/db_mongodb/doc/db_mongodb_admin.xml
+++ b/modules/db_mongodb/doc/db_mongodb_admin.xml
@@ -69,8 +69,13 @@
<ulink url="https://github.com/mongodb/mongo-c-driver">https://github.com/mongodb/mongo-c-driver</ulink>
</para>
<para>
- Note: if you use tls module, use at least mongo-c-driver v1.2.1
- - there were reports of issues inside earlier versions of the driver.
+ Note: if you use tls module, use at least mongo-c-driver v1.3.5
+ and compile the library by configuring it without automatic init
+ and cleanup (you have to run:
+ './configure --disable-automatic-init-and-cleanup') -- this
+ option is planned to be removed in future versions. An alternative
+ for v1.3.5 could be the patch from:
+ https://github.com/miconda/mongo-c-driver/commit/51d95009de39eaeca48491682a…
</para>
</listitem>
</itemizedlist>
Module: kamailio
Branch: master
Commit: 35114a416d46015a8282094d9e6f7f93d15eb23d
URL: https://github.com/kamailio/kamailio/commit/35114a416d46015a8282094d9e6f7f9…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: 2016-09-13T12:40:15+02:00
modules/cdp: Added ability to receive TIMEOUT event while in IDLE state to authstatemachine to avoid stale sessions
---
Modified: modules/cdp/authstatemachine.c
---
Diff: https://github.com/kamailio/kamailio/commit/35114a416d46015a8282094d9e6f7f9…
Patch: https://github.com/kamailio/kamailio/commit/35114a416d46015a8282094d9e6f7f9…
---
diff --git a/modules/cdp/authstatemachine.c b/modules/cdp/authstatemachine.c
index 203dfef..eaefb0b 100644
--- a/modules/cdp/authstatemachine.c
+++ b/modules/cdp/authstatemachine.c
@@ -290,6 +290,15 @@ int auth_client_statefull_sm_process(cdp_session_t* s, int event, AAAMessage* ms
//LM_INFO("state machine: i was in idle and i am going to pending\n");
break;
+
+ /* Just in case we have some lost sessions */
+ case AUTH_EV_SESSION_TIMEOUT:
+ case AUTH_EV_SESSION_GRACE_TIMEOUT:
+ LM_ERR("auth_client_statefull_sm_process(): Received TIMEOUT - clean up session to avoid stale sessions\n");
+ cdp_session_cleanup(s, msg);
+ s = 0;
+ break;
+
default:
LM_ERR("auth_client_statefull_sm_process(): Received invalid event %d while in state %s!(data %p)\n",
event, auth_states[x->state], x->generic_data);
Module: kamailio
Branch: master
Commit: 3aaa5839242b7b6e458be3cfd9c153daaabc2290
URL: https://github.com/kamailio/kamailio/commit/3aaa5839242b7b6e458be3cfd9c153d…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: 2016-09-13T12:21:10+02:00
modules/ims_qos: modified comment to reflect correct behaviour of regex_sdp_ip_prefix_to_maintain_in_fd
---
Modified: modules/ims_qos/mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/3aaa5839242b7b6e458be3cfd9c153d…
Patch: https://github.com/kamailio/kamailio/commit/3aaa5839242b7b6e458be3cfd9c153d…
---
diff --git a/modules/ims_qos/mod.c b/modules/ims_qos/mod.c
index c103b14..f57ad85 100644
--- a/modules/ims_qos/mod.c
+++ b/modules/ims_qos/mod.c
@@ -100,8 +100,8 @@ int cdp_event_latency_loglevel = 0; /*log-level to use to report slow processing
int audio_default_bandwidth = 64;
int video_default_bandwidth = 128;
-//If set then any IP in SDP that does not match this regex is replaced with any in flow description AVP
-//V useful for UEs that change ports mid way through call therefore breaking flow description filters
+//If set then any IP in SDP that does not match this regex then filter is added with any in flow description AVP
+//Very useful for UEs that change ports mid way through call therefore breaking flow description filters
str regex_sdp_ip_prefix_to_maintain_in_fd = {0, 0};
int cdp_event_list_size_threshold = 0; /**Threshold for size of cdp event list after which a warning is logged */