kamailio
9 months agoChangeLog: content updated for v5.4.4 5.4.4
Daniel-Constantin Mierla [Mon, 15 Feb 2021 10:58:01 +0000 (11:58 +0100)]
ChangeLog: content updated for v5.4.4

9 months agoMakefile.defs: version set to 5.4.4
Daniel-Constantin Mierla [Mon, 15 Feb 2021 10:28:16 +0000 (11:28 +0100)]
Makefile.defs: version set to 5.4.4

9 months agopkg/kamailio/obs: added --atexit=no into systemd unit file [skip ci]
Sergey Safarov [Mon, 15 Feb 2021 07:11:25 +0000 (10:11 +0300)]
pkg/kamailio/obs: added --atexit=no into systemd unit file [skip ci]

(cherry picked from commit 9a35a5b95e8144dbdb18003f40e49e5b497274f3)

9 months agopkg/kamailio/deb: version set 5.4.4
Victor Seva [Mon, 15 Feb 2021 08:32:05 +0000 (09:32 +0100)]
pkg/kamailio/deb: version set 5.4.4

9 months agopkg/kamailio/deb: restore python3 dependency of kamailio package
Victor Seva [Thu, 11 Feb 2021 12:26:49 +0000 (13:26 +0100)]
pkg/kamailio/deb: restore python3 dependency of kamailio package

(cherry picked from commit ab8e680e0dd3a8078d40b72c50d41db55d442240)

9 months agopkg/kamailio: version set to 5.4.4 for rpm specs and alpine
Daniel-Constantin Mierla [Mon, 15 Feb 2021 08:24:57 +0000 (09:24 +0100)]
pkg/kamailio: version set to 5.4.4 for rpm specs and alpine

9 months agopv: proper transfomation name in the log message
Daniel-Constantin Mierla [Sat, 13 Feb 2021 19:59:30 +0000 (20:59 +0100)]
pv: proper transfomation name in the log message

(cherry picked from commit b4d1def5d8a5ffaddbd87708d8dc99f0f5f8853c)

9 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 12 Feb 2021 15:16:30 +0000 (16:16 +0100)]
modules: readme files regenerated - modules ... [skip ci]

9 months agorr: docs - more details for sockname_mode param
Daniel-Constantin Mierla [Fri, 12 Feb 2021 15:14:18 +0000 (16:14 +0100)]
rr: docs - more details for sockname_mode param

(cherry picked from commit 86a5f81b776eab3e2b9a3a5470094546b94253f7)

9 months agocore: define sockname attribute name
Daniel-Constantin Mierla [Fri, 12 Feb 2021 14:26:56 +0000 (15:26 +0100)]
core: define sockname attribute name

- used in the sockname r-r parameter

(cherry picked from commit 274d32651d7886b7f424239565a2714e2dd0991d)

9 months agorr: compare sockname parameter name with the attribute name
Daniel-Constantin Mierla [Fri, 12 Feb 2021 14:27:35 +0000 (15:27 +0100)]
rr: compare sockname parameter name with the attribute name

(cherry picked from commit 86e8bfdee87558fcee3e5b821b506b934c6b6790)

9 months agohtable: docs - not about use of event_route[htable:mod-init]
Daniel-Constantin Mierla [Thu, 11 Feb 2021 16:32:45 +0000 (17:32 +0100)]
htable: docs - not about use of event_route[htable:mod-init]

(cherry picked from commit e0dcb1617bedf13cc3fc76cf7f3b5cd516806bc8)

9 months agoImproved README.
Juha Heinanen [Thu, 11 Feb 2021 15:44:19 +0000 (17:44 +0200)]
Improved README.

(cherry picked from commit 857e9deb4c2455ee2ea0c05446da54f97e1f0a63)

9 months agoFixed typo.
Juha Heinanen [Thu, 11 Feb 2021 15:27:44 +0000 (17:27 +0200)]
Fixed typo.

(cherry picked from commit 2664a51c35a1e8b5adc4c7e6cedde60bc01f0b28)

9 months agorr: docs - added missing end tag for para introduced in previous commit
Daniel-Constantin Mierla [Thu, 11 Feb 2021 15:22:06 +0000 (16:22 +0100)]
rr: docs - added missing end tag for para introduced in previous commit

(cherry picked from commit f8e60bcba548b25657cc295f8a593adf371f9fda)

9 months agorr: docs - note about format of record_route_preset() parameters
Daniel-Constantin Mierla [Thu, 11 Feb 2021 15:06:12 +0000 (16:06 +0100)]
rr: docs - note about format of record_route_preset() parameters

(cherry picked from commit f318fab629c308250531046d453a8ac76f80ca42)

9 months agorr: use rr params with record_route_preset()
Daniel-Constantin Mierla [Thu, 11 Feb 2021 14:59:31 +0000 (15:59 +0100)]
rr: use rr params with record_route_preset()

- param buffer was checked, but not used

(cherry picked from commit 76b886da8ddf11a94a62850c19bad8c83bd113fc)

9 months agocore: cfg.lex - do not destroy action if pre-fixup fails
Daniel-Constantin Mierla [Thu, 11 Feb 2021 09:27:20 +0000 (10:27 +0100)]
core: cfg.lex - do not destroy action if pre-fixup fails

- params might be in inconsistent state, shutdown is triggered which
cleans the pkg anyhow
- GH #2630

(cherry picked from commit dddd530ed9fa7b6ca8b31ff299105a53c39c1a5e)

9 months agocore: initialize allocated _ksr_shutdown_phase pointer
Daniel-Constantin Mierla [Wed, 10 Feb 2021 16:01:36 +0000 (17:01 +0100)]
core: initialize allocated _ksr_shutdown_phase pointer

(cherry picked from commit f27c2e06d7467c4c33ff289175862ae7614a3018)

9 months agoctl: fail when requested to process rpc commands in shutdown phase
Daniel-Constantin Mierla [Wed, 10 Feb 2021 16:10:25 +0000 (17:10 +0100)]
ctl: fail when requested to process rpc commands in shutdown phase

(cherry picked from commit 2015cfdfd777085dad98a606fc41946af186db1b)

9 months agoctl: skip handling rpc commands if kamilio is in shutdown phase
Daniel-Constantin Mierla [Mon, 10 Aug 2020 14:23:11 +0000 (16:23 +0200)]
ctl: skip handling rpc commands if kamilio is in shutdown phase

- related to #2433

(cherry picked from commit 6d928b59a3dbd6eb291da3d3936be6e8f18588af)

9 months agocore: test if shm is initialized on early shutdown
Daniel-Constantin Mierla [Fri, 27 Nov 2020 06:49:27 +0000 (07:49 +0100)]
core: test if shm is initialized on early shutdown

(cherry picked from commit b7d42f248bef70a06d8ae23f4a7652fd3f0e4e61)

9 months agocore: proper test when initializing _ksr_shutdown_phase shm pointer
Daniel-Constantin Mierla [Tue, 11 Aug 2020 14:33:02 +0000 (16:33 +0200)]
core: proper test when initializing _ksr_shutdown_phase shm pointer

(cherry picked from commit 27b2ddf926240b1dd269eb1d96767d73edf9c6e6)

9 months agocore: keep a global flag in shm for shut down phase
Daniel-Constantin Mierla [Mon, 10 Aug 2020 14:15:04 +0000 (16:15 +0200)]
core: keep a global flag in shm for shut down phase

- set when destroy modules is starting
- useful to check from other processes if shut down started

(cherry picked from commit 6da946e4a3d6d6949dd6babe9cf3919edc0b4519)

9 months agotls: fixed small typo in log message
Daniel-Constantin Mierla [Wed, 10 Feb 2021 15:35:09 +0000 (16:35 +0100)]
tls: fixed small typo in log message

(cherry picked from commit 3c1a454a1ac4fe8e668f709d3e278bbce59c51d3)

9 months agocfg.lex: removed yynoreturn attribute for ksr_yy_fatal_error()
Daniel-Constantin Mierla [Wed, 10 Feb 2021 07:27:58 +0000 (08:27 +0100)]
cfg.lex: removed yynoreturn attribute for ksr_yy_fatal_error()

- it is defined only by newer flex version, resulting in compile
failure on older versions (e.g., centos 7)

(cherry picked from commit f230035d8275cbad8d7515f73ba242f77a7a16db)

9 months agocore: cfg.lex - removed __attribute__((unused))
Daniel-Constantin Mierla [Tue, 9 Feb 2021 20:16:52 +0000 (21:16 +0100)]
core: cfg.lex - removed __attribute__((unused))

- not supported on some distros
- workaround to avoid unused warning

(cherry picked from commit 20fdab545a5f5c3ef1b8d8c4c392acaf4f9e8aae)

9 months agocore: main - terminate using ksr_exit() instead of return
Daniel-Constantin Mierla [Tue, 9 Feb 2021 13:00:23 +0000 (14:00 +0100)]
core: main - terminate using ksr_exit() instead of return

(cherry picked from commit d8643cd2caf38aa1efaeff73783920fab1d9bf0d)

9 months agocore: cfg.lex - declare auto-generated yy_fatal_error() with unused attribute
Daniel-Constantin Mierla [Tue, 9 Feb 2021 12:27:34 +0000 (13:27 +0100)]
core: cfg.lex - declare auto-generated yy_fatal_error() with unused attribute

(cherry picked from commit 346d99d1f98178a71d482e5724135f65257427dd)

9 months agocore: cfg.lex - overwrite yy_fatal_error() to use ksr_exit() macro
Daniel-Constantin Mierla [Tue, 9 Feb 2021 11:57:57 +0000 (12:57 +0100)]
core: cfg.lex - overwrite yy_fatal_error() to use ksr_exit() macro

(cherry picked from commit 9f326234f40f2c02f4833647112c3a4f4912aa17)

9 months agocore: more use of ksr_exit() macro to follow --atexit param
Daniel-Constantin Mierla [Tue, 9 Feb 2021 09:50:03 +0000 (10:50 +0100)]
core: more use of ksr_exit() macro to follow --atexit param

(cherry picked from commit 4f6243e8e6e2012af35aae67da7b93af2127f02c)

9 months agokeepalive: check if the destinations list is initialized at runtime use
Daniel-Constantin Mierla [Fri, 5 Feb 2021 08:55:58 +0000 (09:55 +0100)]
keepalive: check if the destinations list is initialized at runtime use

- do not initialize, because is no longer seen in all processes,
initialization must be done in mod init

(cherry picked from commit b2b7ec826055fd67ecf5ffb052afa609e0aa9e5b)

9 months agodoc: update manpage for atexit option
Victor Seva [Wed, 3 Feb 2021 12:33:32 +0000 (13:33 +0100)]
doc: update manpage for atexit option

(cherry picked from commit 351efd29d332703e79104a106ade08c9d1df6e20)

9 months agocore: replaced --no-atexit with --atexit=val
Daniel-Constantin Mierla [Wed, 3 Feb 2021 11:49:29 +0000 (12:49 +0100)]
core: replaced --no-atexit with --atexit=val

- val can be y[es] or 1 to enable execution of atexit callbacks; n[o] or
0 to disable the execution of atexit callbacks
- default yes
- simplified ksr_exit() macro

(cherry picked from commit 9b1472275530ed4cc32a65cd247dc9997e8b964b)

9 months agodoc: update options at manpage
Victor Seva [Wed, 3 Feb 2021 08:41:12 +0000 (09:41 +0100)]
doc: update options at manpage

* put them in order too

(cherry picked from commit 377bb3bdfd20bedabbe0f92e53bdded44be267e9)

9 months agocore: use macro for exit variants based on --no-atexit
Daniel-Constantin Mierla [Wed, 3 Feb 2021 07:29:32 +0000 (08:29 +0100)]
core: use macro for exit variants based on --no-atexit

(cherry picked from commit 06aec5a81cb22d06ad3bf613a05951f91e7e21bc)

9 months agocore: take in consideration --no-atexit for daemonize()
Daniel-Constantin Mierla [Tue, 2 Feb 2021 20:36:57 +0000 (21:36 +0100)]
core: take in consideration --no-atexit for daemonize()

(cherry picked from commit 7ab2e85437482b4dba86937a29da025503450014)

9 months agocore: added --no-atexit cli parameter
Daniel-Constantin Mierla [Mon, 1 Feb 2021 22:39:40 +0000 (23:39 +0100)]
core: added --no-atexit cli parameter

- skip atexit callbacks execution from external libraries which may access
destroyed shm memory causing crash on shutdown

(cherry picked from commit 9f12d314268d1d2cd990cb3c5556f79343869e47)

9 months agomodules/siptrace: fix regression preventing variables to be used (#2588)
tsearle [Wed, 16 Dec 2020 20:47:11 +0000 (21:47 +0100)]
modules/siptrace: fix regression preventing variables to be used (#2588)

* modules/siptrace: fix regression preventing variables to be used

Commit fa7eb2a switched the 2 parameter version of sip_trace from
using the builtin fixup_spve_spve to the custom fixup method to
using the custom fixup_siptrace. As it is a custom fixup method,
the corresponding free method can not be auto-detected causing the
config parser to require the parameters to be a constant.  This
patch adds a free method, allowing variables to be once again passed
as the 2nd parameter of this method (as well as fixing a memory leak
for the 3rd parameter).

* change free for parameter 3

Co-authored-by: Torrey Searle <tsearle@voxbone.com>
(cherry picked from commit 7c98d547996637a7bf1c7025c93142f574fe3ac9)

9 months agoapp_python3: handle deprecated PyEval_InitThreads()
Daniel-Constantin Mierla [Thu, 11 Feb 2021 08:14:06 +0000 (09:14 +0100)]
app_python3: handle deprecated PyEval_InitThreads()

- https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads
- GH #2626

(cherry picked from commit ca37f9247ecb6754fbdbd210fc59158bf0f32def)

9 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Tue, 9 Feb 2021 09:16:59 +0000 (10:16 +0100)]
modules: readme files regenerated - modules ... [skip ci]

9 months agohttp_client: http_client_request to include default clientcert, clientkey,...
Wolfgang Kampichler [Wed, 27 Jan 2021 18:53:24 +0000 (19:53 +0100)]
http_client: http_client_request to include default clientcert, clientkey,...

- the lost module uses http_client API functions and in the course of NG112
  client certificates are used for authentication when querying LIS or ECRF,
  the fix allows these to be read out via http_client module parameters.

(cherry picked from commit 7d5868ab1242eb8166e6af1bb8a21b39001df663)

9 months agosiptrace: docs - fixed small typo
Daniel-Constantin Mierla [Sat, 6 Feb 2021 15:06:47 +0000 (16:06 +0100)]
siptrace: docs - fixed small typo

(cherry picked from commit 7d846f928b75a3bc1b8e8c1a70e39bfede939c15)

9 months agortpengine : add node fallback if node out of port
dvillaume [Wed, 3 Feb 2021 09:19:46 +0000 (10:19 +0100)]
rtpengine : add node fallback if node out of port

When rtpengine answers with error-reason 'Ran out of ports' adopt the same behavor that when node answers 'Parallel session limit reached'

(cherry picked from commit 853068a26c34deff86e17b63f49abea2c8f4403c)

9 months agokamctl: added srv debug subcommand
Daniel-Constantin Mierla [Thu, 4 Feb 2021 13:01:52 +0000 (14:01 +0100)]
kamctl: added srv debug subcommand

- control server debug level via rpc

(cherry picked from commit 6b5aa70f09e294338a65a0bf2fcae8b92fdc6fae)

9 months agoxhttp: do not call memset on a null-pointer, related to GH #2619
Henning Westerholt [Tue, 2 Feb 2021 18:42:35 +0000 (18:42 +0000)]
xhttp: do not call memset on a null-pointer, related to GH #2619

(cherry picked from commit 2db8884945844e5040dfed2b24fe84de097c0b2b)

9 months agotm: prper timer cleanup of responses for rpc tm.t_uac_wait_block
Daniel-Constantin Mierla [Wed, 27 Jan 2021 13:10:34 +0000 (14:10 +0100)]
tm: prper timer cleanup of responses for rpc tm.t_uac_wait_block

(cherry picked from commit 5a6a679985fecfc168b9b26f0be3c0e64e641e64)

9 months agocore: ut.h - add inline to static function to avoid warning from including files
Daniel-Constantin Mierla [Tue, 26 Jan 2021 10:52:36 +0000 (11:52 +0100)]
core: ut.h - add inline to static function to avoid warning from including files

- for shm_str_dup_block()

(cherry picked from commit 34301ea16812eccbb914ea14cafb0140ac9bba61)

9 months agodispatcher: Log dest sets after variable update
Marat Gareev [Mon, 25 Jan 2021 15:40:47 +0000 (18:40 +0300)]
dispatcher: Log dest sets after variable update

(cherry picked from commit f4b8bede6a247415eda84a7db9569747905f9fa0)

9 months agotm: docs for reply_relay_mode parameter
Daniel-Constantin Mierla [Mon, 25 Jan 2021 11:42:36 +0000 (12:42 +0100)]
tm: docs for reply_relay_mode parameter

(cherry picked from commit 00b1aba770c26f75c31cf2a28e7ca425f18788dc)

9 months agotm: new parameter reply_relay_mode
Daniel-Constantin Mierla [Mon, 25 Jan 2021 11:34:33 +0000 (12:34 +0100)]
tm: new parameter reply_relay_mode

- control the behaviour introduced by 18410da0
- if set to 0, the behaviour is like before the commit referenced above,
tm is attemptime to send suspended 200ok after another final response
that was forwarded while 200ok was suspended
- default is 1 (behave as the patch changed the forwarding policy, not
to overwrite the response buffer)

(cherry picked from commit 90dfc421dab438a8ef62cc8f68b2c1f7fb50b0dc)

9 months agotm: 200 OK not processed correctly by Proxy after final non-2xx
Theo [Fri, 17 Apr 2020 08:53:00 +0000 (08:53 +0000)]
tm: 200 OK not processed correctly by Proxy after final non-2xx

Description:
   Problem:
      Forwarding of 200 OK while sent 488 waits for ACK, destroys the UAS send buffer
   Scenario:
      During suspension of 200 OK by ims_qos module function Rx_AAR() at terminating PCSCF,
      The PCRF sends an AA Answer with result code DIAMETER_TOO_BUSY (3004), which triggers
      the PCSCF to send a 488 ‘Sorry no QoS available’ to the originating side (ims_dialog
      module function dlg_terminate()).
      Afterwards neither the 200 OK nor the ACK(488) is processed correctly by the PCSCF.
   Solution:
      The UAS send buffer should not be overwritten during processing of 200 OK,
      because non-2xx is needed to associate the ACK message in a correct way.
      200 OK must be forwarded statelessly.
   Side-Effect (potentially breaks existing function):
      Some callbacks cannot be called for the 200 OK, to avoid messing the stored 488.
(cherry picked from commit 18410da04c7f7bbc9628820427fedb92cf893526)

9 months agocore: fix to xavp_rm_internal (#2604)
Nicolas C [Fri, 22 Jan 2021 14:16:56 +0000 (15:16 +0100)]
core: fix to xavp_rm_internal (#2604)

This fixes the following issue:
https://github.com/kamailio/kamailio/issues/2604

Description of the issue:

When called to remove a specific index from a given xavp, function xavp_rm_by_index removes the index (as expected) but also all others before it.

E.g :
If called with idx = 1, it removes indexes 0 and 1.
Likewise if invoked with idx = 2 => the first 3 elements are removed.

This bug is located in function xavp_rm_internal. An assignment was missing when looping over the xavp list.
Same for xavi_rm_internal.

(cherry picked from commit 12414972ad0c28ac50ece3c14f98134c3f06c522)

9 months agokamctl: removed condition on CTLENGINETYPE
Daniel-Constantin Mierla [Thu, 21 Jan 2021 13:05:50 +0000 (14:05 +0100)]
kamctl: removed condition on CTLENGINETYPE

- done again inside ctl_cmd_run

(cherry picked from commit 4a4f0475716cbf824b2ab9684457e21f6732aa74)

9 months agokamctl: use param evaluation mode for cisco restart command
Daniel-Constantin Mierla [Thu, 21 Jan 2021 09:00:46 +0000 (10:00 +0100)]
kamctl: use param evaluation mode for cisco restart command

(cherry picked from commit 359050f9be40002aec1d3894dc43a2a8762ce8cc)

9 months agokamctl: use tm.t_uac_wait_block rpc for ping command
Daniel-Constantin Mierla [Wed, 20 Jan 2021 07:54:49 +0000 (08:54 +0100)]
kamctl: use tm.t_uac_wait_block rpc for ping command

(cherry picked from commit 47a98532af5512a4597bbf9ad3834c62dd633256)

9 months agotm: docs for rpc t_uac_wait_block
Daniel-Constantin Mierla [Wed, 20 Jan 2021 07:54:21 +0000 (08:54 +0100)]
tm: docs for rpc t_uac_wait_block

(cherry picked from commit 89eea7edb8832124dc325d8303b23ea5f36c88f4)

9 months agotm: implemented t_uac_wait_block rpc command
Daniel-Constantin Mierla [Wed, 20 Jan 2021 07:11:45 +0000 (08:11 +0100)]
tm: implemented t_uac_wait_block rpc command

- it blocks while waiting for the reply to return the code and reason
text

(cherry picked from commit dc5a548a9e6327674615aa7ddc8708e0ba5252aa)

9 months agocore: utils - functions to shm-duplicate str in a block
Daniel-Constantin Mierla [Tue, 19 Jan 2021 20:00:54 +0000 (21:00 +0100)]
core: utils - functions to shm-duplicate str in a block

(cherry picked from commit 6684b57641396ba494716e7f63a0f15afc1d8637)

9 months agokamctl: use tm.t_uac_wait for ping command
Daniel-Constantin Mierla [Tue, 19 Jan 2021 06:49:24 +0000 (07:49 +0100)]
kamctl: use tm.t_uac_wait for ping command

(cherry picked from commit 20d075a17189961baf63ac000e4417d7f04d8a08)

9 months agokamctl: option for rpc command to replace tokens in parameters
Daniel-Constantin Mierla [Mon, 18 Jan 2021 09:19:05 +0000 (10:19 +0100)]
kamctl: option for rpc command to replace tokens in parameters

- supported now: replace '=CRLF=' with '\r\n'
- fix 'kamctl ping' command by replacing '=CRLF=' with '\r\n'
in multi-headers parameter

(cherry picked from commit 1c66f6a1a5d04c33f1912609a36729b06b6eebd7)

9 months agomisc/examples/kemi: use local variable instead of many function calls for js
Daniel-Constantin Mierla [Tue, 12 Jan 2021 09:05:32 +0000 (10:05 +0100)]
misc/examples/kemi: use local variable instead of many function calls for js

(cherry picked from commit b4f439301c2dffbfc6a389354e840142fc3b965b)

9 months agomisc/examples/kemi: use kx functions instead of pv
Daniel-Constantin Mierla [Tue, 12 Jan 2021 08:52:31 +0000 (09:52 +0100)]
misc/examples/kemi: use kx functions instead of pv

(cherry picked from commit 6e541feb9184e193f9c486c8f97d73360c69250d)

9 months agoapp_jsdt: duktape interpreter upgraded to v2.6.0
Daniel-Constantin Mierla [Tue, 12 Jan 2021 07:52:00 +0000 (08:52 +0100)]
app_jsdt: duktape interpreter upgraded to v2.6.0

(cherry picked from commit 2590165e278efb947edb9cb5a75104f2f760c4c2)

9 months agocore: fix unused argument in socket_info.c:get_flags
Paul Komkoff [Mon, 4 Jan 2021 14:18:01 +0000 (18:18 +0400)]
core: fix unused argument in socket_info.c:get_flags

get_flags has an argument - family - which is supposed to be used
in netlink message, otherwise why would we need it?

(cherry picked from commit 42f7702430c312b2c9caea8f617af4e3719ef12f)

9 months agocore: work around interface enum buffer overrun
Paul Komkoff [Mon, 4 Jan 2021 14:13:28 +0000 (18:13 +0400)]
core: work around interface enum buffer overrun

When a system has too many interfaces and too many addresses,
8 kilobytes isn't enough to fit all of the netlink responses.
As the result, kamailio gets stuck in a loop where it tries
to do a 0-length recv.

Increase the buffer to 32K. It's a miniscule amount for modern
times anyway. Also, add diagnostics to make further troubleshooting
easier.

Proper fix would be to switch to libnl here, which would make a
good weekend project.

(cherry picked from commit d2fd204b0ae35512a04702e480bb0d16878e98be)

9 months agortpengine: fixing wrong parsing the pair of IPv6 addr:port (#2592)
Dennis [Mon, 4 Jan 2021 15:35:44 +0000 (18:35 +0300)]
rtpengine: fixing wrong parsing the pair of IPv6 addr:port (#2592)

- fixing wrong parsing the pair of IPv6 addr:port in rtpengine module, when loading node information from database.

(cherry picked from commit 13d786e33d6f04a718af40ba345cf0827f752c2f)

9 months agosecsipid: docs - details of the acronyms
Daniel-Constantin Mierla [Thu, 24 Dec 2020 09:09:02 +0000 (10:09 +0100)]
secsipid: docs - details of the acronyms

(cherry picked from commit c1e06e029b192a4db45841fa78e9bcfee91f125d)

9 months agocore: info message made dbg when adding a subst expression
Daniel-Constantin Mierla [Tue, 22 Dec 2020 19:33:27 +0000 (20:33 +0100)]
core: info message made dbg when adding a subst expression

(cherry picked from commit 80b3d5d036da493316a93594c770df1ef8218e5e)

9 months agocore: kemi - KSR.is_method_in() uses E/e to match PRACK
Daniel-Constantin Mierla [Sat, 19 Dec 2020 14:34:05 +0000 (15:34 +0100)]
core: kemi - KSR.is_method_in() uses E/e to match PRACK

(cherry picked from commit b04111b583b454b12ea0c6a265a14858c195b213)

9 months agohttp_client: docs - section title to get proper entry in toc
Daniel-Constantin Mierla [Fri, 18 Dec 2020 07:18:51 +0000 (08:18 +0100)]
http_client: docs - section title to get proper entry in toc

- bits of whitespacing fixing

(cherry picked from commit fadc0fc499fb57a763aa71a76b24cff152bbd927)

9 months agoevapi: export async_multicast() to kemi
balajeesv [Fri, 11 Dec 2020 16:01:27 +0000 (21:31 +0530)]
evapi: export async_multicast() to kemi

(cherry picked from commit ccaba976cd1c599ba64067df0896fdd4888af00f)

9 months agoxhttp: clang format code
Daniel-Constantin Mierla [Wed, 16 Dec 2020 07:29:41 +0000 (08:29 +0100)]
xhttp: clang format code

(cherry picked from commit d620aab9d2bc16e7785d5be0ddecd016329055de)

9 months agosiputils: free params for contact param decode and remove
Daniel-Constantin Mierla [Mon, 8 Feb 2021 10:54:32 +0000 (11:54 +0100)]
siputils: free params for contact param decode and remove

(cherry picked from commit d6504e28f7fef8d48480861ea12e9bd457288661)

10 months agopkg/docker: updated submodule [skip ci]
Sergey Safarov [Mon, 1 Feb 2021 08:55:24 +0000 (11:55 +0300)]
pkg/docker: updated submodule [skip ci]

10 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Mon, 25 Jan 2021 13:46:38 +0000 (14:46 +0100)]
modules: readme files regenerated - modules ... [skip ci]

10 months agotmrec: fix typos in docs
Richard Fuchs [Mon, 25 Jan 2021 13:37:26 +0000 (08:37 -0500)]
tmrec: fix typos in docs

(cherry picked from commit 8be74b2fe0f59a9cef472b781feeae4cf3357bea)

10 months agosecsipid: include secsipid.h from standard path
Daniel-Constantin Mierla [Fri, 8 Jan 2021 07:21:55 +0000 (08:21 +0100)]
secsipid: include secsipid.h from standard path

(cherry picked from commit c1a3443b09cee8a923f8801f8f3034f078034bf5)

10 months agosecsipid: Makefile - detect of pkg-config knows about libsecsipid
Daniel-Constantin Mierla [Thu, 7 Jan 2021 16:34:36 +0000 (17:34 +0100)]
secsipid: Makefile - detect of pkg-config knows about libsecsipid

(cherry picked from commit 664542adf42a4d829ddf9b9e482aba81f30883d8)

10 months agosecsipid: use pkg-config when available
Victor Seva [Thu, 7 Jan 2021 10:14:53 +0000 (11:14 +0100)]
secsipid: use pkg-config when available

(cherry picked from commit 231a6eceeb67318cf4708a765b47df6c336350da)

11 months agotls: log version, gh #2561
Henning Westerholt [Wed, 25 Nov 2020 15:28:40 +0000 (15:28 +0000)]
tls: log version, gh #2561

(cherry picked from commit c9f0adddde8321bfaf368691fea74079e40bd789)

11 months agodialog: handle CANCEL requests for CSeq updates
Daniel-Constantin Mierla [Thu, 17 Dec 2020 13:54:04 +0000 (14:54 +0100)]
dialog: handle CANCEL requests for CSeq updates

(cherry picked from commit fd35a1a4eee2c50a3b7bf4ee6b1f6f20f4fa7d62)

11 months agohttp_client: do not set empty headers and body
Daniel-Constantin Mierla [Wed, 16 Dec 2020 19:54:57 +0000 (20:54 +0100)]
http_client: do not set empty headers and body

(cherry picked from commit ce58411c462231d6ea1fc3b4acbf50520c2962ce)

11 months agoChangeLog: content updated for v5.4.3 5.4.3
Daniel-Constantin Mierla [Mon, 14 Dec 2020 10:39:47 +0000 (11:39 +0100)]
ChangeLog: content updated for v5.4.3

11 months agopkg/kamailio/deb: version set 5.4.3
Victor Seva [Mon, 14 Dec 2020 08:44:34 +0000 (09:44 +0100)]
pkg/kamailio/deb: version set 5.4.3

11 months agoMakefile.defs: version set to 5.4.3
Daniel-Constantin Mierla [Mon, 14 Dec 2020 08:25:07 +0000 (09:25 +0100)]
Makefile.defs: version set to 5.4.3

11 months agopkg: version set to 5.4.3 for rpms and apline
Daniel-Constantin Mierla [Mon, 14 Dec 2020 07:56:22 +0000 (08:56 +0100)]
pkg: version set to 5.4.3 for rpms and apline

11 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 11 Dec 2020 20:01:26 +0000 (21:01 +0100)]
modules: readme files regenerated - modules ... [skip ci]

11 months agodispacher: docs - more details about weight and rweight attributes
Daniel-Constantin Mierla [Thu, 10 Dec 2020 15:25:49 +0000 (16:25 +0100)]
dispacher: docs - more details about weight and rweight attributes

- cross reference sections that have info about weight and rweight
attributes

(cherry picked from commit db55715003cd9af5ef3d32b51b5246643eea10d1)

11 months agocore: tcp - log connection state and flags on debug message
Daniel-Constantin Mierla [Tue, 8 Dec 2020 12:07:44 +0000 (13:07 +0100)]
core: tcp - log connection state and flags on debug message

(cherry picked from commit 41040a0420ee48f51901bf32e29526c8948ecea0)

11 months agocore: tcp - debug messages merged, print bytes read and flags
Daniel-Constantin Mierla [Tue, 8 Dec 2020 11:50:56 +0000 (12:50 +0100)]
core: tcp - debug messages merged, print bytes read and flags

(cherry picked from commit efb9c5f83b37c316b848ae7b6dc829e2f8ca6275)

11 months agopv: use static buffer for ctime_r() output and check its return
Daniel-Constantin Mierla [Thu, 3 Dec 2020 13:07:34 +0000 (14:07 +0100)]
pv: use static buffer for ctime_r() output and check its return

- fixed $TF output, regression introduced when switching to thread safe
time function

(cherry picked from commit 02fc919e4f177cc3ab9c5d53eb9ea2019c572bd9)

11 months agolost: trimed spaces before reolving locationURI value
Sergey Safarov [Wed, 2 Dec 2020 17:56:57 +0000 (20:56 +0300)]
lost: trimed spaces before reolving locationURI value

fixes GH2569 (#2569). Allow parse exmaples from RFC7840

(cherry picked from commit f9d424ac426dc0547c7233902dfa44ad1287e077)

11 months agodialog: access dialog table entry by reference for dmq_send_all_dlgs
Patrick Wakano [Wed, 2 Dec 2020 12:58:18 +0000 (13:58 +0100)]
dialog: access dialog table entry by reference for dmq_send_all_dlgs

- avoid race conditions to get and release the lock when entry structure
is copied in local variable
- GH #2570, GH #2547

(cherry picked from commit 4183b860e8af6d65074ab98a996c187211aebc7f)

11 months agoauth_diameter: init variable and check before freeing
Daniel-Constantin Mierla [Wed, 2 Dec 2020 08:45:48 +0000 (09:45 +0100)]
auth_diameter: init variable and check before freeing

(cherry picked from commit 04dc5d6c66c85d0d411aa23b27bc6be00258eff6)

11 months agolost: removed extra `"` symbol in example
Sergey Safarov [Sun, 29 Nov 2020 19:54:24 +0000 (22:54 +0300)]
lost: removed extra `"` symbol in example

(cherry picked from commit 124499c12db185d85805e5c71d5cc4222e608b68)

11 months agolost: fixed typo
Sergey Safarov [Sun, 29 Nov 2020 19:44:33 +0000 (22:44 +0300)]
lost: fixed typo

(cherry picked from commit 87f363f7fa0bf8f1897a3d6de13a09d6ec3812b9)

11 months agocore: check if the tcp clone rcv buffer is set when applying changes
Daniel-Constantin Mierla [Thu, 26 Nov 2020 12:54:42 +0000 (13:54 +0100)]
core: check if the tcp clone rcv buffer is set when applying changes

(cherry picked from commit aa13720e5d78dde5ae5235c13399848cb8f5a0cc)

11 months agodispatcher: removed unnecessary return
Daniel-Constantin Mierla [Wed, 25 Nov 2020 17:09:51 +0000 (18:09 +0100)]
dispatcher: removed unnecessary return

(cherry picked from commit 721d533317c735d7ddbd16ad94684b483468c010)

11 months agosmsops: fix len calc for a concatenated sms
Aleksandar Yosifov [Thu, 19 Nov 2020 13:39:13 +0000 (15:39 +0200)]
smsops: fix len calc for a concatenated sms

- fixed the calculation for concatenated SMSs
based on TS 23.040, Sec. 9.2.3.16

(cherry picked from commit d90f29b3b03386add989aebe3865bdc78dff8fbe)