Module: kamailio
Branch: master
Commit: a63fde36f440b6d79cea6cdb0dfeee6258d96698
URL: https://github.com/kamailio/kamailio/commit/a63fde36f440b6d79cea6cdb0dfeee6…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-02-23T14:25:46+01:00
pkg/kamailio/deb: add kamailio-nats-modules to bookworm
https://tracker.debian.org/news/1305763/natsc-320-1-migrated-to-testing/
---
Modified: pkg/kamailio/deb/bookworm/control
Modified: pkg/kamailio/deb/bookworm/rules
Modified: pkg/kamailio/deb/debian/backports/bookworm
---
Diff: https://github.com/kamailio/kamailio/commit/a63fde36f440b6d79cea6cdb0dfeee6…
Patch: https://github.com/kamailio/kamailio/commit/a63fde36f440b6d79cea6cdb0dfeee6…
---
diff --git a/pkg/kamailio/deb/bookworm/control b/pkg/kamailio/deb/bookworm/control
index 8f425be82c..4e670a602c 100644
--- a/pkg/kamailio/deb/bookworm/control
+++ b/pkg/kamailio/deb/bookworm/control
@@ -29,6 +29,7 @@ Build-Depends:
libmongoc-dev,
libmono-2.0-dev [amd64 armel armhf i386 mipsel kfreebsd-amd64 kfreebsd-i386 ppc64 ppc64el s390x],
libmosquitto-dev,
+ libnats-dev,
libncurses5-dev,
libpcre3-dev,
libperl-dev,
@@ -840,6 +841,24 @@ Description: Libwebsockets module for the Kamailio SIP server
This package contains the lwcs module, which provides a client-side WebSockets
API through libwebsockets.
+Package: kamailio-nats-modules
+Architecture: any
+Multi-Arch: same
+Pre-Depends:
+ ${misc:Pre-Depends},
+Depends:
+ kamailio (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends},
+Description: Nats module for the Kamailio SIP server
+ Kamailio is a very fast and flexible SIP (RFC3261)
+ server. Written entirely in C, Kamailio can handle thousands calls
+ per second even on low-budget hardware.
+ .
+ This package contains the nats module, which provides a NATS consumer for Kamailio.
+ NATS is a real time distributed messaging platform, more details about it can be
+ found at nats.io.
+
Package: kamailio-extra-modules
Architecture: any
Multi-Arch: same
diff --git a/pkg/kamailio/deb/bookworm/rules b/pkg/kamailio/deb/bookworm/rules
index ddf8846c9d..2161ac0bb4 100755
--- a/pkg/kamailio/deb/bookworm/rules
+++ b/pkg/kamailio/deb/bookworm/rules
@@ -21,7 +21,7 @@ include /usr/share/dpkg/buildflags.mk
export RADCLI=1
# modules not in the "main" kamailio package
-EXCLUDED_MODULES= java python nats
+EXCLUDED_MODULES= java python
# extra modules to skip, because they are not compilable now
# - regardless if they go to the main kamailio package or to some module package,
@@ -37,7 +37,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
snmpstats carrierroute xmpp cpl redisgeoip geoip2 \
sqlite json mono ruby ims sctp \
tls outbound websocket autheph kazoo cnxcc \
- erlangsystemd phonenum mongodb rabbitmq python3 mqtt secsipid lwsc
+ erlang nats systemd phonenum mongodb rabbitmq python3 mqtt secsipid lwsc
# module groups to be packaged onto kamailio-extra-modules
EXTRA_GROUPS=gzcompress uuid ev jansson http_async
diff --git a/pkg/kamailio/deb/debian/backports/bookworm b/pkg/kamailio/deb/debian/backports/bookworm
index 21dafb2d11..1d39bd6509 100755
--- a/pkg/kamailio/deb/debian/backports/bookworm
+++ b/pkg/kamailio/deb/debian/backports/bookworm
@@ -35,13 +35,6 @@ sed -i -e '/^ python,/d' -e '/python-dev/d' \
sed -i -e 's/ python [ ,$]*//' ${DIST}/rules
sed -i -e '/^EXCLUDED_MODULES=/s/$/ python/' ${DIST}/rules
-# no libnats-dev
-sed -i -e '/^ libnats-dev,/d' \
- -e '/^Package: kamailio-nats-modules/,/^$/d' \
- ${DIST}/control
-sed -i -e 's/ nats [ ,$]*//' ${DIST}/rules
-sed -i -e '/^EXCLUDED_MODULES=/s/$/ nats/' ${DIST}/rules
-
wrap-and-sort -sat -d ${DIST}
# clean backports scripts
### Description
At the moment db_redis driver does not support interfacing with a redis cluster. This is a proposal to add support to it.
The db_redis module will get a new module parameter to enable cluster support (with default 0 - disabled):
```
modparam("db_redis", "cluster", 1)
```
The redis url used by other modules needs to specify all nodes in the cluster, and must NOT include redis database number (since it's not supported in cluster mode):
```
#!define DBURL_USRLOC "redis://10.0.1.1:6379,10.0.1.2:6379,10.0.1.3:6379"
```
The implementation is going to use the [hiredis-cluster](https://github.com/Nordix/hiredis-cluster) library (BSD license). If cluster mode is not enabled the module will behave like before, i.e. all calls to redis will use hiredis library directly.
If you find this proposal sensible, I'll start coding it.
Feedback is welcome, of course!
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2977
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/2977(a)github.com>
#### 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 -->
The IP checksum is part of the header and must be zeroed before checksumming.
This patch also silences another (benign) warning.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3035
-- Commit Summary --
* nathelper: Fix uninitialized data
-- File Changes --
M src/modules/nathelper/nathelper.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3035.patchhttps://github.com/kamailio/kamailio/pull/3035.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3035
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3035(a)github.com>
…ugh the ipsec tunnel
<!-- 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 -->
- [X] Commit message has the format required by CONTRIBUTING guide
- [X] Commits are split per component (core, individual modules, libs, utils, ...)
- [X] Each component has a single commit (if not, squash them into one commit)
- [X] 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 -->
- [X] PR should be backported to stable branches
- [X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
I've fixed an issue that would ignore legitimate replies that are sent by real-world UEs, causing calls to completely break due to timeouts.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3029
-- Commit Summary --
* ims_ipsec_pcscf: fix issues with UEs not sending certain replies through the ipsec tunnel
-- File Changes --
M src/modules/ims_ipsec_pcscf/cmd.c (108)
M src/modules/ims_ipsec_pcscf/ims_ipsec_pcscf_mod.c (13)
M src/modules/ims_ipsec_pcscf/ipsec.c (39)
D src/modules/ims_ipsec_pcscf/port_gen.c (227)
D src/modules/ims_ipsec_pcscf/port_gen.h (41)
M src/modules/ims_ipsec_pcscf/sec_agree.c (26)
M src/modules/ims_ipsec_pcscf/spi_gen.c (119)
M src/modules/ims_ipsec_pcscf/spi_gen.h (6)
M src/modules/ims_ipsec_pcscf/spi_list.c (72)
M src/modules/ims_ipsec_pcscf/spi_list.h (13)
M src/modules/ims_ipsec_pcscf/spi_list_tests.c (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3029.patchhttps://github.com/kamailio/kamailio/pull/3029.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3029
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3029(a)github.com>
When running as a P-CSCF a crash would occur with certain in-dialog
replies. The `msg->contact->parsed` pointer is unreliably reused and
would point to garbage.
<!-- 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 -->
- [X] Commit message has the format required by CONTRIBUTING guide
- [X] Commits are split per component (core, individual modules, libs, utils, ...)
- [X] Each component has a single commit (if not, squash them into one commit)
- [X] 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
- [X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
When running as a P-CSCF a crash would occur with certain in-dialog replies. The `msg->contact->parsed` pointer is unreliably reused and would point to garbage.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3032
-- Commit Summary --
* ims: fix a crash with contact parsing
-- File Changes --
M src/lib/ims/ims_getters.c (21)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3032.patchhttps://github.com/kamailio/kamailio/pull/3032.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3032
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3032(a)github.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 -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [x] 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
- [x] Tested changes locally
- [x] Related to issue #2069
#### Description
The Erlang module is not working at all with newer Kamailio versions. One of the issues was already found in #2069 but no code was submitted. The second one I believe is related to https://github.com/kamailio/kamailio/commit/7bb2669528a819ec29a8193eebc9c64… in that the erlang module assumes that pvi.type is zero and uses that field to type the custom fields it manages and this commit starts populating pvi.type with a 4.
I don't have a solid grasp on pvapi.c so if the experts have a better way to fix this up I am all ears. These two commits do get the module working properly and I am able to use both the custom erlang PV terms and the RPC feature from my proxy now.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3024
-- Commit Summary --
* Erlang: Erlang module assumes pvi.type is zero
* Erlang: Revert breaking change
-- File Changes --
M src/modules/erlang/pv_atom.c (3)
M src/modules/erlang/pv_pid.c (3)
M src/modules/erlang/pv_ref.c (3)
M src/modules/erlang/pv_xbuff.c (13)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3024.patchhttps://github.com/kamailio/kamailio/pull/3024.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3024
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3024(a)github.com>