We have loaded the tls.so module in the kamailio.cfg file and the kamailio process is up and running, however we are not sure whether the TLS module is loaded properly or not.
Here are a few configuration details.
#!ifdef WITH_TLS
loadmodule "tls.so"
#!endif
#!ifdef WITH_TLS
enable_tls=yes
#!endif
#!ifdef WITH_TLS
## ----- tls params -----
modparam("tls", "config", "/etc/kamailio/tls.cfg")
#!endif
$kamailio -v
version: kamailio 5.5.3 (x86_64/linux) d31ff9-dirty
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: d31ff9 -dirty
compiled on 10:08:08 May 24 2022 with gcc 8.5.0
# openssl version
OpenSSL 1.1.1k FIPS 25 Mar 2021
# ldd /usr/lib64/kamailio/modules/tls.so
linux-vdso.so.1 (0x00007ffc0cbf2000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f2c3bcc1000)
libm.so.6 => /lib64/libm.so.6 (0x00007f2c3b93f000)
libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007f2c3b6ab000)
libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007f2c3b1c2000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2c3afa2000)
libc.so.6 => /lib64/libc.so.6 (0x00007f2c3abdd000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2c3c170000)
libz.so.1 => /lib64/libz.so.1 (0x00007f2c3a9c5000)
When we try to check tls rpc cli's it shows command not found
# kamcmd [tls.info](http://tls.info/)
error: 500 - command [tls.info](http://tls.info/) not found
# kamcmd tls.reload
error: 500 - command tls.reload not found
We have compiled the kamailio-5.5.3 version using the kamailio.spec file.
kamailio-tls-5.5.3-5.el8.x86_64 rpm installed to load the tls.so module.
Operating System : Red Hat Enterprise Linux release 8.6 (Ootpa)
Please suggest to me anything we have missed to configure or compilation wise.
Also suggest to me how to verify the tls module and configuration is fine or not.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3385
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3385(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)
- [ ] 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 -->
Commands for get/set described in documentation are not working giving 500 errors in a case if key value is integer value. If attach s: to key name it all work as expected (as was advised in [the mailing list](https://www.mail-archive.com/sr-users@lists.kamailio.org/msg16436.htm… by Fred Posner)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3383
-- Commit Summary --
* doc/htable: adding examples in a case of key value is an integer
-- File Changes --
M src/modules/htable/doc/htable_admin.xml (42)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3383.patchhttps://github.com/kamailio/kamailio/pull/3383.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3383
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3383(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
- [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 -->
Commands for get/set described in documentation are not working giving 500 errors. If attach `s:` to key name it all work as expected (as was advised in [the mailing list](https://www.mail-archive.com/sr-users@lists.kamailio.org/msg16436.htm… by Fred Posner)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3382
-- Commit Summary --
* doc/htable: fix documentation for rpc commands
-- File Changes --
M src/modules/htable/doc/htable_admin.xml (51)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3382.patchhttps://github.com/kamailio/kamailio/pull/3382.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3382
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3382(a)github.com>
Module: kamailio
Branch: master
Commit: e8c294f33f8b867b0f67d78c14b7327dc22dd726
URL: https://github.com/kamailio/kamailio/commit/e8c294f33f8b867b0f67d78c14b7327…
Author: Julien Chavanton <jchavanton(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-02-27T20:07:00+01:00
rtpengine: doc add codec-accept with an example
---
Modified: src/modules/rtpengine/doc/rtpengine_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e8c294f33f8b867b0f67d78c14b7327…
Patch: https://github.com/kamailio/kamailio/commit/e8c294f33f8b867b0f67d78c14b7327…
---
diff --git a/src/modules/rtpengine/doc/rtpengine_admin.xml b/src/modules/rtpengine/doc/rtpengine_admin.xml
index 85b1a0fbe8c..99f97305c2b 100644
--- a/src/modules/rtpengine/doc/rtpengine_admin.xml
+++ b/src/modules/rtpengine/doc/rtpengine_admin.xml
@@ -2630,6 +2630,15 @@ rtpengine_offer();
and used for transcoding on the offering side. Useful only in combination with codec-transcode. <emphasis>all</emphasis> keyword
can be used to mask all offered codecs
</para></listitem>
+
+ <listitem><para>
+ <emphasis>codec-accept=...</emphasis> - Similar to `mask` and `consume` but doesn't remove the codec from the list of
+ offered codecs. This means that a codec listed under `accept` will still be offered
+ to the remote peer, but if the remote peer rejects it, it will still be accepted
+ towards the original offerer and then used for transcoding. It is a more selective
+ version of what the `always transcode` flag does.
+ </para></listitem>
+
<listitem><para>
<emphasis>T.38=decode</emphasis> - If the offered &sdp; contains a media section
advertising T.38 over UDPTL, translate it to a regular audio media section
@@ -2696,6 +2705,30 @@ if (has_body("application/sdp")) {
t_on_reply("1");
}
+...
+</programlisting>
+ </example>
+ <example>
+ <title><function>rtpengine_offer</function> usage to force transcoding from opus to PCMU</title>
+ <programlisting format="linespecific">
+route {
+...
+ if (is_method("INVITE")) {
+ if (has_body("application/sdp")) {
+ if (rtpengine_offer("codec-mask=opus codec-accept-opus codec-strip=PCMU codec-transcode=PCMU"))
+ t_on_reply("1");
+ }
+ }
+...
+}
+
+onreply_route[1]
+{
+...
+ if (has_body("application/sdp"))
+ rtpengine_answer("codec-strip=PCMU codec-strip=PCMA");
+...
+}
...
</programlisting>
</example>
<!-- 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] Documentation.
#### Description
A) offers OPUS + PCMU
B) answers PCMU
I do not want PCMU to be selected, I would like to endup transcoding :
```
A <-opus-> rtpengine <-pcmu-> B
```
If I understand correctly, this is what I have to set on the rtpengine_offer
```
codec-mask=opus codec-strip=PCMU codec-transcode=PCMU
```
rtpengine is removing opus from the offer before sending it.
The answer sent by rtpengine is as follows:
```
m=audio 10884 UDP/TLS/RTP/SAVPF 0 126
a=maxptime:150
a=mid:0
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
```
for this to work, I would expect rtpengine to insert opus and remove pcmu ?
Answer :
```
That's what 'codec-accept` is for
Try with `codec-accept-opus` and/or `opus-accept-opus/48000` in the offer. That should be all that's needed (assuming reasonably recent version).
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3381
-- Commit Summary --
* rtpengine: doc add codec-accept with an example
-- File Changes --
M src/modules/rtpengine/doc/rtpengine_admin.xml (33)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3381.patchhttps://github.com/kamailio/kamailio/pull/3381.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3381
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3381(a)github.com>
Hello,
Kamailio SIP Server v5.6.4 stable release is out.
This is a maintenance release of the latest stable branch, 5.6, that
includes fixes since the release of v5.6.3. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.6.x. Deployments running previous v5.6.x
versions are strongly recommended to be upgraded to v5.6.4.
For more details about version 5.6.4 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2023/02/kamailio-v5-6-4-released/
RPM, Debian/Ubuntu packages will be available soon as well.
An additional note to say that call for speakers and registration for
Kamailio World Conference 2023 are now open, more details at:
* https://www.kamailioworld.com
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - June 5-7, 2023 - www.kamailioworld.com
Kamailio Advanced Training - Online - March 27-30, 2023 - www.asipto.com