Hello,
Kamailio SIP Server v5.1.3 stable release is out.
This is a maintenance release of the latest stable branch, 5.1, that
includes fixes since the release of v5.1.2. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.1.x. Deployments running previous v5.1.x
versions are strongly recommended to be upgraded to v5.1.3.
For more details about version 5.1.3 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2018/04/kamailio-v5-1-3-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
Just `memset()` this to `0`.
Without this kamailio segfaults when running `fparam_free_restore()` on a variable that contains transformations immediately after creation, because field `next` of the transformation contains garbage.
In my case this was variable which contained `re.subst` transformation. And below is the top of the backtrace.
```
#0 0x00000000005cba17 in tr_param_free (tp=0x292873257325203a) at core/pvapi.c:1804
#1 0x00000000005cb677 in tr_destroy (t=0x7f6387ed0c40) at core/pvapi.c:1742
#2 0x00000000005cb9c1 in tr_free (t=0x0) at core/pvapi.c:1786
#3 0x00000000005ca194 in pv_spec_destroy (spec=0x7f6387ed0b80) at core/pvapi.c:1570
#4 0x00000000005ca1b7 in pv_spec_free (spec=0x7f6387ed0b80) at core/pvapi.c:1578
#5 0x0000000000541820 in fparam_free_contents (fp=0x7f6387ed0ae0) at core/sr_module.c:1334
#6 0x0000000000541898 in fparam_free_restore (param=0x7f6387ed1168) at core/sr_module.c:1364
```
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1506
-- Commit Summary --
* properly initialize new tr_param_t object
-- File Changes --
M src/modules/textops/txt_var.c (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1506.patchhttps://github.com/kamailio/kamailio/pull/1506.diff
--
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/pull/1506
Module: kamailio
Branch: 5.1
Commit: e1fd2ed4bfdc2704f1c89f1b64d852599c0b6726
URL: https://github.com/kamailio/kamailio/commit/e1fd2ed4bfdc2704f1c89f1b64d8525…
Author: yuri-r <yuri.rootshtein(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-24T12:40:26+02:00
ims_charging: fixed check result code at mscc level (#1504)
* ims_charging: fixed check result code at mscc level
according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)
* ims_charging: fixed check result code at mscc level
according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)
(cherry picked from commit 352440d299f1b9f431cc05397f4ea6a7b5967c8a)
---
Modified: src/modules/ims_charging/ims_ro.c
---
Diff: https://github.com/kamailio/kamailio/commit/e1fd2ed4bfdc2704f1c89f1b64d8525…
Patch: https://github.com/kamailio/kamailio/commit/e1fd2ed4bfdc2704f1c89f1b64d8525…
---
diff --git a/src/modules/ims_charging/ims_ro.c b/src/modules/ims_charging/ims_ro.c
index 735f5b30be..497f65dd72 100644
--- a/src/modules/ims_charging/ims_ro.c
+++ b/src/modules/ims_charging/ims_ro.c
@@ -1361,7 +1361,7 @@ static void resume_on_initial_ccr(int is_timeout, void *param, AAAMessage *cca,
create_cca_fui_avps(fui_action, redirecturi);
/* check result code at mscc level */
- if (ro_cca_data->mscc->resultcode != 2001) {
+ if (ro_cca_data->mscc->resultcode && ro_cca_data->mscc->resultcode != 2001) {
LM_DBG("CCA failure at MSCC level with resultcode [%d]\n", ro_cca_data->mscc->resultcode);
error_code = RO_RETURN_FALSE;
goto error1;
Module: kamailio
Branch: master
Commit: 352440d299f1b9f431cc05397f4ea6a7b5967c8a
URL: https://github.com/kamailio/kamailio/commit/352440d299f1b9f431cc05397f4ea6a…
Author: yuri-r <yuri.rootshtein(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-24T12:39:07+02:00
ims_charging: fixed check result code at mscc level (#1504)
* ims_charging: fixed check result code at mscc level
according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)
* ims_charging: fixed check result code at mscc level
according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)
---
Modified: src/modules/ims_charging/ims_ro.c
---
Diff: https://github.com/kamailio/kamailio/commit/352440d299f1b9f431cc05397f4ea6a…
Patch: https://github.com/kamailio/kamailio/commit/352440d299f1b9f431cc05397f4ea6a…
---
diff --git a/src/modules/ims_charging/ims_ro.c b/src/modules/ims_charging/ims_ro.c
index 735f5b30be..497f65dd72 100644
--- a/src/modules/ims_charging/ims_ro.c
+++ b/src/modules/ims_charging/ims_ro.c
@@ -1361,7 +1361,7 @@ static void resume_on_initial_ccr(int is_timeout, void *param, AAAMessage *cca,
create_cca_fui_avps(fui_action, redirecturi);
/* check result code at mscc level */
- if (ro_cca_data->mscc->resultcode != 2001) {
+ if (ro_cca_data->mscc->resultcode && ro_cca_data->mscc->resultcode != 2001) {
LM_DBG("CCA failure at MSCC level with resultcode [%d]\n", ro_cca_data->mscc->resultcode);
error_code = RO_RETURN_FALSE;
goto error1;
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though the Result-Code on CCR itself is 2001 (SUCCESSFUL)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1504
-- Commit Summary --
* ims_charging: fixed check result code at mscc level
-- File Changes --
M src/modules/ims_charging/ims_ro.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1504.patchhttps://github.com/kamailio/kamailio/pull/1504.diff
--
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/pull/1504