<!-- 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
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
- Received param was enclosed in quotes, making some UACs stumble
upon it. This fix removes the quotes, adding the received param
the same way as it is done for example in the path module.
- Reported by Arslan Aseed.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1203
-- Commit Summary --
* nathelper: correct Contact received param
-- File Changes --
M src/modules/nathelper/nathelper.c (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1203.patchhttps://github.com/kamailio/kamailio/pull/1203.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/1203
Module: kamailio
Branch: master
Commit: 57bd759e19b07647aac3bfce673131a142d9c07a
URL: https://github.com/kamailio/kamailio/commit/57bd759e19b07647aac3bfce673131a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-01-24T11:58:45+01:00
nathelper: documented the use of add_rcv_param() for Contact URI case
---
Modified: src/modules/nathelper/doc/nathelper_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/57bd759e19b07647aac3bfce673131a…
Patch: https://github.com/kamailio/kamailio/commit/57bd759e19b07647aac3bfce673131a…
---
diff --git a/src/modules/nathelper/doc/nathelper_admin.xml b/src/modules/nathelper/doc/nathelper_admin.xml
index 513c48400e..f6e061799c 100644
--- a/src/modules/nathelper/doc/nathelper_admin.xml
+++ b/src/modules/nathelper/doc/nathelper_admin.xml
@@ -554,11 +554,15 @@ if (search("User-Agent: Cisco ATA.*") {fix_nated_sdp("3");};
</title>
<para>
Add a received parameter to the <quote>Contact</quote> header fields
- or the Contact URI. The parameter will contain the URI created from the
- source IP, port, and protocol of the packet containing the SIP message.
- The parameter can be then processed by another registrar. This is useful,
- for example, when replicating register messages using <function>t_replicate</function>
- function to another registrar.
+ (available for all transports) or to the Contact URI (available only
+ for UDP traffic).
+ </para>
+ <para>
+ The parameter will contain the URI created from the
+ source IP, port, and protocol (if different than UDP) of the packet
+ containing the SIP message. The parameter can be then processed by
+ another registrar. This is useful, for example, when replicating register
+ messages using <function>t_replicate</function> function to another registrar.
</para>
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
@@ -566,7 +570,7 @@ if (search("User-Agent: Cisco ATA.*") {fix_nated_sdp("3");};
<emphasis>flag</emphasis> - flags to indicate if the parameter
should be added to Contact URI or Contact header. If the flag is
non-zero, the parameter will be added to the Contact URI. If not
- used or equal to zero, the parameter will go to the Contact
+ used or equal to zero, the parameter will go to the Contact
header.
</para></listitem>
</itemizedlist>
### Description
Try to fill carrierroute with routing data and test result with `kamcmd`, but the rpc command never gives a result.
### Troubleshooting
#### Reproduction
```
/* ----- ctl params -------------------------------------------------------- */
modparam("ctl", "binrpc", "unix:/var/run/kamailio/kamailio_ctl")
modparam("ctl", "mode", 0660)
/* ----- carrierroute params ----------------------------------------------- */
modparam("carrierroute", "config_source", "db")
modparam("carrierroute", "db_url", "EXTERN_READ_DBURL")
modparam("carrierroute", "fetch_rows", 2000)
modparam("carrierroute", "db_load_description", 1)
modparam("carrierroute", "match_mode", 10)
modparam("carrierroute", "avoid_failed_destinations", 1)
```
Kamailio is running with the following parameters:
```
/usr/local/sbin/kamailio -u kamailio -g kamailio -m 512 -M 20 -n 16
```
Fill carrierroute table with 110 Routes, do a routes reload and than try to get the routes dumped.
`kamcmd cr.reload_routes` and after that issue `kamcmd cr.dump_routes`, which hangs and don't return a result.
#### Log Messages
```
nothing regarding carrierroute in the log
```
### 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`
```
version: kamailio 5.1.0-dev8 (x86_64/freebsd)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, 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_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, select, kqueue.
id: unknown
compiled on 20:35:54 Nov 1 2017 with clang 4.0
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
FreeBSD 11.1-RELEASE
```
--
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/1304
### Description
Kamailio started to crash in 5.0.5 in http_async_client module. Works in 5.0.4
### Troubleshooting
#### Reproduction
Use http_async_client.
#### Debugging Data
Not yet extracted. Need to figure out how to access the core because it is a container.
#### Log Messages
```
4(30) : <core> [core/mem/q_malloc.c:483]: qm_free(): BUG: qm_free: freeing already freed pointer (0x7fccc205d368), called from http_async_client: async_http.c: set_query_params(599), first free http_async_client: async_http.c: set_query_params(599) - aborting
51(77) CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 35
0(1) ALERT: <core> [main.c:742]: handle_sigs(): child process 30 exited by a signal 6
0(1) ALERT: <core> [main.c:745]: handle_sigs(): core was generated
0(1) INFO: <core> [main.c:768]: handle_sigs(): terminating due to SIGCHLD
```
#### SIP Traffic
### Possible Solutions
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.0.5 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 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_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 5.3.1
```
* **Operating System**:
```
Ubuntu 16.04 (Xenial)
```
--
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/1400