kamailio
13 months agoChangeLog: content updated for v5.4.2 5.4.2
Daniel-Constantin Mierla [Tue, 27 Oct 2020 11:30:50 +0000 (12:30 +0100)]
ChangeLog: content updated for v5.4.2

13 months agoMakefile.defs: version set to 5.4.2
Daniel-Constantin Mierla [Tue, 27 Oct 2020 11:06:12 +0000 (12:06 +0100)]
Makefile.defs: version set to 5.4.2

13 months agopkg/kamailio/deb: version set 5.4.2
Victor Seva [Tue, 27 Oct 2020 10:45:17 +0000 (11:45 +0100)]
pkg/kamailio/deb: version set 5.4.2

13 months agopkg: version set to 5.4 for rpm and alpine specs
Daniel-Constantin Mierla [Tue, 27 Oct 2020 08:55:02 +0000 (09:55 +0100)]
pkg: version set to 5.4 for rpm and alpine specs

13 months agoxcap_server: shorten a bit the search range for xcaps_xpath_hack()
Daniel-Constantin Mierla [Tue, 27 Oct 2020 08:34:18 +0000 (09:34 +0100)]
xcap_server: shorten a bit the search range for xcaps_xpath_hack()

- match on the buffer len min size, xmlns is expected to have a value,
plus the ending of the xml tag

(cherry picked from commit 3be41802c7c670cce0d3e08462e23ca3f3fbe2d4)

13 months agousrloc: safety check on len for user in db keepalive routine
Daniel-Constantin Mierla [Mon, 26 Oct 2020 13:02:48 +0000 (14:02 +0100)]
usrloc: safety check on len for user in db keepalive routine

(cherry picked from commit a1620fa1b4587239835db6ed5765ce04f927172d)

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

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

13 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Mon, 26 Oct 2020 10:16:32 +0000 (11:16 +0100)]
modules: readme files regenerated - modules ... [skip ci]

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

13 months agopv_headers: free hash entry in case of error
Daniel-Constantin Mierla [Mon, 26 Oct 2020 08:17:02 +0000 (09:17 +0100)]
pv_headers: free hash entry in case of error

(cherry picked from commit 46c7a8c0bf2b4d5c00e22a751f95f13263686445)

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

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

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

13 months agortp_media_server: state transition improvement
Julien Chavanton [Sun, 25 Oct 2020 18:54:33 +0000 (18:54 +0000)]
rtp_media_server: state transition improvement

- fix disconnection while in bridge, to keep thing simple for now the
second leg is automaticaly disconnected.

(cherry picked from commit e419bad759dc817ba673563ec4e79681f685dc28)

13 months agortp_media_server: fix dialog_list_mutex
Julien Chavanton [Fri, 23 Oct 2020 20:21:45 +0000 (20:21 +0000)]
rtp_media_server: fix dialog_list_mutex

issue 2522

(cherry picked from commit 750cb7fc131afa254952536bdb200d55e2cc8955)

13 months agortp_media_server: fix issue 2524
Julien Chavanton [Fri, 23 Oct 2020 19:37:35 +0000 (19:37 +0000)]
rtp_media_server: fix issue 2524

- fix completion without failure route
- rms_bridge automaticaly append missing ';' is not present

(cherry picked from commit 2ea4f685ea8b7dbca13b4fd521441088f8318d1f)

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

13 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 23 Oct 2020 09:17:14 +0000 (11:17 +0200)]
modules: readme files regenerated - modules ... [skip ci]

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

13 months agojanssonrpcc: cleanups (#2512)
Alex Hermann [Fri, 23 Oct 2020 08:32:02 +0000 (10:32 +0200)]
janssonrpcc: cleanups (#2512)

* janssonrpcc: Remove unused variable and redundant assignment

* janssonrpc: No need for copying options

The address stay valid until free_params is called. And before that
happens, mod_jsonrpc_request() makes its own copy.

(cherry picked from commit 61771b0595c126d884e8c1eb392a54b5786a8fa8)

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

13 months agortp_media_server: use directly gen_lock_t instead of ser_lock_t which is tm typedef
Daniel-Constantin Mierla [Wed, 21 Oct 2020 06:29:21 +0000 (08:29 +0200)]
rtp_media_server: use directly gen_lock_t instead of ser_lock_t which is tm typedef

(cherry picked from commit 3a162187580880fa7210bd376621f57576e9d209)

13 months agortp_media_server: declare variables in .c files
Daniel-Constantin Mierla [Wed, 21 Oct 2020 06:24:53 +0000 (08:24 +0200)]
rtp_media_server: declare variables in .c files

- extern in .h files, GH #2522

(cherry picked from commit 128ba4fe95f3c27474c9f839d34f8fb1fd75e064)

13 months agocore: Document that a str can be zero-terminated
Alex Hermann [Tue, 20 Oct 2020 12:58:28 +0000 (14:58 +0200)]
core: Document that a str can be zero-terminated

But by default it isn't.

The functions shm_str_dup() and pkg_str_dup() will always create a
zero-terminated copy

(cherry picked from commit fcdfaf98acf8a66e84b9dccc767fb52c0cf0d460)

13 months agocore: Zero terminate str copies made with (pkg|shm)_str_dup()
Alex Hermann [Tue, 20 Oct 2020 08:13:29 +0000 (10:13 +0200)]
core: Zero terminate str copies made with (pkg|shm)_str_dup()

As discussed in #2512, zero-terminating all copies is preferred as most str
usage is already with zero-terminated str.s.

(cherry picked from commit 0ea69b16db298842f58a6fcaaab2c0ee1a137b94)

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

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

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

13 months agonsq: remove unused defs.h file
Emmanuel Schmidbauer [Fri, 16 Oct 2020 11:22:33 +0000 (07:22 -0400)]
nsq: remove unused defs.h file

(cherry picked from commit 79db27575a48c5451b547ece68b5849456e245f9)

13 months agosecsipid: docs - small typo
Daniel-Constantin Mierla [Fri, 16 Oct 2020 06:49:12 +0000 (08:49 +0200)]
secsipid: docs - small typo

(cherry picked from commit f74f1df842815e8a42d1b4f71b6f98287a625d41)

13 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 16 Oct 2020 12:16:41 +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:31:20 +0000 (10:31 +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)

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)

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)

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)

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)

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)

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)

13 months agomsrp: proper parsing ipv6 host part in uri
Daniel-Constantin Mierla [Wed, 9 Sep 2020 11:01:36 +0000 (13:01 +0200)]
msrp: proper parsing ipv6 host part in uri

- enclose ipv6 address in square brackets for msrp pv
- related to #2472

(cherry picked from commit 1cda029885dd89e2ec46fe28a0d6f656aad19e7a)

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)

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)

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)

13 months agousrloc: send keepalive over ws and wss connections
Daniel-Constantin Mierla [Fri, 9 Oct 2020 07:25:41 +0000 (09:25 +0200)]
usrloc: send keepalive over ws and wss connections

(cherry picked from commit 5dda7f336121b6068fd306340cb90a7d7e76c708)

13 months agocore: tcp - helper function to send data over ws/wss connection
Daniel-Constantin Mierla [Fri, 9 Oct 2020 05:52:29 +0000 (07:52 +0200)]
core: tcp - helper function to send data over ws/wss connection

(cherry picked from commit 5e107824d684cdf30514b033e7f600862123ece5)

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)

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

14 months agorr: reset param buffer for r-r advertised address
Daniel-Constantin Mierla [Wed, 30 Sep 2020 10:34:40 +0000 (12:34 +0200)]
rr: reset param buffer for r-r advertised address

- GH #2486

(cherry picked from commit 8dfc0f6ef0ddc4bf2d73d21124caa289d4b8ce07)

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

14 months agoFix typo on main README.md: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:51:16 +0000 (20:51 -0600)]
Fix typo on main README.md: Consecutives 'the'

14 months agoFix typo on xmpp module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:50:41 +0000 (20:50 -0600)]
Fix typo on xmpp module: Consecutives 'the'

14 months agoFix typo on websocket module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:50:02 +0000 (20:50 -0600)]
Fix typo on websocket module: Consecutives 'the'

14 months agoFix typo on tm module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:46:20 +0000 (20:46 -0600)]
Fix typo on tm module: Consecutives 'the'

14 months agoFix typo on sca module NOTES
Jorge Vallecillo [Fri, 2 Oct 2020 02:45:44 +0000 (20:45 -0600)]
Fix typo on sca module NOTES

14 months agoFix typo on ims_qos module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:44:27 +0000 (20:44 -0600)]
Fix typo on ims_qos module: Consecutives 'the'

14 months agoFix typo on drouting module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:43:44 +0000 (20:43 -0600)]
Fix typo on drouting module: Consecutives 'the'

14 months agoFix typo on db_mongodb module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:42:54 +0000 (20:42 -0600)]
Fix typo on db_mongodb module: Consecutives 'the'

14 months agoFix typo on cplc module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:41:54 +0000 (20:41 -0600)]
Fix typo on cplc module: Consecutives 'the'

14 months agoFix typo on counters module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:40:13 +0000 (20:40 -0600)]
Fix typo on counters module: Consecutives 'the'

14 months agoFix typo on carrierroute module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:39:26 +0000 (20:39 -0600)]
Fix typo on carrierroute module: Consecutives 'the'

14 months agoFix typo on avp module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:31:12 +0000 (20:31 -0600)]
Fix typo on avp module: Consecutives 'the'

14 months agoFix typo on app_jsdt module: Consecutives 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:30:12 +0000 (20:30 -0600)]
Fix typo on app_jsdt module: Consecutives 'the'

14 months agoFix typo on srdb1 lib: Consecutive 'the'
Jorge Vallecillo [Fri, 2 Oct 2020 02:29:03 +0000 (20:29 -0600)]
Fix typo on srdb1 lib: Consecutive 'the'

14 months agotopos: update to-tag and rr on reply even to-tag is already set
Daniel-Constantin Mierla [Thu, 1 Oct 2020 08:04:50 +0000 (10:04 +0200)]
topos: update to-tag and rr on reply even to-tag is already set

- GH #2489

(cherry picked from commit acd7f6f1703d12aa8f2dce87e1b8e4b74d6b4d96)

14 months agodialog: dlg_cell, always check for a to-tag match
Julien Chavanton [Mon, 28 Sep 2020 16:13:16 +0000 (09:13 -0700)]
dialog: dlg_cell, always check for a to-tag match

14 months agopv: use the corresponding functions for parsing names of xavu and xavi
Daniel-Constantin Mierla [Tue, 29 Sep 2020 05:25:46 +0000 (07:25 +0200)]
pv: use the corresponding functions for parsing names of xavu and xavi

(cherry picked from commit aa8589ba66f984e93438a91a7fe8b26bd9d5b62e)

14 months agousrloc: set last keepalive value to current time on new records
Daniel-Constantin Mierla [Fri, 25 Sep 2020 07:38:39 +0000 (09:38 +0200)]
usrloc: set last keepalive value to current time on new records

- do not rely on last modified value, can be loaded from db and be too
old

(cherry picked from commit 60f04b6d6f51b55294d22722df3f351a76cbfb9b)

14 months agousrloc: do keepalive mode checks before expire processing
Daniel-Constantin Mierla [Wed, 23 Sep 2020 15:31:04 +0000 (17:31 +0200)]
usrloc: do keepalive mode checks before expire processing

(cherry picked from commit e67b588434a08c828548c79b6cc5f4c2a7240dc9)

14 months agousrloc: do keepalive-based contact expire on internal callback
Daniel-Constantin Mierla [Wed, 23 Sep 2020 15:00:29 +0000 (17:00 +0200)]
usrloc: do keepalive-based contact expire on internal callback

- the one used by nathelper is not triggered automatically

(cherry picked from commit 5c1e07dc2efc46fe078263c76ce0388f09949539)

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

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

14 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Tue, 22 Sep 2020 17:46:21 +0000 (19:46 +0200)]
modules: readme files regenerated - modules ... [skip ci]

14 months agousrloc: docs for ka_timeout module parameter
Daniel-Constantin Mierla [Fri, 11 Sep 2020 20:06:45 +0000 (22:06 +0200)]
usrloc: docs for ka_timeout module parameter

(cherry picked from commit 2e9d4e2dc45bf5baab1bff9c13fc841b66793cb4)

14 months agousrloc: export modparam to set keepalive timeout
Daniel-Constantin Mierla [Fri, 11 Sep 2020 20:00:38 +0000 (22:00 +0200)]
usrloc: export modparam to set keepalive timeout

- variable was not exported by the module for internal keepalive
mechanism

(cherry picked from commit 9331044bf517be120dea59414402415090b63007)

14 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Tue, 15 Sep 2020 16:01:22 +0000 (18:01 +0200)]
modules: readme files regenerated - modules ... [skip ci]

14 months agoregistrar: Update documentation
whosgonna [Tue, 15 Sep 2020 15:29:08 +0000 (10:29 -0500)]
registrar:  Update documentation

- Replace all occurences of "HF" with "header field"
- Replace all occurences of "HFs" with "header fields"

(cherry picked from commit d936c6276b6d8e45efd87a4fc25a55b9c3ab1fce)

14 months agoregistrar: Update documentation
whosgonna [Tue, 15 Sep 2020 15:32:07 +0000 (10:32 -0500)]
registrar:  Update documentation

- Fix double negative "without no DB operation". Changed to
  "with no DB operation".

(cherry picked from commit be0382fa11920de972ddbcdbe17c3ff583da87e4)

14 months agocore: more comments about data lump structure fields and options
Daniel-Constantin Mierla [Wed, 9 Sep 2020 13:32:33 +0000 (15:32 +0200)]
core: more comments about data lump structure fields and options

(cherry picked from commit b13431b6fc7eec20096c5be46c8ce2e43931c45f)

14 months agocore: skip abort() in free_lump() for LUMPFLAG_DUPED
Daniel-Constantin Mierla [Wed, 9 Sep 2020 13:33:18 +0000 (15:33 +0200)]
core: skip abort() in free_lump() for LUMPFLAG_DUPED

- the LUMPFLAG_DUPED is set when duplicating lumps list for branch route
execution, but some functions such as set_body() may want to clean them
- report and minimal reproducing config by Henning Westerholt

(cherry picked from commit 57ee97f52dd90c86743b6fd6dd682285ef994e80)

14 months agohttpa_asyc_client: set curl memory callbacks in module initialization
Federico Cabiddu [Tue, 8 Sep 2020 13:04:04 +0000 (15:04 +0200)]
httpa_asyc_client: set curl memory callbacks in module initialization

14 months agocore: events - return once SREV_SIP_REPLY_OUT callbacks are executed
Daniel-Constantin Mierla [Tue, 8 Sep 2020 11:08:01 +0000 (13:08 +0200)]
core: events - return once SREV_SIP_REPLY_OUT callbacks are executed

(cherry picked from commit 1910432ce3af56af1e6d4c4c124c2af2925c5b9a)

14 months agouac: restore first display name then uri with dialog callback
Daniel-Constantin Mierla [Mon, 7 Sep 2020 17:35:04 +0000 (19:35 +0200)]
uac: restore first display name then uri with dialog callback

- same as for rr callback, otherwise the new header can be malformed:
the case of initial INVITE with From URI having no angle brackets and goes
out with display name and angle brackets, the ACK for 200ok results with
From broken when forwarded

(cherry picked from commit efa6c6a9bf13c430d5be5146168d1ded4c39dba7)

14 months agopv_headers: fix $x_hdr index on get
Victor Seva [Fri, 4 Sep 2020 09:19:33 +0000 (11:19 +0200)]
pv_headers: fix $x_hdr index on get

* previously we where not supporting pseudo-variables as index

(cherry picked from commit 492c99e8065baa510f55154593122e33d3a61d73)

14 months agopv: handle s.prefixes for empty values
Daniel-Constantin Mierla [Fri, 4 Sep 2020 08:22:52 +0000 (10:22 +0200)]
pv: handle s.prefixes for empty values

- avoid crash due to invalid length of result, GH #2467

(cherry picked from commit e74b06c32bc2b090937350858f655af4ab89ff63)

15 months agoRevert "tls: support compilation without deprecated OpenSSL APIs"
Victor Seva [Wed, 2 Sep 2020 11:12:25 +0000 (13:12 +0200)]
Revert "tls: support compilation without deprecated OpenSSL APIs"

This reverts commit 10af8efa9061c2f52ee1db51c4cf665073c20dcc.

15 months agoRevert "tls: added define condition on version functions"
Victor Seva [Wed, 2 Sep 2020 11:12:06 +0000 (13:12 +0200)]
Revert "tls: added define condition on version functions"

This reverts commit 67979e07b63b574687b1924c38fabd724d0ad876.

15 months agoRevert "tls: proper ifdef on libssl version for tls_init_locks()"
Victor Seva [Wed, 2 Sep 2020 11:11:51 +0000 (13:11 +0200)]
Revert "tls: proper ifdef on libssl version for tls_init_locks()"

This reverts commit e9baba91c6c7e3d1817e8a07bbabbce3a8efbe79.

15 months agokamctl: regenerated dbtext version table records
Daniel-Constantin Mierla [Wed, 2 Sep 2020 11:11:40 +0000 (13:11 +0200)]
kamctl: regenerated dbtext version table records

- GH #2463

(cherry picked from commit 65f5d0ed0fb88f5312ac53f2faaa66a2098ce0d8)

15 months agodoc/stylesheets: set 0 for id column in dbtext version table records
Daniel-Constantin Mierla [Wed, 2 Sep 2020 11:11:18 +0000 (13:11 +0200)]
doc/stylesheets: set 0 for id column in dbtext version table records

(cherry picked from commit fcd3f257c12d2e17fa92007f9d149e4ee27ec994)

15 months agoChangeLog: content updated for v5.4.1 5.4.1
Daniel-Constantin Mierla [Tue, 1 Sep 2020 07:57:57 +0000 (09:57 +0200)]
ChangeLog: content updated for v5.4.1

15 months agoMakefile.defs: version set to 5.4.1
Daniel-Constantin Mierla [Tue, 1 Sep 2020 07:37:28 +0000 (09:37 +0200)]
Makefile.defs: version set to 5.4.1

15 months agopkg: version set to 5.4.1 for rpm and alpine specs
Daniel-Constantin Mierla [Tue, 1 Sep 2020 07:35:50 +0000 (09:35 +0200)]
pkg: version set to 5.4.1 for rpm and alpine specs

15 months agopkg/kamailio/deb: version set 5.4.1
Victor Seva [Tue, 1 Sep 2020 07:12:28 +0000 (09:12 +0200)]
pkg/kamailio/deb: version set 5.4.1