kamailio
11 months agoChangelog: update content for 5.3.8 release 5.3.8
Henning Westerholt [Mon, 21 Dec 2020 17:06:38 +0000 (17:06 +0000)]
Changelog: update content for 5.3.8 release

11 months agopkg: set version to 5.3.8 for packaging files
Henning Westerholt [Mon, 21 Dec 2020 15:47:14 +0000 (15:47 +0000)]
pkg: set version to 5.3.8 for packaging files

11 months agoMakefile.defs: set version to 5.3.8
Henning Westerholt [Mon, 21 Dec 2020 15:46:56 +0000 (15:46 +0000)]
Makefile.defs: set version to 5.3.8

11 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Mon, 21 Dec 2020 15:46:54 +0000 (16:46 +0100)]
modules: readme files regenerated - modules ... [skip ci]

11 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)

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 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)

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 agoRevert "kemix: exported functions to get socket string and name"
Henning Westerholt [Mon, 21 Dec 2020 15:29:49 +0000 (15:29 +0000)]
Revert "kemix: exported functions to get socket string and name"

This reverts commit 6f6dda289c5c26a3098cae0d8df37e6bc51e1ac1.

11 months agodispatcher: info log message when adding extra weight or rweight percentages
Daniel-Constantin Mierla [Thu, 10 Dec 2020 16:04:31 +0000 (17:04 +0100)]
dispatcher: info log message when adding extra weight or rweight percentages

(cherry picked from commit ba27633ca22bcfc18fd4bb7d62c2f5bb32e56962)

11 months agodispatcher: check weight value to be in expected range
Daniel-Constantin Mierla [Thu, 10 Dec 2020 15:34:28 +0000 (16:34 +0100)]
dispatcher: check weight value to be in expected range

(cherry picked from commit e00f610203fee957a22afc5f8103c1482a925138)

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 agotm: check end of header name in lw parser
Daniel-Constantin Mierla [Thu, 3 Dec 2020 12:15:52 +0000 (13:15 +0100)]
tm: check end of header name in lw parser

- proper identification of header type, prior could mistakenly set the
type by matching the prefix of long header name
- GH #2572

(cherry picked from commit c0f5382bfbd2022896a9b206967977f827517700)

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 agondb_redis: set message level to debug on reconnect
Victor Seva [Fri, 27 Nov 2020 11:22:52 +0000 (12:22 +0100)]
ndb_redis: set message level to debug on reconnect

* logging error makes no sense here since there's going
  to be a reconnection afterwards

(cherry picked from commit 98805c723fbe01556e56d5b00ffc686b92014847)

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 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 agokemix: exported functions to get socket string and name
Daniel-Constantin Mierla [Mon, 23 Nov 2020 07:15:34 +0000 (08:15 +0100)]
kemix: exported functions to get socket string and name

(cherry picked from commit b59204eb1df8c85bcdde65f2a840f55986f01223)

11 months agokemix: exported function get_rcvadvip() and get_rcvadvport()
Daniel-Constantin Mierla [Fri, 20 Nov 2020 07:12:18 +0000 (08:12 +0100)]
kemix: exported function get_rcvadvip() and get_rcvadvport()

- return advertised address and port of the receiving socket

(cherry picked from commit 070a9c042a1caf19162d3d97b26f8d7548747cbb)

11 months agomisc/examples: note that sr is exported by app_lua_sr
Daniel-Constantin Mierla [Fri, 20 Nov 2020 07:02:37 +0000 (08:02 +0100)]
misc/examples: note that sr is exported by app_lua_sr

- hint for lua syntax check

(cherry picked from commit 889431746d24c73eeff73705fab36a0e154116a9)

11 months agotm: proper fill of From/To URI/tag values using parsed structure in t_uac_send()
Daniel-Constantin Mierla [Thu, 19 Nov 2020 16:06:06 +0000 (17:06 +0100)]
tm: proper fill of From/To URI/tag values using parsed structure in t_uac_send()

(cherry picked from commit aa6e9963b2725c1b6b7e5ff995a77c222d95fa3c)

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)

11 months agotm: print ruri mode in debug message from t load contacts
Daniel-Constantin Mierla [Wed, 18 Nov 2020 13:14:48 +0000 (14:14 +0100)]
tm: print ruri mode in debug message from t load contacts

(cherry picked from commit 3214ecd8ee82d1b69cde57d96dddefe1301c190c)

11 months agodispatcher: test no-dns flag to skip ip matching for hostnames
Daniel-Constantin Mierla [Wed, 18 Nov 2020 06:55:44 +0000 (07:55 +0100)]
dispatcher: test no-dns flag to skip ip matching for hostnames

- no dns done at startup if the flag is set in the destination record

(cherry picked from commit 1c58b8e0ed221404a15c1426f40df167654e3860)

11 months agodrouting: give portparameter set to 0 to sip_resolvehost()
Daniel-Constantin Mierla [Tue, 17 Nov 2020 11:55:17 +0000 (12:55 +0100)]
drouting: give portparameter set to 0 to sip_resolvehost()

- enable doing SRV query, GH #2553

(cherry picked from commit 18f59c10582845da5eea280990daf19c804978fb)

11 months agojsonrpcs: exported dispatch() function to kemi
Daniel-Constantin Mierla [Mon, 16 Nov 2020 09:06:20 +0000 (10:06 +0100)]
jsonrpcs: exported dispatch() function to kemi

(cherry picked from commit 08a9ed3d136c861f990e4f63c2c0544e08d9078d)

11 months agocore: added missing field in sip_msg_update_buffer
Aleksandar Yosifov [Mon, 9 Nov 2020 12:37:26 +0000 (14:37 +0200)]
core: added missing field in sip_msg_update_buffer

- added a missing field in sip_msg_update_buffer()
  when restoring message fiedls: msg->pid.

(cherry picked from commit 57be5c1f33344275c15777a7927d9c48df4a69ba)

11 months agosctp: memcpy field data to avoid unaligned access warning
Daniel-Constantin Mierla [Mon, 9 Nov 2020 12:10:43 +0000 (13:10 +0100)]
sctp: memcpy field data to avoid unaligned access warning

- GH #2543

(cherry picked from commit 4bb099b046939b85e1827b804167a51ef4bc00c4)

11 months agohttp_async_client: include poll.h instead sys/poll.h
Daniel-Constantin Mierla [Mon, 9 Nov 2020 11:31:24 +0000 (12:31 +0100)]
http_async_client: include poll.h instead sys/poll.h

- according to POSIX specs
- GH #2543

(cherry picked from commit 8f30c75cff7787a39f7c934e00e933b1beb43c20)

11 months agocore: init origproto to fix compiler warning
Daniel-Constantin Mierla [Mon, 9 Nov 2020 11:13:51 +0000 (12:13 +0100)]
core: init origproto to fix compiler warning

- GH #2543

(cherry picked from commit ef3233d14080936486d09edbe9598d7d92bd2f33)

11 months agodialog: skip doing cseq update processing for non-sip requests
Daniel-Constantin Mierla [Wed, 4 Nov 2020 10:15:10 +0000 (11:15 +0100)]
dialog: skip doing cseq update processing for non-sip requests

(cherry picked from commit 960b60ede8543f38b61ad2769e81e11d5a777df8)

11 months agoexec: debug message when command returns non-zero
Daniel-Constantin Mierla [Tue, 3 Nov 2020 11:49:33 +0000 (12:49 +0100)]
exec: debug message when command returns non-zero

(cherry picked from commit e9eee1ead964992a2d81014709755bbfd1e995c9)

11 months agopkg/kamailio/obs: updated tmpfiles
Sergey Safarov [Tue, 1 Dec 2020 15:00:39 +0000 (18:00 +0300)]
pkg/kamailio/obs: updated tmpfiles

fixed removing of kamailio_ctl and other files

(cherry picked from commit 468ec8f26ff8496bdf62a7bfbbb1b1e2e3452c0f)

12 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 27 Nov 2020 18:16:44 +0000 (19:16 +0100)]
modules: readme files regenerated - modules ... [skip ci]

12 months agoRevert "rtpengine: add CRC32 hash algo (#2558)"
Henning Westerholt [Fri, 27 Nov 2020 18:01:50 +0000 (18:01 +0000)]
Revert "rtpengine: add CRC32 hash algo (#2558)"

This reverts commit 0bff74a16bb991ffe8c6690133414c5c9126bd1f.

12 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Thu, 26 Nov 2020 07:16:58 +0000 (08:16 +0100)]
modules: readme files regenerated - modules ... [skip ci]

12 months agortpengine: add CRC32 hash algo (#2558)
Stefan Mititelu [Wed, 25 Nov 2020 17:20:52 +0000 (19:20 +0200)]
rtpengine: add CRC32 hash algo (#2558)

(cherry picked from commit 10349080490faabffaf1ab7cc5d591678b8c94dd)

12 months agopkg/kamailio/alpine: packaged app_lua_sr module
Sergey Safarov [Sun, 8 Nov 2020 21:19:44 +0000 (00:19 +0300)]
pkg/kamailio/alpine: packaged app_lua_sr module

(cherry picked from commit 6782b2c1789f162b405ec0b9894f61075a4307f9)

12 months agosl: Fix 3xx stats RPC marshalling
Guillem Jover [Thu, 5 Nov 2020 17:34:43 +0000 (18:34 +0100)]
sl: Fix 3xx stats RPC marshalling

The struct_add() method was getting 4 values but only 3 "d".

(cherry picked from commit ac55cc5ce5fcbb50d3a2a6b228585dce8fc1150d)

12 months agodialog: proper to-tag check for initial requests to skip cseq updates
Daniel-Constantin Mierla [Wed, 4 Nov 2020 07:09:39 +0000 (08:09 +0100)]
dialog: proper to-tag check for initial requests to skip cseq updates

(cherry picked from commit 81d3e7a43a249dfc9eaa075c698e1eb3237a517e)
(cherry picked from commit 5bd72f2758b2059759ce152e6d97b6a1955bc5bc)

12 months agoChangeLog: content updated for v5.3.7 5.3.7
Daniel-Constantin Mierla [Mon, 2 Nov 2020 12:25:12 +0000 (13:25 +0100)]
ChangeLog: content updated for v5.3.7

12 months agopkg/kamailio/deb: version set to 5.3.7
Daniel-Constantin Mierla [Mon, 2 Nov 2020 12:22:01 +0000 (13:22 +0100)]
pkg/kamailio/deb: version set to 5.3.7

12 months agoMakefile.defs: version set to 5.3.7
Daniel-Constantin Mierla [Mon, 2 Nov 2020 12:12:36 +0000 (13:12 +0100)]
Makefile.defs: version set to 5.3.7

12 months agopkg: version set to 5.3.7 for rpm and alpine
Daniel-Constantin Mierla [Mon, 2 Nov 2020 11:47:12 +0000 (12:47 +0100)]
pkg: version set to 5.3.7 for rpm and alpine

12 months agodialog: small spelling fix in debug log message 5,3
Henning Westerholt [Mon, 2 Nov 2020 09:27:41 +0000 (09:27 +0000)]
dialog: small spelling fix in debug log message

(cherry picked from commit 1640569d02420e0c0d0232fc825354d1f09784c8)
(cherry picked from commit e27c128abebcb06d1383a909ecfd21bcb4ca8026)

12 months agodialog: skip non-INVITE initial request for cseq update processing
Daniel-Constantin Mierla [Mon, 2 Nov 2020 08:04:46 +0000 (09:04 +0100)]
dialog: skip non-INVITE initial request for cseq update processing

(cherry picked from commit a973882b064c758972ce40e9ac3a83440c613be1)
(cherry picked from commit a309a0ee48278923871197391a30d485f0513a4f)

12 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 30 Oct 2020 14:01:35 +0000 (15:01 +0100)]
modules: readme files regenerated - modules ... [skip ci]

12 months agodialog: update internal_get_dlg() after 0bde3ca changes
Daniel-Constantin Mierla [Wed, 28 Oct 2020 09:32:50 +0000 (10:32 +0100)]
dialog: update internal_get_dlg() after 0bde3ca changes

- keep also direction value for no-totag dialog
- reference and unlock only when returning, related to #2494

(cherry picked from commit 98436c73e8519e96e3d167b7610cbb58b9939885)

12 months agocore: parser rr - clean partially cloned fields in case of error
Daniel-Constantin Mierla [Mon, 26 Oct 2020 12:36:36 +0000 (13:36 +0100)]
core: parser rr - clean partially cloned fields in case of error

(cherry picked from commit e4f6c660bd75cdb9ff0855fcb511673cc8ec00c4)
(cherry picked from commit e3cda7fa4e873c110ee2641f6200fad52222586a)

12 months agoregex: use var to store strlen() values
Daniel-Constantin Mierla [Mon, 26 Oct 2020 12:06:53 +0000 (13:06 +0100)]
regex: use var to store strlen() values

- avoid doing it again in a few cases

(cherry picked from commit 5d490d616132067a5e914302a24b964b73b229a2)
(cherry picked from commit bd2204b7151261981bc6872928b7434e2ac7df2e)

12 months agotextops: docs - some enhancements to basic header operations functions
Daniel-Constantin Mierla [Mon, 26 Oct 2020 09:53:24 +0000 (10:53 +0100)]
textops: docs - some enhancements to basic header operations functions

(cherry picked from commit 374f0f05bdf27ddaf5d8652560738fbfb886c43c)
(cherry picked from commit 7cd88cf05f25a5a5883d936285ac51f82911e9af)

12 months agoalias_db: clang format the code
Daniel-Constantin Mierla [Mon, 26 Oct 2020 07:15:10 +0000 (08:15 +0100)]
alias_db: clang format the code

(cherry picked from commit 3dca5cd2c7f018189b6784a7e87807df1de7589e)
(cherry picked from commit aa0573d2afa3c1a0afa76b8fd1e0de952c487a01)

12 months agoalias_db: removed history from top comments
Daniel-Constantin Mierla [Mon, 26 Oct 2020 06:52:49 +0000 (07:52 +0100)]
alias_db: removed history from top comments

- missing copyright header

(cherry picked from commit 7ae0caaffd3d6e523fd32501401213521a1881e5)
(cherry picked from commit 5114cc77cb61744843ed8b535d9804fcdf61e635)

12 months agoalias_db: set ending zero in a single place
Daniel-Constantin Mierla [Mon, 26 Oct 2020 06:42:10 +0000 (07:42 +0100)]
alias_db: set ending zero in a single place

(cherry picked from commit dc1bb5b1861de279b450ab550888dd748b77463f)
(cherry picked from commit 83005d4fafd5d055e4125a83c24d1c6cd0eed058)

12 months agotmx: Allow $T_branch(flags) in onreply_route
Alex Hermann [Mon, 13 Nov 2017 15:48:30 +0000 (16:48 +0100)]
tmx: Allow $T_branch(flags) in onreply_route

(cherry picked from commit d161d4523fc6b0619defe918bc204cc7a9cae073)
(cherry picked from commit dc2336f541eb27d0a034f4c72a26c40270cfea70)

12 months agotm: Fix faked_reply_prio by passing correct reply to get_prio
Alex Hermann [Mon, 13 Nov 2017 14:50:20 +0000 (15:50 +0100)]
tm: Fix faked_reply_prio by passing correct reply to get_prio

Instead of passing the to be evaluated reply as the "best" reply, pass the
actual "best" reply.

(cherry picked from commit 5731cc0911ff65bf7efd433a83a25ffbf6073d10)
(cherry picked from commit cbd9c3d2851ece3c8f08b0664b72fca18f6f4f77)

12 months agoutils/pdbt: Relax permissions when creating files
Kristian F. Høgh [Wed, 21 Oct 2020 09:21:43 +0000 (11:21 +0200)]
utils/pdbt: Relax permissions when creating files

(cherry picked from commit bb42ee28fc115e1e3373962c02162c9a8e6d41fc)
(cherry picked from commit 071fe9366b3cc14f0cce1aa0373d20a0242182cb)

12 months agoregistrar: added note about branch flags in save()/lookup() doc
Juha Heinanen [Tue, 20 Oct 2020 08:04:58 +0000 (11:04 +0300)]
registrar: added note about branch flags in save()/lookup() doc

(cherry picked from commit f2996bf733a0b5e00fe124440353b9a69a3532a2)
(cherry picked from commit f050ce2dc5f27a08bf5c5364e4002b646802eb81)

12 months agopermissions: exported allow_trusted() to kemi
Daniel-Constantin Mierla [Mon, 19 Oct 2020 09:01:12 +0000 (11:01 +0200)]
permissions: exported allow_trusted() to kemi

- related to #2509

(cherry picked from commit 843b22b4efb0d343f13230d6e90d2484f370dbdb)
(cherry picked from commit 12ebd41d0dae516f39933eeabcda1919cb10b71e)

12 months agopipelimit: use unsigned to compute size and for iterator
Daniel-Constantin Mierla [Mon, 19 Oct 2020 08:09:59 +0000 (10:09 +0200)]
pipelimit: use unsigned to compute size and for iterator

(cherry picked from commit 23818fb34d09a487654ea89c9f29b880c0c75197)
(cherry picked from commit 550840b4b9ce8df9acdf875f907ce86533fea43e)

12 months agopkg: add CAP_CHOWN capability to Kamailio systemd service files to allow chown (...
Henning Westerholt [Fri, 11 Sep 2020 10:51:23 +0000 (10:51 +0000)]
pkg: add CAP_CHOWN capability to Kamailio systemd service files to allow chown (#2391)

- add CAP_CHOWN capability to Kamailio systemd service files to allow chown
- needed e.g. for user and group setting from jsonrpcs and ctl modules
- related to github issue #2391

(cherry picked from commit 8b72f462deb4b66fb55f754abc93bf7295278afa)

12 months agopkg/kamailio/deb: allow group write to RuntimeDirectory
Victor Seva [Thu, 24 Oct 2019 10:08:20 +0000 (12:08 +0200)]
pkg/kamailio/deb: allow group write to RuntimeDirectory

(cherry picked from commit fe693cc1178a9301cdb0be3941d9c70d720920e5)

13 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Wed, 28 Oct 2020 19:31:33 +0000 (20:31 +0100)]
modules: readme files regenerated - modules ... [skip ci]

13 months agouac: extend docs for uac_auth() example, only t_relay() on success
Henning Westerholt [Wed, 28 Oct 2020 19:02:33 +0000 (19:02 +0000)]
uac: extend docs for uac_auth() example, only t_relay() on success

- extend docs for uac_auth() example, only t_relay() on success
- otherwise you will get a 'no branches for forwarding' error from tm

(cherry picked from commit 668402e77c19ba4b5b8fc5b6c869ffbf34ea622d)

13 months agouac: do not silently fail on realm lookup error, at least log with INFO
Henning Westerholt [Wed, 28 Oct 2020 18:08:59 +0000 (18:08 +0000)]
uac: do not silently fail on realm lookup error, at least log with INFO

(cherry picked from commit b6c10c8181d670a81a7d1216c7e6ec81c0963e9c)

13 months agoauth_radius, misc_radius: Adds VENDOR() definition if the freeradius-client.h does...
Paris Stamatopoulos [Fri, 23 Oct 2020 20:57:49 +0000 (23:57 +0300)]
auth_radius, misc_radius: Adds VENDOR() definition if the freeradius-client.h does not contain one already.

(cherry picked from commit 9978e00405cac89cc65d2d8a863128dd2814d7fd)

13 months agotextops: fix append_hf function
Stefan Mititelu [Thu, 22 Oct 2020 13:54:01 +0000 (16:54 +0300)]
textops: fix append_hf function

Before: append_hf adds header after first header occurance

After: append_hf adds header after last header occurance

(cherry-picked from commit 4adea97a4f8a9b35273d4d28b0518964abb7f0d8)

13 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 16 Oct 2020 12:16:59 +0000 (14:16 +0200)]
modules: readme files regenerated - modules ... [skip ci]

13 months agonathelper: docs - fixed typos
Bastian Triller [Fri, 16 Oct 2020 10:41:00 +0000 (12:41 +0200)]
nathelper: docs - fixed typos

13 months agouac: docs - fix missing uac.reg_remove method
Bastian Triller [Fri, 16 Oct 2020 10:32:45 +0000 (12:32 +0200)]
uac: docs - fix missing uac.reg_remove method

13 months agocore: fix typo in comment
Bastian Triller [Fri, 16 Oct 2020 10:36:13 +0000 (12:36 +0200)]
core: fix typo in comment

13 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Mon, 12 Oct 2020 08:46:32 +0000 (10:46 +0200)]
modules: readme files regenerated - modules ... [skip ci]

13 months agortpproxy: renamed extract_mediaip() to rp_extract_mediaip()
Daniel-Constantin Mierla [Tue, 6 Oct 2020 10:59:50 +0000 (12:59 +0200)]
rtpproxy: renamed extract_mediaip() to rp_extract_mediaip()

- extract_mediaip() is also in core sdp parser

(cherry picked from commit 8d0044770e94eaf7099eabbb55abe177e52e5373)
(cherry picked from commit eec7d2613489613725b8979ce3d00d6616bb80c8)

13 months agonathelper: renamed extract_mediaip() to nh_extract_mediaip()
Daniel-Constantin Mierla [Tue, 6 Oct 2020 09:56:45 +0000 (11:56 +0200)]
nathelper: renamed extract_mediaip() to nh_extract_mediaip()

- extract_mediaip() is also in core sdp parser

(cherry picked from commit b0f239a2c16b71b8b7e7b325ea121ffc48afa78e)
(cherry picked from commit a989f384b5cb95e096e89899c57d8f11283b12cb)

13 months agonathelper: docs - updated notes for fix_nated_sdp. few typos fixed [skip ci]
Arsen Semenov [Tue, 6 Oct 2020 06:40:27 +0000 (11:40 +0500)]
nathelper: docs - updated notes for fix_nated_sdp. few typos fixed [skip ci]

(cherry picked from commit 64579fee33d0a82a583b75184f78fcb7c9df2d82)
(cherry picked from commit d5393ffd76cc37e98365d7b945454e0215d9f82f)

13 months agonathelper: fix_nated_sdp added support for a=rtcp param RFC3605
Arsen Semenov [Mon, 5 Oct 2020 08:52:45 +0000 (13:52 +0500)]
nathelper: fix_nated_sdp added support for a=rtcp param RFC3605

- GH #2459

(cherry picked from commit 088738ce16e73339e4c1b78c11f6ad6f8f3394cf)
(cherry picked from commit fd4dd36319599867e590098d86dc37186595cfad)

13 months agophonenum: note about the role of country code name for phonenum_match_cn()
Daniel-Constantin Mierla [Fri, 2 Oct 2020 19:37:15 +0000 (21:37 +0200)]
phonenum: note about the role of country code name for phonenum_match_cn()

(cherry picked from commit dfd6c3966ed70d111a9196076bc29767c395d814)
(cherry picked from commit 755867b920e4e0d17a4bdf447a0d59a06875f8e1)

13 months agocore: dns cache - removed disabled code between #if 0 ... #endif
Daniel-Constantin Mierla [Thu, 24 Sep 2020 08:04:08 +0000 (10:04 +0200)]
core: dns cache - removed disabled code between #if 0 ... #endif

(cherry picked from commit 298aeb7f93bfa75ec78bc941f2c76167525b2e61)
(cherry picked from commit 75cb64a768d187baf5730067503a708959284827)

13 months agotm: do not add duplicate headers in local requests
Daniel-Constantin Mierla [Fri, 9 Oct 2020 20:15:12 +0000 (22:15 +0200)]
tm: do not add duplicate headers in local requests

(cherry picked from commit ada3701d22b1fd579f06b4f54fa695fa988e685f)
(cherry picked from commit f57c900b438f3233fa1e9a9d3ca8cd383a30baa6)

13 months agocore: parser - print lenghts in to header parsing debug message
Daniel-Constantin Mierla [Fri, 9 Oct 2020 19:59:49 +0000 (21:59 +0200)]
core: parser - print lenghts in to header parsing debug message

(cherry picked from commit 2648eb330b133a20f1398d59a28c53532106cad3)
(cherry picked from commit 6e2bdf1056e3a31f1ca1f485473fcd26f9ccf044)

13 months agosanity: extended check 4 (required headers) for uniqueness
Daniel-Constantin Mierla [Fri, 9 Oct 2020 19:55:45 +0000 (21:55 +0200)]
sanity: extended check 4 (required headers) for uniqueness

- Call-ID, CSeq, From and To have to be only once

(cherry picked from commit a9ede56b35990fcc9164af0775f503e49e33377e)
(cherry picked from commit 7adf410af754f1bb737edca6f427ef02d3441cda)

13 months agodialog: do unlock after saving updated dialog details
Daniel-Constantin Mierla [Mon, 5 Oct 2020 09:53:01 +0000 (11:53 +0200)]
dialog: do unlock after saving updated dialog details

- lock()/unlock() for dialog slots are reentrant

(cherry picked from commit e4cf6739e62c2ac1e5364315aaed1a7b73919253)
(cherry picked from commit 73476522301b6de65b8873e4ab04041315e93a82)

13 months agodialog: fix error in dlg.list_match for callid parameter (reported from Ilie Soltanici)
Henning Westerholt [Sat, 3 Oct 2020 16:58:53 +0000 (16:58 +0000)]
dialog: fix error in dlg.list_match for callid parameter (reported from Ilie Soltanici)

(cherry picked from commit 360e012d9d93c80b62b6e75bfac6e3340407ee98)

13 months agorr: reset param buffer for r-r advertised address
Henning Westerholt [Sat, 3 Oct 2020 08:21:54 +0000 (08:21 +0000)]
rr: reset param buffer for r-r advertised address

- GH #2486

(backport from commit 8dfc0f6ef0ddc4bf2d73d21124caa289d4b8ce07)

13 months agocore: str - fixed wrong (undo'ed) version of STR_ZTOV() macro
Daniel-Constantin Mierla [Mon, 27 Apr 2020 13:24:23 +0000 (15:24 +0200)]
core: str - fixed wrong (undo'ed) version of STR_ZTOV() macro

(cherry picked from commit 65ab73a7efabf4a55e913adfa604094c9ad88cdb)

13 months agocore: str - helper macro to set ending zero with backup and restore from backup
Daniel-Constantin Mierla [Mon, 27 Apr 2020 12:53:33 +0000 (14:53 +0200)]
core: str - helper macro to set ending zero with backup and restore from backup

(cherry picked from commit d6e24bd089bbe27c54a7e851993ab99bf93e8c52)

13 months agoRevert "evapi: free addr info in case of bind error"
Daniel-Constantin Mierla [Sat, 3 Oct 2020 06:11:31 +0000 (08:11 +0200)]
Revert "evapi: free addr info in case of bind error"

This reverts commit 4a56a8b780744d9ba35a94afbd5226bd7860179f.

13 months agoRevert "websocket: emit core event on close"
Daniel-Constantin Mierla [Sat, 3 Oct 2020 06:02:56 +0000 (08:02 +0200)]
Revert "websocket: emit core event on close"

This reverts commit 288d760f8f11e4028ccd56f4941a19e649509d65.

13 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 2 Oct 2020 16:16:36 +0000 (18:16 +0200)]
modules: readme files regenerated - modules ... [skip ci]

13 months agoRevert "kex: use mutex to sync the mod mem stats rpc commands"
Henning Westerholt [Fri, 2 Oct 2020 16:12:20 +0000 (16:12 +0000)]
Revert "kex: use mutex to sync the mod mem stats rpc commands"

This reverts commit f014dd7fc45743685723c02aaad96ddd35e10536.

13 months agodispatcher: fix an error in initialisation /
Julien Chavanton [Mon, 28 Sep 2020 19:57:25 +0000 (12:57 -0700)]
dispatcher: fix an error in initialisation /

training of the latency estimator

(cherry picked from commit b728cb30810ef44b821a93335cdd34f954f2029c)

13 months agondb_redis: set message level to debug on exec
Victor Seva [Wed, 23 Sep 2020 07:01:43 +0000 (09:01 +0200)]
ndb_redis: set message level to debug on exec

* logging error makes no sense here since there's going
  to be a reconnection afterwards

> ERROR: ndb_redis [redis_client.c:903]: redisc_exec_argv(): Redis error: Server closed the connection

(cherry picked from commit a9c331d70dbed6827874aa99296203ac5a9d5c7b)

13 months agoimc: jump over printing error log messages when list commands are ok
Daniel-Constantin Mierla [Tue, 22 Sep 2020 17:00:25 +0000 (19:00 +0200)]
imc: jump over printing error log messages when list commands are ok

- reported by GH #2481

(cherry picked from commit 92cfb5e8d291706889c926892397e663e2d93b05)

13 months agousrloc: use unsigned int for rpc output for the fields having this type
Daniel-Constantin Mierla [Mon, 21 Sep 2020 08:59:34 +0000 (10:59 +0200)]
usrloc: use unsigned int for rpc output for the fields having this type

(cherry picked from commit b754b9f68bee0b58b4ae00b7f0764c2bf711d14c)

13 months agotmx: safety check of expected route blocks for using $T_*() variables
Daniel-Constantin Mierla [Thu, 17 Sep 2020 12:21:30 +0000 (14:21 +0200)]
tmx: safety check of expected route blocks for using $T_*() variables

- related to GH #2479

(cherry picked from commit 2e7710e292a649c6c57e46d5994d3b2cf3815865)

13 months agolib/srdb1: db_use_table() more suggestive error messages
Daniel-Constantin Mierla [Thu, 17 Sep 2020 10:55:10 +0000 (12:55 +0200)]
lib/srdb1: db_use_table() more suggestive error messages

(cherry picked from commit 57d33a2d76219ae3d1eb503044dadaeddc7e06fd)

13 months agotopos: docs - more details about what SIP traffic is handled
Daniel-Constantin Mierla [Tue, 15 Sep 2020 05:33:00 +0000 (07:33 +0200)]
topos: docs - more details about what SIP traffic is handled

(cherry picked from commit 878971f2c0bc32233b6f18728f9b88537b3d19e8)