kamailio
6 months agoChangeLog: content updated for v5.4.6 5.4.6
Daniel-Constantin Mierla [Wed, 2 Jun 2021 09:27:34 +0000 (11:27 +0200)]
ChangeLog: content updated for v5.4.6

6 months agopkg/kamailio/deb: version set 5.4.6
Daniel-Constantin Mierla [Wed, 2 Jun 2021 09:23:35 +0000 (11:23 +0200)]
pkg/kamailio/deb: version set 5.4.6

6 months agoMakefile.defs: version set to 5.4.6
Daniel-Constantin Mierla [Wed, 2 Jun 2021 08:44:48 +0000 (10:44 +0200)]
Makefile.defs: version set to 5.4.6

6 months agopkg: version set to 5.4.6 for rpms and apline
Daniel-Constantin Mierla [Wed, 2 Jun 2021 08:12:15 +0000 (10:12 +0200)]
pkg: version set to 5.4.6 for rpms and apline

6 months agoasync: safety check for async ms list
Daniel-Constantin Mierla [Mon, 31 May 2021 15:23:42 +0000 (17:23 +0200)]
async: safety check for async ms list

(cherry picked from commit 5b0e74c1832d2d09fe36424e1e1aaaacde920b31)
(cherry picked from commit 93dc038f3f1f854b1e0987ec28e49d8a70293e19)

6 months agocore: parse via - fixed whitespacing
Daniel-Constantin Mierla [Mon, 31 May 2021 10:05:01 +0000 (12:05 +0200)]
core: parse via - fixed whitespacing

(cherry picked from commit 01664d1d82dcfe952fce29033b4fcd5e44cf2319)
(cherry picked from commit 19901d0cdb6cf06a84315c19a27986bca7a05025)

6 months agomtree: check if pv_count var is r/w
Daniel-Constantin Mierla [Fri, 28 May 2021 11:54:08 +0000 (13:54 +0200)]
mtree: check if pv_count var is r/w

- reported by GH #2750

(cherry picked from commit 63b0345207ba67fcc6290d6dfc55f99ba58b13c9)
(cherry picked from commit 7323d812dc4a39c0e60f11668e09a50ef586a8f7)

6 months agomtree: Fix some typos, adjust some formatting
Olle E. Johansson [Fri, 28 May 2021 07:38:31 +0000 (09:38 +0200)]
mtree: Fix some typos, adjust some formatting

(cherry picked from commit 316c80607243387015e35ac423238c5a32401a44)
(cherry picked from commit 3bfb1773c01731177824b907180a7eeb7e43d3af)

6 months agosnmpstats: Fix typo in MIB
Olle E. Johansson [Mon, 24 May 2021 06:26:18 +0000 (08:26 +0200)]
snmpstats: Fix typo in MIB

Reported by arkadiam on Github

(cherry picked from commit 7f017707c91659641ce9ca87ee4149b2e39379f7)
(cherry picked from commit dbd8e3899335eb8795763fd52b1f91aebfad1c92)

6 months agopv: more details in err log message for s.select parsing
Daniel-Constantin Mierla [Fri, 21 May 2021 06:40:21 +0000 (08:40 +0200)]
pv: more details in err log message for s.select parsing

(cherry picked from commit 02ad9e1b87f89b9456d0d85e16c2fe0cda67ab64)
(cherry picked from commit 2273d7d856b5c1fca1ec24fbb6ee249793ea6719)

6 months agosipdump: fixed typo
Sergey Safarov [Sat, 29 May 2021 17:41:53 +0000 (20:41 +0300)]
sipdump: fixed typo

(cherry picked from commit 7f226f5b08c93ed0a43113d7947730329ff7db38)

6 months agocore: xavp - safety checks for name len
Daniel-Constantin Mierla [Thu, 13 May 2021 15:41:40 +0000 (17:41 +0200)]
core: xavp - safety checks for name len

(cherry picked from commit d22d812da1c3b2a2f65f142ef5ed5fa07e8ab072)
(cherry picked from commit 6a5a61bfab80116338f6a9c91ed7ec5f7b98923b)

6 months agopresence: set correct type for local_log_facility modparam
Daniel-Constantin Mierla [Wed, 12 May 2021 16:14:29 +0000 (18:14 +0200)]
presence: set correct type for local_log_facility modparam

(cherry picked from commit 5f4662a95a97d5224bf03745a9a354a41925706c)
(cherry picked from commit 5bc7e1d636b617839f697838e326347b19cb0fcc)

6 months agodialog: ignore 408 on keepalive with cseq 0
Daniel-Constantin Mierla [Thu, 6 May 2021 10:27:05 +0000 (12:27 +0200)]
dialog: ignore 408 on keepalive with cseq 0

- some UAs do not reply at all

(cherry picked from commit 7aa8056a5e3a9804133cb9ff79640d8116be63da)
(cherry picked from commit 6d71c9399027f2ed41cd6eae576d862440bd4fd4)

6 months agotls: declare variable based on SSL_CTX_set_ecdh_auto
Daniel-Constantin Mierla [Fri, 30 Apr 2021 06:53:47 +0000 (08:53 +0200)]
tls: declare variable based on SSL_CTX_set_ecdh_auto

- fix unused variable warning introduced in previous commit

(cherry picked from commit 41b5e9473d79409712d46fdbb5a0b943ab880aa7)
(cherry picked from commit 52c7d2f4d6704c7ea232808110fc09c17c90c4db)

6 months agomsrp: destroy str array on error
Daniel-Constantin Mierla [Fri, 30 Apr 2021 06:03:10 +0000 (08:03 +0200)]
msrp: destroy str array on error

- some code reformatting

(cherry picked from commit 4695b48b23e22135049f67a6ef362e933a0cf337)
(cherry picked from commit 33cf417e59b4c7f0e45b6258644bae364ad2e912)

6 months ago[tls] Don't use OpenSSL<1.0.2 fallback on 1.1+
SPChan [Tue, 27 Apr 2021 16:51:22 +0000 (00:51 +0800)]
[tls] Don't use OpenSSL<1.0.2 fallback on 1.1+

Address GH #2716. Also see https://bugs.python.org/issue29697.

(cherry picked from commit 27904530d1f8efd26e2b96fa5f18a3aad887919b)
(cherry picked from commit 1c7a8459f1a5b0f4d96f3908a301b599d5e24dc3)

6 months agomsrp: check return code for str explode
Daniel-Constantin Mierla [Thu, 29 Apr 2021 04:56:50 +0000 (06:56 +0200)]
msrp: check return code for str explode

(cherry picked from commit addb6a88d0266a0bb0545077fb0b5b8a3fdcca8e)
(cherry picked from commit e55ecc6412997b55569f3b626a681eae0ca312df)

6 months agocore/mem: q_malloc - use #else with DBG_QM_MALLOC for debug on freed fragments
Daniel-Constantin Mierla [Mon, 26 Apr 2021 09:22:20 +0000 (11:22 +0200)]
core/mem: q_malloc - use #else with DBG_QM_MALLOC for debug on freed fragments

(cherry picked from commit 764d5be0c44036bb4b86f841588fb0df3b4bb834)
(cherry picked from commit fc90e4c06c5df8c8a9d5cd615923c09a93b5a810)

6 months agodispatcher: docs - set xmlns for include tags
Daniel-Constantin Mierla [Tue, 27 Apr 2021 07:59:29 +0000 (09:59 +0200)]
dispatcher: docs - set xmlns for include tags

(cherry picked from commit 3f25ef01c5cc3adb02dd1bfecdfd4c3ce80cef47)
(cherry picked from commit 6b9ecb0856a881144546fea6d3cbd8a3dc668b81)

6 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Tue, 18 May 2021 19:31:33 +0000 (21:31 +0200)]
modules: readme files regenerated - modules ... [skip ci]

6 months agoxhttp_prom: fix small copy/paste typo in documentation
Ovidiu Sas [Tue, 18 May 2021 19:00:23 +0000 (15:00 -0400)]
xhttp_prom: fix small copy/paste typo in documentation

(cherry picked from commit 2967a41f5537df81745a71226ba9e793ccbdd453)

6 months agotm: lw parser - fix matching To header in lw_get_hf_name()
Daniel-Constantin Mierla [Wed, 5 May 2021 16:56:04 +0000 (18:56 +0200)]
tm: lw parser - fix matching To header in lw_get_hf_name()

(cherry picked from commit 4ab6e05df56afb7802a2cd125e89b9282a1c6c85)
(cherry picked from commit 33db4ffc558b7a9d4c291c929b9e73b3cf8b16f0)

7 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Mon, 3 May 2021 23:01:22 +0000 (01:01 +0200)]
modules: readme files regenerated - modules ... [skip ci]

7 months agosiputils: update docs for encode/decode_contact functions
Ovidiu Sas [Mon, 3 May 2021 22:20:05 +0000 (18:20 -0400)]
siputils: update docs for encode/decode_contact functions

(cherry picked from commit bf73b0d72177828e3c35f0fe318f7ef654c89b6b)

7 months agodispatcher: safety to avoid division by 0 for latency operations
Daniel-Constantin Mierla [Thu, 29 Apr 2021 12:50:12 +0000 (14:50 +0200)]
dispatcher: safety to avoid division by 0 for latency operations

- manual backporting of cf105d5af78963759825f5eaf9feb767c047a49c

7 months agocore: usr avp - fix detection of invalid name and ids
Daniel-Constantin Mierla [Fri, 16 Apr 2021 07:44:24 +0000 (09:44 +0200)]
core: usr avp - fix detection of invalid name and ids

- use the fields designated for str name or int id, code analyzers can
follow properly the execution path
- regression introduced in ca1821837dfe7dd6630f628d968ed4d1178c7040

(cherry picked from commit e4506385ca5a56d4861f36e85c1049599cba398f)

7 months agoChangeLog: content updated for v5.4.5 5.4.5
Daniel-Constantin Mierla [Thu, 15 Apr 2021 10:23:40 +0000 (12:23 +0200)]
ChangeLog: content updated for v5.4.5

7 months agoMakefile.defs: version set to 5.4.5
Daniel-Constantin Mierla [Thu, 15 Apr 2021 09:57:50 +0000 (11:57 +0200)]
Makefile.defs: version set to 5.4.5

7 months agocore: main - set ending 0 in allocated cfg file path
Daniel-Constantin Mierla [Thu, 15 Apr 2021 08:28:24 +0000 (10:28 +0200)]
core: main - set ending 0 in allocated cfg file path

(cherry picked from commit 15f57ceae26b967ad92dd3a97ebcd869d1197244)

7 months agopkg/kamailio/deb: version set 5.4.5
Victor Seva [Thu, 15 Apr 2021 07:51:16 +0000 (09:51 +0200)]
pkg/kamailio/deb: version set 5.4.5

7 months agopkg/kamailio: version set to 5.4.5 for rpm specs and alpine
Daniel-Constantin Mierla [Thu, 15 Apr 2021 07:41:16 +0000 (09:41 +0200)]
pkg/kamailio: version set to 5.4.5 for rpm specs and alpine

7 months agocore: resolve - safety check for setting port
Daniel-Constantin Mierla [Thu, 15 Apr 2021 06:32:38 +0000 (08:32 +0200)]
core: resolve - safety check for setting port

(cherry picked from commit 703d6202e73e4e3778a2c66f4e29ae87dc6ac211)

7 months agocore: updated onsend_route_enabled() macro condtition
Daniel-Constantin Mierla [Wed, 14 Apr 2021 13:14:10 +0000 (15:14 +0200)]
core: updated onsend_route_enabled() macro condtition

- detect when the kemi callbacks need to be executed for tm replies

(cherry picked from commit 0640645efdbc1f7ce36750d5a784a4cfedc3f02f)

7 months agoseas: check when walking the list
Daniel-Constantin Mierla [Wed, 14 Apr 2021 10:52:58 +0000 (12:52 +0200)]
seas: check when walking the list

(cherry picked from commit 7231be0785009cb17581822f0765985eb7bdb243)

7 months agoavp: check for null string
Daniel-Constantin Mierla [Wed, 14 Apr 2021 10:50:36 +0000 (12:50 +0200)]
avp: check for null string

(cherry picked from commit c30cd3db7587a3c875770fbc558f4a5ad38b58bd)

7 months agoimc: safety checks for function parameters
Daniel-Constantin Mierla [Wed, 14 Apr 2021 10:40:19 +0000 (12:40 +0200)]
imc: safety checks for function parameters

(cherry picked from commit 6c8d61850aa662016d952f25dc510ed4d602e10c)

7 months agogroup: check if credentials are parsed
Daniel-Constantin Mierla [Tue, 13 Apr 2021 08:21:39 +0000 (10:21 +0200)]
group: check if credentials are parsed

(cherry picked from commit e84c1985f1c3ed7a791660702b398b9ac1eb1f4a)

7 months agosca: return on rpc fault
Daniel-Constantin Mierla [Tue, 13 Apr 2021 07:50:46 +0000 (09:50 +0200)]
sca: return on rpc fault

(cherry picked from commit 005f4468bc5873ea02b6c0d3d75baa49067e17c9)

7 months agopike: safety check for ll variable
Daniel-Constantin Mierla [Tue, 13 Apr 2021 07:50:07 +0000 (09:50 +0200)]
pike: safety check for ll variable

(cherry picked from commit b123dec934769522407dad619bbb6c2074719884)

7 months agodb_text: safety check for lres
Daniel-Constantin Mierla [Tue, 13 Apr 2021 07:15:10 +0000 (09:15 +0200)]
db_text: safety check for lres

(cherry picked from commit 8a5b764e77d009eb6f236e74d3462bfce0d57f07)

7 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Tue, 13 Apr 2021 07:16:23 +0000 (09:16 +0200)]
modules: readme files regenerated - modules ... [skip ci]

7 months agocore: dns - safety checks for port and proto
Daniel-Constantin Mierla [Sun, 11 Apr 2021 07:09:24 +0000 (09:09 +0200)]
core: dns - safety checks for port and proto

(cherry picked from commit 6d46ec71f941b9db9c06c6c2edac14fc9f3d1074)

7 months agopike: safety check for null node
Daniel-Constantin Mierla [Sat, 10 Apr 2021 09:21:09 +0000 (11:21 +0200)]
pike: safety check for null node

(cherry picked from commit c9dc0336a33a0ecfe776975be7fbfab8f3c91b48)

7 months agopua_dialoginfo: check request to cover cases of callbacks without it
Daniel-Constantin Mierla [Fri, 9 Apr 2021 16:51:42 +0000 (18:51 +0200)]
pua_dialoginfo: check request to cover cases of callbacks without it

- updates the previous commit

(cherry picked from commit 912e2ef41533e961bc55ca80619305af8e474469)

7 months agodialog: safety check for prev field
Daniel-Constantin Mierla [Fri, 9 Apr 2021 15:18:54 +0000 (17:18 +0200)]
dialog: safety check for prev field

(cherry picked from commit 80beb29ac0204697a8964231b441ac37866a4a1c)

7 months agosiptrace: fallback to udp if send sock is not set
Daniel-Constantin Mierla [Fri, 9 Apr 2021 14:37:30 +0000 (16:37 +0200)]
siptrace: fallback to udp if send sock is not set

(cherry picked from commit a5f8810223021939b12eb0d04fc625f8d36980f7)

7 months agocore: cfg ctx - checks for valid variable offset
Daniel-Constantin Mierla [Fri, 9 Apr 2021 14:23:28 +0000 (16:23 +0200)]
core: cfg ctx - checks for valid variable offset

(cherry picked from commit 303be6a94be40dbe7c26c96e768627e8e9d0f860)

7 months agorr: conditions adjustmets for append from tag in record route preset
Daniel-Constantin Mierla [Thu, 8 Apr 2021 11:19:17 +0000 (13:19 +0200)]
rr: conditions adjustmets for append from tag in record route preset

(cherry picked from commit 42d90d3665256c3d38945193b0a14ad199221bc6)

7 months agonat_traversal: check parameter for send_keepalive()
Daniel-Constantin Mierla [Thu, 8 Apr 2021 10:05:07 +0000 (12:05 +0200)]
nat_traversal: check parameter for send_keepalive()

(cherry picked from commit f33abd5e2d5978ba9e6e8a48066b0daff70c0b3b)

7 months agortpengine: reworked condition around locking for easier pairing
Daniel-Constantin Mierla [Thu, 8 Apr 2021 09:54:33 +0000 (11:54 +0200)]
rtpengine: reworked condition around locking for easier pairing

- inside rtpengine_hash_table_insert()

(cherry picked from commit c200d2e9109a5581491bebd91c30162716b0f4fa)

7 months agocore: dns cache - safety checks for rdata field
Daniel-Constantin Mierla [Thu, 8 Apr 2021 09:37:08 +0000 (11:37 +0200)]
core: dns cache - safety checks for rdata field

(cherry picked from commit 7ea3b97c8acf8b623563b7a9fbf4ba23ea3e9170)

7 months agotm: t_fifo.c - free app in case of error
Daniel-Constantin Mierla [Thu, 8 Apr 2021 09:25:05 +0000 (11:25 +0200)]
tm: t_fifo.c - free app in case of error

(cherry picked from commit 9c7a509f7189de8ce600a97b7c1c5f9e4f5afdb1)

7 months agocore: main - coherent behaviour for fix_cfg_file()
Daniel-Constantin Mierla [Thu, 8 Apr 2021 07:38:48 +0000 (09:38 +0200)]
core: main - coherent behaviour for fix_cfg_file()

- duplicate to build the output always, safer not to try to change the
static string defined via macro at runtime

(cherry picked from commit 74fa6c5570d6394af8c5352bd37e21e970f1575c)

7 months agodlgs: safety check for accessing next field
Daniel-Constantin Mierla [Thu, 8 Apr 2021 07:36:49 +0000 (09:36 +0200)]
dlgs: safety check for accessing next field

(cherry picked from commit 7dd643a88fd7944ee86b795298c76e6d5fd58b8f)

7 months agocore: cfg.lex - free after log message
Daniel-Constantin Mierla [Thu, 8 Apr 2021 07:36:02 +0000 (09:36 +0200)]
core: cfg.lex - free after log message

(cherry picked from commit 563c6f69aef22a90fc7870398fcfbd4242e33779)

7 months agocore: check for non empty receive address and port in msg translator
Daniel-Constantin Mierla [Wed, 7 Apr 2021 09:33:24 +0000 (11:33 +0200)]
core: check for non empty receive address and port in msg translator

(cherry picked from commit 7ef0a272dc9c81afa05ef8b1591e9f05c2810e9a)

7 months agoapp_sqlang: init timeval structures
Daniel-Constantin Mierla [Wed, 7 Apr 2021 08:29:25 +0000 (10:29 +0200)]
app_sqlang: init timeval structures

(cherry picked from commit e8583372cb1078a29bb6526c11f838e30811b94a)

7 months agoapp_ruby: init timeval structures
Daniel-Constantin Mierla [Wed, 7 Apr 2021 08:29:24 +0000 (10:29 +0200)]
app_ruby: init timeval structures

(cherry picked from commit 50f92131ac0a9f5dd1e19fb6e3636657ad996e37)

7 months agoapp_python3: init timeval structures
Daniel-Constantin Mierla [Wed, 7 Apr 2021 08:29:24 +0000 (10:29 +0200)]
app_python3: init timeval structures

(cherry picked from commit 7457b3cefd08595c054291398de0f9a4e62691b7)

7 months agoapp_python: init timeval structures
Daniel-Constantin Mierla [Wed, 7 Apr 2021 08:29:24 +0000 (10:29 +0200)]
app_python: init timeval structures

(cherry picked from commit 97991c9cf56ca034df914ae499053e597582ef80)

7 months agoapp_lua: init timeval structures
Daniel-Constantin Mierla [Wed, 7 Apr 2021 08:29:24 +0000 (10:29 +0200)]
app_lua: init timeval structures

(cherry picked from commit e1369a4cf0c668a0ee40d3b84b9c6382c2168e49)

7 months agoapp_jsdt: init timeval structures
Daniel-Constantin Mierla [Wed, 7 Apr 2021 08:29:24 +0000 (10:29 +0200)]
app_jsdt: init timeval structures

(cherry picked from commit cad5cc37c63477fbcf429af34e516b523c74132e)

7 months agoctl: free send_buf in case of error
Daniel-Constantin Mierla [Wed, 7 Apr 2021 08:08:56 +0000 (10:08 +0200)]
ctl: free send_buf in case of error

- disabled unused function

(cherry picked from commit 3bb1a30dda3b40ba2f188a4baab94ebda41f4a74)

7 months agocore: use same condition for extra_params in create_via_hf()
Daniel-Constantin Mierla [Wed, 7 Apr 2021 07:53:39 +0000 (09:53 +0200)]
core: use same condition for extra_params in create_via_hf()

(cherry picked from commit 62e822ce25e93a8183dd9e5e1fee517143849a6a)

7 months agocore: rvalue - link to free at end of rve_opt_01() instead on replace
Daniel-Constantin Mierla [Tue, 6 Apr 2021 15:23:16 +0000 (17:23 +0200)]
core: rvalue - link to free at end of rve_opt_01() instead on replace

- debug mode messages print fields

(cherry picked from commit 7652f79640b3e792baa77531e697fd74a1ab4584)

7 months agocore: rvalue - function to destroy content of rval without freeing it
Daniel-Constantin Mierla [Tue, 6 Apr 2021 13:23:21 +0000 (15:23 +0200)]
core: rvalue - function to destroy content of rval without freeing it

- needed in case of rval reuse in rve_replace_with_val()

(cherry picked from commit e770e0aa6889f001a3f7f2644202bf106f6559da)

7 months agocore: main - several optarg safety checks
Daniel-Constantin Mierla [Tue, 6 Apr 2021 12:48:34 +0000 (14:48 +0200)]
core: main - several optarg safety checks

(cherry picked from commit 4f7b5537688293d196669dd5a7d0124f7656cf2d)

7 months agouac: do not free chunks already inserted as lumps
Daniel-Constantin Mierla [Tue, 6 Apr 2021 10:17:35 +0000 (12:17 +0200)]
uac: do not free chunks already inserted as lumps

- in case of errors happening later, the pointers are linked in
sip_msg_t and will be freed there, otherwise will result in a double
free

(cherry picked from commit 26ab0fcc97cbf0d6602454e60187a914f13424a2)

7 months agotm: init timeval structs
Daniel-Constantin Mierla [Mon, 5 Apr 2021 16:06:01 +0000 (18:06 +0200)]
tm: init timeval structs

(cherry picked from commit a749cc53ac4aa4825ba8d720825db856d897efb2)

7 months agoimc: expect the second param only if first is set
Daniel-Constantin Mierla [Mon, 5 Apr 2021 15:35:12 +0000 (17:35 +0200)]
imc: expect the second param only if first is set

- bits of formatting for imc_handle_create()

(cherry picked from commit c08620f6427d59749396fe2762e340328ce69c41)

7 months agocore: cfg.len - sanitizer safety check of target buffer
Daniel-Constantin Mierla [Mon, 5 Apr 2021 15:31:48 +0000 (17:31 +0200)]
core: cfg.len - sanitizer safety check of target buffer

(cherry picked from commit ef31c82ac3bd7972c2d02c893f8041af4664b717)

7 months agocore: fixed condition for 0 ID or NULL NAME AVP
Daniel-Constantin Mierla [Mon, 5 Apr 2021 15:23:59 +0000 (17:23 +0200)]
core: fixed condition for 0 ID or NULL NAME AVP

- avoid null in memcpy for AVP_NAME_STR

(cherry picked from commit ca1821837dfe7dd6630f628d968ed4d1178c7040)

7 months ago.gitignore: ignore files that can be generated by compiling tools
Daniel-Constantin Mierla [Mon, 5 Apr 2021 10:05:53 +0000 (12:05 +0200)]
.gitignore: ignore files that can be generated by compiling tools

(cherry picked from commit 1536f4bb3d4e654c8169afb6599c47c26df12ef6)

7 months agocore: init allocated memory in str_hash_alloc()
Daniel-Constantin Mierla [Mon, 5 Apr 2021 10:02:20 +0000 (12:02 +0200)]
core: init allocated memory in str_hash_alloc()

- removed unused pointer shifting in dset.c
- small reworking of lval_assign()

(cherry picked from commit ba9f2b5af9cabd61f67ceedb8feab6bd7bc6526d)

7 months agopua_dialoginfo: skip requests that do not control call state
Daniel-Constantin Mierla [Sat, 3 Apr 2021 05:56:40 +0000 (07:56 +0200)]
pua_dialoginfo: skip requests that do not control call state

- GH #2700

(cherry picked from commit 1b47452cebb1b7866cbbabd5068a9ff4a39c86d2)

7 months agocore: parse uri - check for invalid port values
Daniel-Constantin Mierla [Sat, 3 Apr 2021 05:55:11 +0000 (07:55 +0200)]
core: parse uri - check for invalid port values

(cherry picked from commit b7f753ddc727e1d7ab42e7abe607059e03976f8d)

7 months agocore: parse uri - cast to unsigned for left shifting
Daniel-Constantin Mierla [Fri, 2 Apr 2021 07:37:21 +0000 (09:37 +0200)]
core: parse uri - cast to unsigned for left shifting

(cherry picked from commit d4e31e6ae494836c49e50f463517a576b18c5611)

7 months agotextopsx: docs - notes about 1-based indexing for hf value functions
Daniel-Constantin Mierla [Wed, 31 Mar 2021 14:05:52 +0000 (16:05 +0200)]
textopsx: docs - notes about 1-based indexing for hf value functions

- GH #2387

(cherry picked from commit 6379f1280ba41e87ddb34fa1705ffe4231dcac9c)

7 months agopath: removed svn id header
Daniel-Constantin Mierla [Mon, 29 Mar 2021 13:04:38 +0000 (15:04 +0200)]
path: removed svn id header

(cherry picked from commit 0f0a56ad5c97a611fab64fc9b9eba304643dcec8)

8 months agopath: set dst udp uri length for decoding received value in alias format
Daniel-Constantin Mierla [Tue, 30 Mar 2021 09:58:53 +0000 (11:58 +0200)]
path: set dst udp uri length for decoding received value in alias format

(cherry picked from commit f90640f7cec45a359e996493ae91b1a45d2603e7)

8 months agocarrierroute: replace faulty warning mechanism
Lucian Balaceanu [Fri, 12 Mar 2021 14:55:02 +0000 (16:55 +0200)]
carrierroute: replace faulty warning mechanism

- warning log for the same carrier/domain having routes with only 0 probability
is now triggered through counting probabilities per carrier and domain
- kudos also go to Huseyin Dikme
- GH #2653

(cherry picked from commit 087c00a276623adad6b87242bc58f7c0b4d8ff33)

8 months agocore: use third array element when generating totag suffix
Charles Chance [Mon, 29 Mar 2021 20:43:30 +0000 (21:43 +0100)]
core: use third array element when generating totag suffix

(cherry picked from commit 895208ebb0f999365ded50a9ecfc0fb2ed2b1e01)

8 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Mon, 29 Mar 2021 08:46:39 +0000 (10:46 +0200)]
modules: readme files regenerated - modules ... [skip ci]

8 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
- forward porting from 5.3

(cherry picked from commit 070a9c042a1caf19162d3d97b26f8d7548747cbb)
(cherry picked from commit a76f06eb010765216450bd78bcc1040aa9902280)

8 months agopv: use unsigned for safer non-ascii bit shifting for hexa
Daniel-Constantin Mierla [Sat, 27 Mar 2021 13:43:05 +0000 (14:43 +0100)]
pv: use unsigned for safer non-ascii bit shifting for hexa

- related to GH #2690

(cherry picked from commit c331e6dddb238abe5fc832ce3d3934fbe56ad2f7)

8 months agocore: use unsigned for safer non-ascii bit shifting for hexa
Daniel-Constantin Mierla [Sat, 27 Mar 2021 13:37:03 +0000 (14:37 +0100)]
core: use unsigned for safer non-ascii bit shifting for hexa

(cherry picked from commit 9efe1e0c32ae43d67240d6a97306e3cff61c3c55)

8 months agoacc_diameter: init variables for safer cleanup
Daniel-Constantin Mierla [Fri, 26 Mar 2021 12:19:03 +0000 (13:19 +0100)]
acc_diameter: init variables for safer cleanup

(cherry picked from commit 5c48d437935e971482c9bbf41f067d120911e2c8)

8 months agosiptrace: properly terminate logs with '\n'
Ovidiu Sas [Wed, 24 Mar 2021 23:35:11 +0000 (19:35 -0400)]
siptrace: properly terminate logs with '\n'

(cherry picked from commit 5ac49634c18955ffedd0ad909d2199e5881905c6)

8 months agortpengine: fix typo in docs
Richard Fuchs [Wed, 24 Mar 2021 20:12:13 +0000 (16:12 -0400)]
rtpengine: fix typo in docs

(cherry picked from commit 5cc888f0e9e305734621c0db1f63a47f2f0c381a)

8 months agopv: docs - relocated shvset note outside of param definition details [skip ci]
Daniel-Constantin Mierla [Wed, 24 Mar 2021 09:19:51 +0000 (10:19 +0100)]
pv: docs - relocated shvset note outside of param definition details [skip ci]

(cherry picked from commit c959a3c5f5efa1158bd53a31476f33d080793928)

8 months agopv: docs - note about use of $shv() in kemi scripts for shvset param [skip ci]
Daniel-Constantin Mierla [Wed, 24 Mar 2021 08:46:53 +0000 (09:46 +0100)]
pv: docs - note about use of $shv() in kemi scripts for shvset param [skip ci]

(cherry picked from commit bcc6370cdc00f25ce3d0f29e168c20ca880dcda2)

8 months agosiptrace: renamed SREV_NET_DATA_SEND to SREV_NET_DATA_SENT
Daniel-Constantin Mierla [Wed, 24 Mar 2021 08:05:55 +0000 (09:05 +0100)]
siptrace: renamed SREV_NET_DATA_SEND to SREV_NET_DATA_SENT

(cherry picked from commit e1570a115f99c896d3703b756fe95cc28e0cb7d5)

8 months agocore: events - rename SREV_NET_DATA_SEND to SREV_NET_DATA_SENT
Daniel-Constantin Mierla [Wed, 24 Mar 2021 08:04:38 +0000 (09:04 +0100)]
core: events - rename SREV_NET_DATA_SEND to SREV_NET_DATA_SENT

- reflects better the purpose, being executed after the message is sent

(cherry picked from commit 93df5a5241f57ffb71dad0b0df04a256b7b0b7b4)

8 months agocore: comments updated for msg_send_buffer()
Daniel-Constantin Mierla [Tue, 23 Mar 2021 16:50:23 +0000 (17:50 +0100)]
core: comments updated for msg_send_buffer()

(cherry picked from commit 9c2c4bafa0f0cd980b5867e7d4c0995255730f87)

8 months agoapp_lua: Fixed error 'too many parameters'
Miteshkumar Thakkar [Tue, 23 Mar 2021 15:05:20 +0000 (20:35 +0530)]
app_lua: Fixed error 'too many parameters'

- Calling function KSR.secsipid.secsipid_add_identity() has six parameters, is giving error 'too many parameters'

(cherry picked from commit 5460949614c92c7dbfb7f63274540500f2a69d5b)

8 months agonathelper: small spelling fixes
Henning Westerholt [Mon, 22 Mar 2021 19:51:32 +0000 (19:51 +0000)]
nathelper: small spelling fixes

(cherry picked from commit 46dee155ee10a2f11ecfd41b103f92752042c5ec)

8 months agortpengine: remove square brackets from IPv6 address for getaddrinfo function
Dennis Yurasov [Sun, 21 Mar 2021 14:45:04 +0000 (17:45 +0300)]
rtpengine: remove square brackets from IPv6 address for getaddrinfo function

- After loading from DB rn_address is in form: [x:x:x:x:x:x:x:x]:nnnn, getaddrinfo function expect ipv6 in node argument without square brackets, otherwise, the argument is interpreted as FQDN.

(cherry picked from commit 491d1261e04e09f13990d5062c21faca7eb32b37)

8 months agosmsops: fix parsing of validity period
Aleksandar Yosifov [Wed, 17 Mar 2021 10:45:20 +0000 (12:45 +0200)]
smsops: fix parsing of validity period

- Validity period is present only for SUBMIT
msg type and it is an optional parameter.
For now supports only Relative VP format.

(cherry picked from commit c4b1d0ab700ea03869114d08daa78ab6a6a56b96)

8 months agopresence: do not init db in dmq worker for in-memory only mode
Daniel-Constantin Mierla [Fri, 12 Mar 2021 14:30:49 +0000 (15:30 +0100)]
presence: do not init db in dmq worker for in-memory only mode

- GH #2642

(cherry picked from commit 2b475553ef77f63cb444c34ad6c2df0ea237c88b)