Module: kamailio
Branch: master
Commit: 089a55b8417b48ed783fafe0ed4bc10374e09425
URL: https://github.com/kamailio/kamailio/commit/089a55b8417b48ed783fafe0ed4bc10…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-12-28T20:16:21+01:00
modules: readme files regenerated - siputils ... [skip ci]
---
Modified: src/modules/siputils/README
---
Diff: https://github.com/kamailio/kamailio/commit/089a55b8417b48ed783fafe0ed4bc10…
Patch: https://github.com/kamailio/kamailio/commit/089a55b8417b48ed783fafe0ed4bc10…
---
diff --git a/src/modules/siputils/README b/src/modules/siputils/README
index d5ea0ae845..bd32c3e674 100644
--- a/src/modules/siputils/README
+++ b/src/modules/siputils/README
@@ -461,6 +461,11 @@ modparam("auth", "rpid_avp", "$avp(myrpid)")
Please note that you need to set a positive ring_timeout value in order
to use this function.
+ Note: the change of sip reply can be done only in cases when it is not
+ parsed too much before config execution, otherwise it fails. For
+ example, setting global parameter "log_prefix" can cause this function
+ to fail changing the replies.
+
The function returns TRUE on success, and FALSE during processing
failures.
Module: kamailio
Branch: master
Commit: 090f1f74603de6113f3dd41095ae41b4f03f8171
URL: https://github.com/kamailio/kamailio/commit/090f1f74603de6113f3dd41095ae41b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-28T20:00:17+01:00
siputils: docs - note about restrictions of ring_insert_callid()
- GH #2989
---
Modified: src/modules/siputils/doc/siputils_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/090f1f74603de6113f3dd41095ae41b…
Patch: https://github.com/kamailio/kamailio/commit/090f1f74603de6113f3dd41095ae41b…
---
diff --git a/src/modules/siputils/doc/siputils_admin.xml b/src/modules/siputils/doc/siputils_admin.xml
index 2b7ac27951..db66d40ac6 100644
--- a/src/modules/siputils/doc/siputils_admin.xml
+++ b/src/modules/siputils/doc/siputils_admin.xml
@@ -286,6 +286,12 @@ modparam("auth", "rpid_avp", "$avp(myrpid)")
to use this function.
</para>
<para>
+ Note: the change of sip reply can be done only in cases when it is not
+ parsed too much before config execution, otherwise it fails. For
+ example, setting global parameter "log_prefix" can cause this function
+ to fail changing the replies.
+ </para>
+ <para>
The function returns TRUE on success, and FALSE during processing failures.
</para>
<para>
Hello everyone,
I have a problem over running local docker images of Kamailio in Kubernate cluster..
Consider I build a local docker image from Kamailio and create a pod in one of my nodes . My process created successfully and Kamailio listen over port 5060 now I need to rebuild another docker image with new Kamailio configuration and run it as another pod with new name and listening over port 5061 but I have error "ImagePullBackOff" . I test this scenario many times but problem exists..
It is devastating for me and I need emergency help.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2988
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/2988(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 -->
- [ ] 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
- [ ] 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
Removed RHEL/CentOS 6 packaging from spec file as those versions reached End of Life almost more than a year ago. Fixed a typo and did %autosetup instead of %setup -n which figures out name and version automatically from macros and also does a quiet decompression of source archive.
Note: %autosetup has similar -n flag if archive name isn't standard like %{name}-%{version}
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2986
-- Commit Summary --
* Removed packaging for RHEL/CentOS 6 as End Of Life
* Typo fix & %autosetup in prep section
-- File Changes --
M pkg/kamailio/obs/kamailio.spec (104)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2986.patchhttps://github.com/kamailio/kamailio/pull/2986.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2986
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/2986(a)github.com>
Another challenging year is getting close to its end, pressuring even
more everyone! Let's hope things will go back to a more usual life (as
it used to be) in the near future!
Kamailio project continued to develop, bringing out a new major release,
preparing for the next one in a few months, relying on an amazing
community of developers and users. We also trust it continued to help
people and companies world wide to connect with the dear ones and build
a better way of living.
The season holidays are ahead, time to relax, spend time with family and
friends! I take again this chance to express my thanks and greetings to
all the friends, developers, supporting companies and community members
that made 2021 another great year for Kamailio project.
Enjoy the holidays! Merry Christmas!
Daniel
* Santa is flying Kamailio! *
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
### Description
If possible, add a new parameter, where you can choose between sending the password in ha1 or plain text.
### Expected behavior
route[REGFWD] {
if(!is_method("REGISTER"))
{
return;
}
$uac_req(method)="REGISTER";
$uac_req(auser)=$fU;
$uac_req(apasswd)="4850730cadc0250e9fa951eae583ace9";
$uac_req(passtype)="ha1";
...
uac_req_send();
...
}
#### Actual observed behavior
It is currently not possible to send the password in ha1 format
#### Debugging Data
#### Log Messages
#### SIP Traffic
### Possible Solutions
Create an additional field.
### Additional Information
version: kamailio 5.5.2 (x86_64/linux) 55e232
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 55e232
compiled on 14:20:31 Aug 25 2021 with gcc 4.8.5
* **Operating System**:
CentOS Linux release 7.9.2009 (Core)
Linux vsphone-proxy-srv1.virtualsistemas.local 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2982
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/2982(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, ...)
- [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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [X] 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 -->
Added a publish function to nats module. When the function is called, the routing process tries to connect to the url (param) and tries to send the payload (param) to the subject queue (param). No libuv is used for this.
Probably a better approach is to make publisher workers (like subscriber workers) and pass payload from routing processes to publisher worker processes via shared memory. Right now I see this as an improvement and find the new function good enough, for now.
@eschmidbauer what do you think of this?
Thank you,
Stefan
P.S. Will update doc after review.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2915
-- Commit Summary --
* <a href="https://github.com/kamailio/kamailio/pull/2915/commits/121ae374e0c309027eeb…">nats: Add publish function</a>
-- File Changes --
M src/modules/nats/nats_mod.c (71)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2915.patchhttps://github.com/kamailio/kamailio/pull/2915.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/2915
```
When compiling against openldap 2.6.0 kamailio's private ldap_connect() clashes
with openldap's own. curl dealt with a similar issue earlier (see [1]).
Simply rename the function to avoid the issue.
In file included from ldap_api_fn.c:37:
ldap_connect.h:34:12: error: conflicting types for 'ldap_connect'; have 'int(char *)'
34 | extern int ldap_connect(char *_ld_name);
| ^~~~~~~~~~~~
In file included from ldap_api_fn.c:33:
/home/sk/tmp/sdk/openwrt-sdk-ath79-generic_gcc-11.2.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include/ldap.h:1555:1: note: previous declaration of 'ldap_connect' with type 'int(LDAP *)' {aka 'int(struct ldap *)'}
1555 | ldap_connect( LDAP *ld );
| ^~~~~~~~~~~~
make[5]: *** [../../Makefile.rules:100: ldap_api_fn.o] Error 1
make[4]: *** [Makefile:511: modules] Error 1
```
[1] https://github.com/curl/curl/commit/8bdde6b14ce3b5fd71c772a578fcbd4b6fa6df19
Signed-off-by: Sebastian Kemper <sebastian_ml(a)gmx.net>
<!-- 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 -->
Hi all,
Small compile fix. I saw kamailio is failing to build on OpenWrt build bots since a recent openldap bump from 2.4.58 to 2.6.0.
I linked a curl commit in the commit message, they also renamed some of their functions, although they did rename all their ldap_* functions to oldap_. I didn't dare do that in kamailio :) Renaming a single function was enough to make it compile again.
Maybe you want to do something different to address this issue, I don't know.
I didn't runtest this.
Kind regards,
Seb
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2975
-- Commit Summary --
* ldap: rename private function ldap_connect
-- File Changes --
M src/modules/ldap/ldap_connect.c (2)
M src/modules/ldap/ldap_connect.h (2)
M src/modules/ldap/ldap_mod.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2975.patchhttps://github.com/kamailio/kamailio/pull/2975.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/2975
### Description
kemi python3: exception occur when import logging module
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
very simple to reproduce is add this line to python kemi file
```
import logging
```
#### Debugging Data
```
(paste your debugging data here)
```
#### Log Messages
```
0(49) INFO: <core> [core/tcp_main.c:4983]: init_tcp(): using epoll_lt as the io watch method (auto detected)
0(49) WARNING: outbound [outbound_mod.c:121]: mod_init(): "stun" module is not loaded. STUN is required to use outbound with UDP.
0(49) INFO: <core> [core/kemi.c:105]: sr_kemi_core_info(): KAMAILIO PYTHON3 APPLICATION INSTANTIATE CLASS OBJECT
0(49) INFO: <core> [core/kemi.c:105]: sr_kemi_core_info(): KAMAILIO INITIATION
0(49) INFO: <core> [main.c:3030]: main(): processes (at least): 25 - shm size: 268435456 - pkg size: 16777216
0(49) INFO: <core> [core/udp_server.c:154]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992
0(49) INFO: <core> [core/udp_server.c:206]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Exception ignored in: <function _releaseLock at 0x7fb7ed1d3f28>
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/__init__.py", line 226, in _releaseLock
_lock.release()
RuntimeError: cannot release un-acquired lock
Ignoring exception from logging atfork <_StderrHandler <stderr> (WARNING)> release method: cannot release un-acquired lock
1(50) INFO: <core> [core/kemi.c:105]: sr_kemi_core_info(): KAMAILIO CHILD PROCESS INITIALIZED 1
Exception ignored in: <function _releaseLock at 0x7fb7ed1d3f28>
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/__init__.py", line 226, in _releaseLock
Exception ignored in: <function _releaseLock at 0x7fb7ed1d3f28>
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/__init__.py", line 226, in _releaseLock
Exception ignored in: <function _releaseLock at 0x7fb7ed1d3f28>
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/__init__.py", line 226, in _releaseLock
_lock.release()
Exception ignored in: <function _releaseLock at 0x7fb7ed1d3f28>
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/__init__.py", line 226, in _releaseLock
_lock.release()
_lock.release()
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
Test on `5.5.2` and `5.4.7` both occur the issue
```
root@c011e17b1e00:/opt/siproxy# kamailio -v
version: kamailio 5.5.2 (x86_64/linux) 55e232
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 55e232
compiled on 11:54:55 Oct 14 2021 with gcc 8.3.0
```
```
root@sgcoordinator1:/opt# kamailio -v
version: kamailio 5.4.5 (x86_64/linux) c46342
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: c46342
compiled on 07:26:04 Jul 23 2021 with gcc 8.3.0
```
* **Operating System**:
occur on debian or docker as well
```
Linux c011e17b1e00 5.10.47-linuxkit #1 SMP Sat Jul 3 21:51:47 UTC 2021 x86_64 GNU/Linux
Linux machine 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
```
--
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/2885
Hello everyone
I’m new in siremis as web interface of kamailio and I immediately need your help,I installed kamailio and siremis and login in siremis web interface,I can work with it but now I have a problem.
I want to change menu language there is an option in(setting->translate->manage languages) add my desired language and click save and i see this error:
Error message: #2, count(): Parameter must be an array or an object that implements Countable
Script name and line number of error: /var/www/siremis-5.3.x/siremis/modules/translation/lib/LangPackCreator.php
github.com>
Module: kamailio
Branch: master
Commit: 99a9f27c8d24a06f201b4713f7a2bfeb37092482
URL: https://github.com/kamailio/kamailio/commit/99a9f27c8d24a06f201b4713f7a2bfe…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-19T17:55:55+01:00
misc/examples: kemi - update lua sample config
---
Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua
---
Diff: https://github.com/kamailio/kamailio/commit/99a9f27c8d24a06f201b4713f7a2bfe…
Patch: https://github.com/kamailio/kamailio/commit/99a9f27c8d24a06f201b4713f7a2bfe…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
index a406b6429c..7b1476efb1 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
+++ b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
@@ -80,18 +80,20 @@ function ksr_request_route()
return 1;
end
+ -- handle retransmissions
+ if not KSR.is_ACK() then
+ if KSR.tmx.t_precheck_trans()>0 then
+ KSR.tm.t_check_trans();
+ return 1;
+ end
+ if KSR.tm.t_check_trans()==0 then return 1 end
+ end
+
-- handle requests within SIP dialogs
ksr_route_withindlg();
-- -- only initial requests (no To tag)
- -- handle retransmissions
- if KSR.tmx.t_precheck_trans()>0 then
- KSR.tm.t_check_trans();
- return 1;
- end
- if KSR.tm.t_check_trans()==0 then return 1 end
-
-- authentication
ksr_route_auth();
@@ -158,6 +160,11 @@ end
-- Per SIP request initial checks
function ksr_route_reqinit()
+ -- no connect for sending replies
+ KSR.set_reply_no_connect();
+ -- enforce symmetric signaling
+ -- send back replies to the source address of request
+ KSR.force_rport();
if not KSR.is_myself_srcip() then
local srcip = KSR.kx.get_srcip();
if KSR.htable.sht_match_name("ipban", "eq", srcip) > 0 then
@@ -194,7 +201,7 @@ function ksr_route_reqinit()
KSR.x.exit();
end
- if KSR.sanity.sanity_check(1511, 7)<0 then
+ if KSR.sanity.sanity_check(17895, 7)<0 then
KSR.err("malformed SIP message from "
.. KSR.kx.get_srcip() .. ":" .. KSR.kx.get_srcport() .."\n");
KSR.x.exit();
@@ -319,7 +326,6 @@ function ksr_route_natdetect()
if not KSR.nathelper then
return 1;
end
- KSR.force_rport();
if KSR.nathelper.nat_uac_test(19)>0 then
if KSR.is_REGISTER() then
KSR.nathelper.fix_nated_register();
Module: kamailio
Branch: master
Commit: 03acf834a19689d6c3efcea93e48985d3e7ffc37
URL: https://github.com/kamailio/kamailio/commit/03acf834a19689d6c3efcea93e48985…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-16T09:44:54+01:00
core: parser - clang format parser_f.c
---
Modified: src/core/parser/parser_f.c
---
Diff: https://github.com/kamailio/kamailio/commit/03acf834a19689d6c3efcea93e48985…
Patch: https://github.com/kamailio/kamailio/commit/03acf834a19689d6c3efcea93e48985…
---
diff --git a/src/core/parser/parser_f.c b/src/core/parser/parser_f.c
index f1a532fd6f..c124f68cc5 100644
--- a/src/core/parser/parser_f.c
+++ b/src/core/parser/parser_f.c
@@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
@@ -28,22 +28,27 @@
*/
-#include "parser_f.h"
+#include "parser_f.h"
#include "../ut.h"
/** @brief returns pointer to next line or after the end of buffer */
-char* eat_line(char* buffer, unsigned int len)
+char *eat_line(char *buffer, unsigned int len)
{
- char* nl;
+ char *nl;
/* jku .. replace for search with a library function; not conforming
as I do not care about CR
*/
- nl=(char *)q_memchr( buffer, '\n', len );
- if ( nl ) {
- if ( nl + 1 < buffer+len) nl++;
- if (( nl+1<buffer+len) && * nl=='\r') nl++;
- } else nl=buffer+len;
+ nl = (char *)q_memchr(buffer, '\n', len);
+ if(nl) {
+ if(nl + 1 < buffer + len) {
+ nl++;
+ }
+ if((nl + 1 < buffer + len) && *nl == '\r') {
+ nl++;
+ }
+ } else {
+ nl = buffer + len;
+ }
return nl;
}
-
Module: kamailio
Branch: 5.5
Commit: 3cd4676ce5071f83fccc0e16946c9e0376b018f6
URL: https://github.com/kamailio/kamailio/commit/3cd4676ce5071f83fccc0e16946c9e0…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-12-16T09:32:07+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/tls/README
---
Diff: https://github.com/kamailio/kamailio/commit/3cd4676ce5071f83fccc0e16946c9e0…
Patch: https://github.com/kamailio/kamailio/commit/3cd4676ce5071f83fccc0e16946c9e0…
---
diff --git a/src/modules/tls/README b/src/modules/tls/README
index 86dde8f336..2bba8c8115 100644
--- a/src/modules/tls/README
+++ b/src/modules/tls/README
@@ -238,6 +238,14 @@ Chapter 1. Admin Guide
module that uses libssl (OpenSSL library). A safe option is to have the
tls module loaded first (be in the first "loadmodule" in Kamailio.cfg).
+ IMPORTANT: using this module compiled with newer versions of libssl
+ (e.g., v1.1+) may require Kamailio to be started with --atexit=no
+ command line parameters to avoid calling C atexit callbacks inside the
+ process ending during daemonize procedure as well as during shut down,
+ which can lead to crashes because it destroys and then accesses shared
+ memory. For example, such case has been reported for Ubuntu 20.04 or
+ RedHat 8.
+
2. Quick Start
The default kamailio.cfg file has basic tls support included, it has to
Module: kamailio
Branch: 5.5
Commit: e1fb93fa9e3b79f043fd6b7379a61340ba93e071
URL: https://github.com/kamailio/kamailio/commit/e1fb93fa9e3b79f043fd6b7379a6134…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-16T08:31:02+01:00
tls: docs - added note about --atexit=no cli param for newer libssl versions
(cherry picked from commit 8dc18cab5bc32c1d34a9113242d230b7458d4075)
---
Modified: src/modules/tls/doc/tls.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e1fb93fa9e3b79f043fd6b7379a6134…
Patch: https://github.com/kamailio/kamailio/commit/e1fb93fa9e3b79f043fd6b7379a6134…
---
diff --git a/src/modules/tls/doc/tls.xml b/src/modules/tls/doc/tls.xml
index b5ea415ae7..e356d5bff7 100644
--- a/src/modules/tls/doc/tls.xml
+++ b/src/modules/tls/doc/tls.xml
@@ -64,6 +64,15 @@
that uses libssl (OpenSSL library). A safe option is to have the tls module
loaded first (be in the first "loadmodule" in &kamailio;.cfg).
</para>
+ <para>
+ IMPORTANT: using this module compiled with newer versions of libssl
+ (e.g., v1.1+) may require &kamailio; to be started with
+ <emphasis>--atexit=no</emphasis> command line parameters to avoid
+ calling C atexit callbacks inside the process ending during
+ daemonize procedure as well as during shut down, which can lead
+ to crashes because it destroys and then accesses shared memory. For
+ example, such case has been reported for Ubuntu 20.04 or RedHat 8.
+ </para>
</section>
<section id="tls.quick_start">
<title>Quick Start</title>