Module: kamailio
Branch: 5.1
Commit: a59f72f36463761bf47e6d98faaf624749644140
URL: https://github.com/kamailio/kamailio/commit/a59f72f36463761bf47e6d98faaf624…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-02-10T08:28:10+01:00
tm: use WARN log level for status rewrite by UAS (were decreased before SER tm integration)
- use WARN log level for status rewrite by UAS (log level decreased before SER
tm integration, e.g. v1.5.x)
- for bad interconnection or gateways this might be reported frequently
(cherry picked from commit e1a01699af450292859e4f2cd69b6a6d85246e5e)
(cherry picked from commit b370041ccfd86e15812e1a06ad803569654eac07)
---
Modified: src/modules/tm/t_reply.c
---
Diff: https://github.com/kamailio/kamailio/commit/a59f72f36463761bf47e6d98faaf624…
Patch: https://github.com/kamailio/kamailio/commit/a59f72f36463761bf47e6d98faaf624…
---
diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c
index 8e986e2fab..b4cba92fa1 100644
--- a/src/modules/tm/t_reply.c
+++ b/src/modules/tm/t_reply.c
@@ -1302,7 +1302,7 @@ static enum rps t_should_relay_response( struct cell *Trans , int new_code,
}
/* this looks however how a very strange status rewrite attempt;
* report on it */
- LM_ERR("status rewrite by UAS: stored: %d, received: %d\n",
+ LM_WARN("status rewrite by UAS: stored: %d, received: %d\n",
Trans->uac[branch].last_received, new_code);
goto discard;
}
Hello,
I am considering to release Kamailio v5.1.10 on Thursday, Jan 30, 2020,
to mark the end of official packaging from branch 5.1. At this moment
the last two stable branches are 5.2 and 5.3.
If anyone is aware of some commits for fixes that should be backported
to branch 5.1, write to sr-dev.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - March 9-11, 2020, Berlin - www.asipto.com
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com
<!-- 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 -->
These two variables were copied directly from rtpproxy module but never used by
this module.
Signed-off-by: Peter Lemenkov <lemenkov(a)gmail.com>
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2216
-- Commit Summary --
* rtpengine: Remove unused struct fields
-- File Changes --
M src/modules/rtpengine/rtpengine.h (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2216.patchhttps://github.com/kamailio/kamailio/pull/2216.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/2216
Module: kamailio
Branch: 5.1
Commit: ebf8af806d5ad5f44d119f12131a446c0eea4019
URL: https://github.com/kamailio/kamailio/commit/ebf8af806d5ad5f44d119f12131a446…
Author: Peter Lemenkov <lemenkov(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-02-09T17:26:37+01:00
rtpengine: Remove unused struct fields
These two were copied directly from rtpproxy module but never used by
this module.
Signed-off-by: Peter Lemenkov <lemenkov(a)gmail.com>
(cherry picked from commit 35b82c4acb4559fd14faa86fe1c58caf763d5fd0)
---
Modified: src/modules/rtpengine/rtpengine.h
---
Diff: https://github.com/kamailio/kamailio/commit/ebf8af806d5ad5f44d119f12131a446…
Patch: https://github.com/kamailio/kamailio/commit/ebf8af806d5ad5f44d119f12131a446…
---
diff --git a/src/modules/rtpengine/rtpengine.h b/src/modules/rtpengine/rtpengine.h
index 07d8acdb00..d7b605057e 100644
--- a/src/modules/rtpengine/rtpengine.h
+++ b/src/modules/rtpengine/rtpengine.h
@@ -49,8 +49,6 @@ struct rtpp_node {
unsigned int rn_weight; /* for load balancing */
unsigned int rn_displayed; /* for delete at db reload */
unsigned int rn_recheck_ticks;
- int rn_rep_supported;
- int rn_ptl_supported;
struct rtpp_node *rn_next;
};
Module: kamailio
Branch: 5.2
Commit: 55e0eef3f554b5cb6e8cec73c4a482ac03b3c99d
URL: https://github.com/kamailio/kamailio/commit/55e0eef3f554b5cb6e8cec73c4a482a…
Author: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-02-09T17:18:30+01:00
ims_reqistrar_scscf: Fix bug with multi-notifications
- Added more accurate contact comparison when
sending NOTIFY to a subscriber.
(cherry picked from commit c275110a07fdad8963a08f5ca210f0d5fb717986)
---
Modified: src/modules/ims_registrar_scscf/registrar_notify.c
---
Diff: https://github.com/kamailio/kamailio/commit/55e0eef3f554b5cb6e8cec73c4a482a…
Patch: https://github.com/kamailio/kamailio/commit/55e0eef3f554b5cb6e8cec73c4a482a…
---
diff --git a/src/modules/ims_registrar_scscf/registrar_notify.c b/src/modules/ims_registrar_scscf/registrar_notify.c
index fd7116e855..175eb72cc2 100644
--- a/src/modules/ims_registrar_scscf/registrar_notify.c
+++ b/src/modules/ims_registrar_scscf/registrar_notify.c
@@ -1349,6 +1349,21 @@ int aor_to_contact(str* aor, str* contact) {
return ret;
}
+/*!
+ * \brief Match two contacts with full string - ips, ports and aliases
+ * \param c1 contact string 1
+ * \param c2 contact string 2
+ * \return 1 when they match, 0 when they not match
+ */
+static int contact_match(str* c1, str* c2) {
+ LM_DBG("Matching full contact string - comparing [%.*s] and [%.*s]\n", c1->len, c1->s, c2->len, c2->s);
+ if ((c1->len == c2->len) && !memcmp(c1->s, c2->s, c1->len)) {
+ return 1;
+ }
+
+ return 0;
+}
+
/*!
* \brief Match a contact record to a contact string but only compare the ip port portion
* \param ptr contact record
@@ -1435,7 +1450,7 @@ void create_notifications(udomain_t* _t, impurecord_t* r_passed, str *presentity
//This is a fix to ensure that when a user subscribes a full reg info is only sent to that UE
if (event_type == IMS_REGISTRAR_SUBSCRIBE) {
- if (contact_port_ip_match(watcher_contact, &s->watcher_contact) &&
+ if (contact_match(watcher_contact, &s->watcher_contact) &&
(presentity_uri->len == s->presentity_uri.len) && (memcmp(s->presentity_uri.s, presentity_uri->s, presentity_uri->len) == 0)) {
LM_DBG("This is a fix to ensure that we only send full reg info XML to the UE that just subscribed. About to make new notification! We always increment the local cseq and version before we send a new notification\n");