<!-- 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
#### Description
<!-- Describe your changes in detail -->
release_urecord() needs to be called in order to clean ucontacts created on get_urecord() when mode is DB_ONLY
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1996
-- Commit Summary --
* usrloc: fix memory leak on DB_ONLY mode on RPC commands
-- File Changes --
M src/modules/usrloc/ul_rpc.c (8)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1996.patchhttps://github.com/kamailio/kamailio/pull/1996.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/1996
Hello Everyone,
In the middle of developing hiops module, another child module has
grown up. I've been developing another module for Kamailio, I called
this "lre". It means light-rtp-engine. The concept of this module is
using the capability of linux-Kernel packet forwarding to forward RTP
packets between both parties in a session call.
As far as we know, this new way has some advantage in large VoIP
networks that are using Kamailio as Proxy or SBC. Regardless of
transcoding, it could be done by other servers,
By using this module, Kamailio could handle a lot of concurrent calls
with RTP. For example in my test-bed scenario, with 2 core of CPU,
Kamailio could handle more than 1000 concurrent calls, with no issue
like one-way audio or etc. The consumption of resources was
incredible. Although I countn't finish the test-bed scenario, because
the resources of SIPP servers, that make the calls, were run out.
When kamailio starts, this module tries to connect to daemon project.
The daemon project could be running on the same server with kamailio
or on another server. The connection between two processes is TCP/IP
Socket. I have to use libnfnetlink library to control Linux-kernel
forwarding on the server. This library is the low-level library for
netfilter related kernel/userspace communication.
Some configuration in kamailio cfg is like below:
#!ifdef WITH_LRE
modparam("lre", "lre_sock", "tcp:192.168.122.108:8080")
modparam("lre", "start_port", 10000)
modparam("lre", "end_port", 30000)
#!endif
In some parts of my code, I need some guides to optimize performance of my code.
The module will be published soon on GitHub, but for some reason I
need to remove my old pull-request of hiops module.I will publish it
again.
--
--Mojtaba Esfandiari.S
Long time ago I have added in the configuration:
latency_limit_db=500
After the upgrade from version 5.1.7 to version 5.1.8, kamailio started printing a lot of log lines related to db slow query:
<core> [db_query.c:68]: db_do_submit_query(): alert - query execution too long [1136 us]
<core> [db_query.c:68]: db_do_submit_query(): alert - query execution too long [914 us]
<core> [db_query.c:68]: db_do_submit_query(): alert - query execution too long [741 us]
<core> [db_query.c:68]: db_do_submit_query(): alert - query execution too long [621 us]
It seems that after the upgrade the latency_limit_db parameter configuration changed from milliseconds to microseconds.
Here the commit that probably caused the issue:
https://github.com/kamailio/kamailio/commit/ce8d36f301d7688255597a67693e47d…
If a fix is released, please backport it till 5.1 branch.
Thank you.
Marco
--
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/1956
Many sr-users seems to have the same problem with the documentation
of uac module for requesting the actuall state of upstream sip-registrations.
### Description
kamcmd uac.reg_enable auth_username 12345678
Not working
kamcmd uac.reg_enable auth_username s:12345678
Working
### Expected behavior
Documentation should meantion the kamcmd s: prefix for converting - in the examples.
Meanfull if you are using a mysql-db. Dont testet all backends that are possible.
https://lists.kamailio.org/pipermail/sr-users/2019-June/105993.htmlhttps://lists.kamailio.org/pipermail/sr-users/2017-August/098168.html
#### Actual observed behavior
#### Debugging Data
```
(paste your debugging data here)
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your log messages here)
```
#### 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 improvement.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
kamailio -v
version: kamailio 5.2.3 (x86_64/linux) c36229
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, 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
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: c36229
compiled on 11:28:11 May 22 2019 with gcc 4.8.
```
* **Operating System**:
```
lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.6.1810 (Core)
Release: 7.6.1810
Codename: Core
```
--
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/1988
### Description
I am trying to extract a parameter with transformations from an URI in Kamailio 5.2.3, Centos 7
The problem occurs with uri.param and param.value transformation when the last character of the input string is the separator. I such case an error is thrown and no parameter value can be received. The code should be fixed so that empty parameters are simply skipped.
# Example
$var(someuri) = "sip:2660926042@23.26.41.95:65485;app-id=7537263245341023;";
# error with uri.param
$var(appid) = $(var(someuri){uri.param,app-id});
# another error with param.value
$var(appid) = $(var(someuri){param.value,app-id});
error:
"Param name missing after ;"
The problem is here where an error is thrown for zero length params:
https://github.com/kamailio/kamailio/blob/master/src/core/parser/parse_para…
if(_s->len == 0) {
LM_ERR("Param name missing after %c\n", separator);
goto error;
}
--
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/1991
Module: kamailio
Branch: 5.1
Commit: 97cd5d01bf07ef4bb4ede589ea453acfdc2806ff
URL: https://github.com/kamailio/kamailio/commit/97cd5d01bf07ef4bb4ede589ea453ac…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-06-30T11:54:31+02:00
call_control: add a note that the callcontrol application expect the MI interface
(cherry picked from commit 62d607f29593bcd645c7d068327e0bd4a0db0a8f)
---
Modified: src/modules/call_control/doc/call_control_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/97cd5d01bf07ef4bb4ede589ea453ac…
Patch: https://github.com/kamailio/kamailio/commit/97cd5d01bf07ef4bb4ede589ea453ac…
---
diff --git a/src/modules/call_control/doc/call_control_admin.xml b/src/modules/call_control/doc/call_control_admin.xml
index 57031801d0..23f5d5a6b7 100644
--- a/src/modules/call_control/doc/call_control_admin.xml
+++ b/src/modules/call_control/doc/call_control_admin.xml
@@ -43,6 +43,15 @@
is available from http://callcontrol.ag-projects.com/
</para>
</listitem>
+ <listitem>
+ <para>
+ At the moment the callcontrol application only supports the old
+ <quote>MI</quote> interface for communication with Kamailio. This
+ interface is unfortunately not available anymore in Kamailio. So
+ this application can't be used right now together with the
+ call_control module.
+ </para>
+ </listitem>
<listitem>
<para>
A rating engine that is used to calculate the time limit based on
Module: kamailio
Branch: 5.2
Commit: baf9e9fbfcf3be043085a649eec3f396213bcb5c
URL: https://github.com/kamailio/kamailio/commit/baf9e9fbfcf3be043085a649eec3f39…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-06-30T11:54:21+02:00
call_control: add a note that the callcontrol application expect the MI interface
(cherry picked from commit 62d607f29593bcd645c7d068327e0bd4a0db0a8f)
---
Modified: src/modules/call_control/doc/call_control_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/baf9e9fbfcf3be043085a649eec3f39…
Patch: https://github.com/kamailio/kamailio/commit/baf9e9fbfcf3be043085a649eec3f39…
---
diff --git a/src/modules/call_control/doc/call_control_admin.xml b/src/modules/call_control/doc/call_control_admin.xml
index 95f494a452..789f82d6b3 100644
--- a/src/modules/call_control/doc/call_control_admin.xml
+++ b/src/modules/call_control/doc/call_control_admin.xml
@@ -43,6 +43,15 @@
is available from http://callcontrol.ag-projects.com/
</para>
</listitem>
+ <listitem>
+ <para>
+ At the moment the callcontrol application only supports the old
+ <quote>MI</quote> interface for communication with Kamailio. This
+ interface is unfortunately not available anymore in Kamailio. So
+ this application can't be used right now together with the
+ call_control module.
+ </para>
+ </listitem>
<listitem>
<para>
A rating engine that is used to calculate the time limit based on
Module: kamailio
Branch: master
Commit: 62d607f29593bcd645c7d068327e0bd4a0db0a8f
URL: https://github.com/kamailio/kamailio/commit/62d607f29593bcd645c7d068327e0bd…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-06-30T11:51:57+02:00
call_control: add a note that the callcontrol application expect the MI interface
---
Modified: src/modules/call_control/doc/call_control_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/62d607f29593bcd645c7d068327e0bd…
Patch: https://github.com/kamailio/kamailio/commit/62d607f29593bcd645c7d068327e0bd…
---
diff --git a/src/modules/call_control/doc/call_control_admin.xml b/src/modules/call_control/doc/call_control_admin.xml
index 95f494a452..789f82d6b3 100644
--- a/src/modules/call_control/doc/call_control_admin.xml
+++ b/src/modules/call_control/doc/call_control_admin.xml
@@ -43,6 +43,15 @@
is available from http://callcontrol.ag-projects.com/
</para>
</listitem>
+ <listitem>
+ <para>
+ At the moment the callcontrol application only supports the old
+ <quote>MI</quote> interface for communication with Kamailio. This
+ interface is unfortunately not available anymore in Kamailio. So
+ this application can't be used right now together with the
+ call_control module.
+ </para>
+ </listitem>
<listitem>
<para>
A rating engine that is used to calculate the time limit based on