- URL: https://github.com/kamailio/kamailio/commit/09ac3e47ef79dbd599b7dec5b84ae3b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T11:49:37+02:00
tm: set send socket flag when computing the destination and local socket is found
(cherry picked from commit 8d608d1c3ed0fe4c69cb02868b746cd0497dd1f5)
- URL: https://github.com/kamailio/kamailio/commit/ccf16cb7b8f84d2f9899d9922f5c940…
Author: Surendra Tiwari <surendratiwari3(a)gmail.com>
Date: 2019-09-24T11:50:18+02:00
Module:rtpengine: memory leak is fixed, if no rtpengine in list while reload
(cherry picked from commit 0e29879ee950d5a9e9a669c7d5c634416d52f5c9)
- URL: https://github.com/kamailio/kamailio/commit/c63d048c7ba2dc1e271fafbbd0e0a74…
Author: Juha Heinanen <jh(a)tutpro.com>
Date: 2019-09-24T11:52:05+02:00
modules/rtpengine: set_rtpengine_set fix
(cherry picked from commit fe6614feb5f9b062a556de82fd7df6fc12c96471)
- URL: https://github.com/kamailio/kamailio/commit/80bb3b96f60d3347460a202ec69e012…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T11:53:17+02:00
tls: proper dot position for matching subdomains
- reported by GH #2049
(cherry picked from commit 16beec2b7660d416a05f069695b4ce18e8b4e795)
- URL: https://github.com/kamailio/kamailio/commit/21ccb8f3e4f5496e5bb71c6cdfeec96…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T11:54:06+02:00
phonenum: new param resid to register result container ids
- allow use in KEMI scripting by pre-registering container result id via
modparam
(cherry picked from commit 67412b4b2b377cca179de2ebe109bd56fb8a63b9)
- URL: https://github.com/kamailio/kamailio/commit/e1197ad59685fa97868c5fffcbde841…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T11:54:17+02:00
phonenum: docs for resid parameter
(cherry picked from commit d2bac426192c074368bf78014e0d1d0ca97f3274)
- URL: https://github.com/kamailio/kamailio/commit/becc6bc3f90781f64b90879db1f7eea…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T11:54:44+02:00
phonenum: proper access to the str type param resid
(cherry picked from commit 56f86535e0ae3fcf8fa2d0b565c7ab61351678d0)
- URL: https://github.com/kamailio/kamailio/commit/dcdfc26fc260d36000c991eed89da25…
Author: A Alba <ascanio.alba7(a)gmail.com>
Date: 2019-09-24T11:55:23+02:00
module rr: KEMI expose record_route_preset
(cherry picked from commit e1ab977fd9a61864376782f2534cc0d932347d78)
- URL: https://github.com/kamailio/kamailio/commit/7c3cc32c98a66318fa355fd14c69772…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T11:59:20+02:00
core: main - set default send tcp sockets to tls if no tcp is available
(cherry picked from commit 8a678c244aa34cf352fb614693c6e6d505ce2dfe)
- URL: https://github.com/kamailio/kamailio/commit/28c4e65e7aef8e6ab1129a45fc01e2b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T11:59:33+02:00
core: tcp - set default local socket for tls when lookup fails
- GH #2028
(cherry picked from commit f40df55af2f50789ca4a8b89a213f7323b1932f2)
- URL: https://github.com/kamailio/kamailio/commit/827dccc75d560257ba4caef5187894d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T11:59:47+02:00
Makefile.defs: detect if libssl version is 1.1+
- link against pthread to be able to set PTHREAD_PROCESS_SHARED attribute
for mutex and rwlock initialization
(cherry picked from commit 79619717aa67c219fc36dfaac8d06919b8f2018e)
- URL: https://github.com/kamailio/kamailio/commit/cba7b6a19c9ac0d80e4bf8915379685…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T11:59:57+02:00
core: main - functions to set PTHREAD_PROCESS_SHARED for pthread mutex and rwlock
- code relocated from src/modules/tls/utils/openssl_mutex_shared/openssl_mutex_shared.c
- simpler option to initialize kamailio with the workaround for libssl
v1.1+ without using the preloaded library approach
(cherry picked from commit a8c811e69e964821b73d0861a9547a301253d172)
- URL: https://github.com/kamailio/kamailio/commit/3425fbad549c16aa79c001560e7ec9a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T12:00:59+02:00
log_systemd: return in case the xavp is not valid
(cherry picked from commit 9e703c1c1eb362bd68e53b38021aa42f8b173d0c)
- URL: https://github.com/kamailio/kamailio/commit/ffec32d01d440cb16dbaaac1b497f7c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T12:01:10+02:00
presence: reset freed list to avoid double free in case of error
(cherry picked from commit 28dc74fa8a30b17abd7f7b173b66b8538c5a4bb5)
- URL: https://github.com/kamailio/kamailio/commit/25585a67489cba4e55e888c68aacb1d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T12:02:13+02:00
kamctl: kamdbctl.base - replaced get_answer() with a portable version
- contributed by Sergey Safarov, GH #2019
(cherry picked from commit 88d06a08a8baf460188745f1d748dd83f275356f)
- URL: https://github.com/kamailio/kamailio/commit/40e1dba3b2089ee66fec6e431dbbd2b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T12:02:29+02:00
core: print a version flag when pthread shared mutex is enabled for tls
(cherry picked from commit 801a9e38bcd863950a53ed0ca63a2976376daddc)
- URL: https://github.com/kamailio/kamailio/commit/745475301cdacf9d391b39bb1701453…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T12:03:03+02:00
xmlrpc: reset fields in case of error for building fake via
(cherry picked from commit b54573ca9167c807a1de39634bed04cb7953dce0)
- URL: https://github.com/kamailio/kamailio/commit/991a12f98320af2066697cd74394b6f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-24T12:03:12+02:00
xcap_server: free xpath object before reusing the variable
- removed unnecessary resets of local variables at the end of function
(cherry picked from commit d0ed04ae7938ef09da1ca215043334190adb9c52)
Hello,
We have a weird bug in our Kamailio boxes.
We use the DNS cache (for dns failover to work properly), and on some servers, the cache becomes broken after some time.
The expire value is stuck and do not decrement over time,
on the entry and on the records :
`
kamcmd> dns.lookup A freeswitch
{
name: freeswitch
type: A
size_bytes: 200
reference_counter: 2
permanent: no
expires: 2
last_used: 0
negative_entry: no
records: {
{
rr_idx: 0
rr_ip: 10.0.0.1
rr_permanent: no
rr_expires: 2
}
{
rr_idx: 1
rr_ip: 10.0.0.2
rr_permanent: no
rr_expires: 2
}
{
rr_idx: 2
rr_ip: 10.0.0.3
rr_permanent: no
rr_expires: 2
}
}
}
`
Expires values are computed each time like this :
`
now=get_ticks_raw();
expires = (s_ticks_t)(e->expire-now)<0?-1: TICKS_TO_S(e->expire-now);
`
So it would means either :
- TICKS_TO_S(get_ticks_raw()) == 0 when the entry is created
- TICKS_TO_S(get_ticks_raw()) == 0 when the value is printed when we execute a dns.lookup through rpc.
Details :
- Kamailio : 5.2.4 (x86_64/linux)
- OS : Debian 9.9
- Running in Docker on Kubernetes cluster
I cannot say how to reproduce, it happens sometimes after running the binary :/
Do you have any idea ?
Kind regards,
Mathieu Bodjikian
--
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/2063
### Description
Kamailio 5.1 on Debian
- Enabled xavp_rcd in registrar
- Shared memory usage keeps growing over time
### Troubleshooting
- `mod.stats core all `show a large amount of allocated memory for xavp_new_value that keeps growing over time
` xavp_new_value(94): 48815768`
#### Reproduction
We have the same symptom on multiple servers
#### Log Messages
Nothing shown in the log yet.
### Possible Solutions
Using reg_fetch_contacts to grab expiry time is an alternative that works.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.1.4 (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 on 10:59:52 Jul 3 2018 with gcc 6.3.0
```
* **Operating System**:
```
Debian 9.7 x86_64
```
--
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/1834
Hello,
just to inform you that rate-limiting on kamailio.org web server has
been enabled. The motivation is to throttle robots and other automated
services to not overload the server.
If you notice any new errors in accessing the service (like page not
found, or a 429 Too Many Requests) let us know.
Cheers,
Henning
--
Kamailio Merchandising - https://skalatan.de/merchandising/
Kamailio services - https://skalatan.de/services
Henning Westerholt - https://skalatan.de/blog/
- URL: https://github.com/kamailio/kamailio/commit/4dbe7fa01d43931cbe1bfc041d4a16b…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-21T22:53:55+02:00
core: remove code for NO_REVERSE_INIT #define from 2002, which don't compile anymore
- URL: https://github.com/kamailio/kamailio/commit/0cd270bcb4b4402f94fa65224e8d69c…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-21T23:35:35+02:00
core: more secure PRNG initialization, use fastrand (its much safer) to init the other PRNGs
- URL: https://github.com/kamailio/kamailio/commit/3caeb310bda0a40f0dca3567308df9f…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-21T23:40:11+02:00
core: improve child_init debug logging
- URL: https://github.com/kamailio/kamailio/commit/9d9e6f0df91fdab423bc5740099a9db…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-21T23:44:33+02:00
drouting: use default DB URL as all the other modules
- URL: https://github.com/kamailio/kamailio/commit/e8aa74a0220d6776c417d0f83d438be…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-21T23:45:00+02:00
drouting: document default DB URL
- URL: https://github.com/kamailio/kamailio/commit/f07664492be76212aaa5c380d982860…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-21T23:53:13+02:00
core: more secure PRNG initialization, use fastrand (its much safer) to init the other PRNGs
- more secure PRNG initialization, use fastrand (its much safer) to init the other PRNGs
- related to commit 0cd270bcb4b for main process, this is for the forked children
- URL: https://github.com/kamailio/kamailio/commit/8dc02a6bd0adb068a07ec7b6b856e20…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:05:18+02:00
uac: don't initialize the PRNG again, especially with insecure low entropy input
- don't initialize the PRNG again, especially with insecure low entropy input
- this is done in the core for the main process and all children
- URL: https://github.com/kamailio/kamailio/commit/e85c9fc326d7d06a1078a529ed0a873…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:08:31+02:00
dispatcher: don't initialize the PRNG again, especially with insecure low entropy input
- don't initialize the PRNG again, especially with insecure low entropy input
- this is done in the core for the main process and all children
- URL: https://github.com/kamailio/kamailio/commit/e68bab8a107c19776f0d4abdc52ca8b…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:09:53+02:00
auth: remove commented out code block related to PRNG initialization
- URL: https://github.com/kamailio/kamailio/commit/df25b16635e88b493b07bb3c3e0eb6a…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:10:51+02:00
cdp: don't initialize the PRNG again, especially with insecure low entropy input
- don't initialize the PRNG again, especially with insecure low entropy input
- this is done in the core for the main process and all children
- URL: https://github.com/kamailio/kamailio/commit/930406ec25254859eef0fa1db194d19…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:11:14+02:00
lost: don't initialize the PRNG again, especially with insecure low entropy input
- don't initialize the PRNG again, especially with insecure low entropy input
- this is done in the core for the main process and all children
- URL: https://github.com/kamailio/kamailio/commit/c89746fd908788807fdae32577450de…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:11:41+02:00
drouting: don't initialize the PRNG again, especially with insecure low entropy input
- don't initialize the PRNG again, especially with insecure low entropy input
- this is done in the core for the main process and all children
- URL: https://github.com/kamailio/kamailio/commit/6e81ff04eff41666a7fa94a7ac090bd…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:12:14+02:00
mohqueue: don't initialize the PRNG again, especially with insecure low entropy input
- don't initialize the PRNG again, especially with insecure low entropy input
- this is done in the core for the main process and all children
- URL: https://github.com/kamailio/kamailio/commit/56c6f787a0e968d3ed05c21cffe8bde…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:31:08+02:00
cdp: several own processes are forked, we need to properly initialize the PRNG for them
- cdp: several own processes are forked, properly initialize the PRNG for them
- related to commit df25b16635e
- URL: https://github.com/kamailio/kamailio/commit/53ea0794c9ffeb017e0e5500b0ac248…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:34:49+02:00
sipcapture: don't initialize the PRNG again, especially with insecure low entropy input
- don't initialize the PRNG again, especially with insecure low entropy input
- this is done in the core for the main process and all children
- URL: https://github.com/kamailio/kamailio/commit/e2c3ed2de42eaa85c52d9d78c6e2076…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-22T00:36:18+02:00
lib: don't initialize the PRNG again, especially with insecure low entropy input
- don't initialize the PRNG again, especially with insecure low entropy input
- this is done in the core for the main process and all children