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

13 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

13 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

13 months agoregistrar: documented lookup_to_dset() cfg function [skip ci]
Daniel-Constantin Mierla [Fri, 12 Mar 2021 08:02:17 +0000 (09:02 +0100)]
registrar: documented lookup_to_dset() cfg function [skip ci]

- function available for long time, but somehow was not documented
- GH #2623

(cherry picked from commit 56cdf70ea008b5401bdd7d1824f15788f85fc6fa)

13 months agouac: exposed uac_auth_mode() also as uac_mode([mode]) to match docs
Daniel-Constantin Mierla [Thu, 11 Mar 2021 17:39:46 +0000 (18:39 +0100)]
uac: exposed uac_auth_mode() also as uac_mode([mode]) to match docs

(cherry picked from commit bb1fe2fc12cb0499c5242c220dd8065e83fe6e61)

13 months agouac: docs - listed uac_auth_mode() function
Daniel-Constantin Mierla [Thu, 11 Mar 2021 17:39:16 +0000 (18:39 +0100)]
uac: docs - listed uac_auth_mode() function

(cherry picked from commit be4e1843c54e70206688c1f2d1f5483165baef8f)

13 months agotm: log message if starting cancel retransmission fails
Daniel-Constantin Mierla [Thu, 11 Mar 2021 16:28:09 +0000 (17:28 +0100)]
tm: log message if starting cancel retransmission fails

(cherry picked from commit afe84defa4ab391064c266e15f557415c5249f7c)

13 months ago cplc: permanent contact not skipped by lookup anymore
easyrider14 [Wed, 10 Mar 2021 09:54:25 +0000 (10:54 +0100)]
 cplc: permanent contact not skipped by lookup anymore

- a permanently registered contact has an "expires" value of 0 in usrloc
  when processing lookup, cplc module checks that contacts are not expired by
  checking that the "expires" value of the contact is not lower than current
  time
  as a consequence, permanently registered contact are alsways skipped and
  never targeted

(cherry picked from commit 525ee139abcb45f71bda42b417b5f8e75c12a622)

13 months agortp_media_server: Makefile - removed unnecessary DEFS+=-DKAMAILIO_MOD_INTERFACE
Daniel-Constantin Mierla [Tue, 9 Mar 2021 11:41:37 +0000 (12:41 +0100)]
rtp_media_server: Makefile - removed unnecessary DEFS+=-DKAMAILIO_MOD_INTERFACE

(cherry picked from commit 7532f864cb9698aff95b9023bc9ff6959a41fd3f)

13 months agousrloc: adjusted rpc reply text when the location domain table is not found
Daniel-Constantin Mierla [Tue, 9 Mar 2021 11:27:10 +0000 (12:27 +0100)]
usrloc: adjusted rpc reply text when the location domain table is not found

(cherry picked from commit d3a36ed6757eeda42dc32608a63b857ee9a67bb9)

13 months agopv: handle missing fields (otcid, instance) for $banch() and $sbranch()
Daniel-Constantin Mierla [Tue, 9 Mar 2021 10:38:26 +0000 (11:38 +0100)]
pv: handle missing fields (otcid, instance) for $banch() and $sbranch()

(cherry picked from commit 0c4becd70428ef15be76fb0aa53932e5803c6bd0)

13 months agotextops: docs - note about search() doing posix regex matching
Daniel-Constantin Mierla [Wed, 3 Mar 2021 16:49:32 +0000 (17:49 +0100)]
textops: docs - note about search() doing posix regex matching

(cherry picked from commit 0cbee55284c4f4d5fef09a3185de31d04776e569)

13 months agoims_diameter_server: fix check for addAVPsfromJSON return code
Riccardo Villa [Wed, 24 Feb 2021 08:56:44 +0000 (09:56 +0100)]
ims_diameter_server: fix check for addAVPsfromJSON return code

(cherry picked from commit 88d38bd306f595585af6e972ac529b40d7a93b58)

13 months agoims_diameter_server: drop cdp session to avoid deadlock
Riccardo Villa [Wed, 24 Feb 2021 08:55:46 +0000 (09:55 +0100)]
ims_diameter_server: drop cdp session to avoid deadlock

(cherry picked from commit 84c342277f2a73196cb377476f2b80e6b4085e7b)

13 months agoims_diameter_server: fix initialization of s_message
Riccardo Villa [Wed, 24 Feb 2021 08:54:47 +0000 (09:54 +0100)]
ims_diameter_server: fix initialization of s_message

(cherry picked from commit faf1edabf732af5a24ad0399098ad11e27b3a1ab)

13 months agoims_diameter_server: check response is not null before json conversion
Riccardo Villa [Wed, 24 Feb 2021 08:52:59 +0000 (09:52 +0100)]
ims_diameter_server: check response is not null before json conversion

(cherry picked from commit 6968f1df9e9d3d66810df910d290f3d9368255fe)

13 months agoxmlrpc: fixed error assigning to str variable added by previous commit
Daniel-Constantin Mierla [Tue, 2 Mar 2021 07:20:12 +0000 (08:20 +0100)]
xmlrpc: fixed error assigning to str variable added by previous commit

(cherry picked from commit 4c6715b5e4a0938ece2937a787c6d2ed6e81a3d8)

13 months agoctl: handle null char* and str* values everywhere
Daniel-Constantin Mierla [Mon, 1 Mar 2021 18:14:34 +0000 (19:14 +0100)]
ctl: handle null char* and str* values everywhere

- not all cases were covered

(cherry picked from commit fa0d2f05ad5124f6166a0384265a827187c6c83f)

13 months agoxmlrpc: use <nil/> for null string values
Daniel-Constantin Mierla [Mon, 1 Mar 2021 17:47:42 +0000 (18:47 +0100)]
xmlrpc: use <nil/> for null string values

- XML-RPC extension listed at https://en.wikipedia.org/wiki/XML-RPC#Data_types

(cherry picked from commit 17b9a6add82781f71b4d84da7c804e0e72c8b026)

13 months agotopos: one more update to enable processing ofr 100
Daniel-Constantin Mierla [Mon, 1 Mar 2021 17:16:00 +0000 (18:16 +0100)]
topos: one more update to enable processing ofr 100

(cherry picked from commit 620194165e0c6c27dfe9dbe382dc2e7b58be13b5)

13 months agotopos: handle 100 response completely
Daniel-Constantin Mierla [Mon, 1 Mar 2021 16:19:03 +0000 (17:19 +0100)]
topos: handle 100 response completely

- it may be needed by other modules to be processed with all via stack

(cherry picked from commit 80e812caf83a131c5f830b7d23de754136fd54f7)

13 months agoipops: proper handling of return code for ip to buf conversion
Daniel-Constantin Mierla [Mon, 29 Mar 2021 07:56:36 +0000 (09:56 +0200)]
ipops: proper handling of return code for ip to buf conversion

- reported in GH #2695

(cherry picked from commit 1d7d78c31eeab717c7013a00650d3cb07895bac8)

14 months agohttp_async_client: fix build with older versionss of libcurl
Victor Seva [Tue, 23 Mar 2021 10:30:18 +0000 (11:30 +0100)]
http_async_client: fix build with older versionss of libcurl

* CURLPIPE_NOTHING was introduced at libcurl 7.43.0

(cherry picked from commit d82d95a824d6f8a6c0246b78ac6642d4d6fed9e1)

14 months agohttp_async_client: disable HTTP/2 multiplexing
Federico Cabiddu [Sun, 21 Mar 2021 16:50:01 +0000 (17:50 +0100)]
http_async_client: disable HTTP/2 multiplexing

14 months agomangler: 0-ending value on deconding uri
Daniel-Constantin Mierla [Tue, 16 Mar 2021 08:37:58 +0000 (09:37 +0100)]
mangler: 0-ending value on deconding uri

(cherry picked from commit 3b038ed6761a5818441a7610a8305491aa358377)

14 months agosiputils: 0-ending value on deconding uri
Daniel-Constantin Mierla [Tue, 16 Mar 2021 08:37:14 +0000 (09:37 +0100)]
siputils: 0-ending value on deconding uri

(cherry picked from commit 735911fcced21eb5c66393045bc143bd953d08bb)

14 months agopv_headers: fix detection of split marker
Victor Seva [Wed, 10 Mar 2021 17:36:18 +0000 (18:36 +0100)]
pv_headers: fix detection of split marker

If we set Diversion in split_headers and we get a header like
> "RULTEST, normalaa" <sip:0046341355354340@whatever.net;user=phone>;reason=unconditional

There was false detection of two Diversion headers.

Skip split marker between double quotes to avoid this

(cherry picked from commit c05c7133a5657a547a5b0ced0b0a05707b44bc06)

14 months agoctl: info log messages made debug
Daniel-Constantin Mierla [Fri, 5 Mar 2021 06:32:47 +0000 (07:32 +0100)]
ctl: info log messages made debug

- used to troubleshoot infite loop on shut down phase
- GH #2661

(cherry picked from commit 38acfb59dde232b1a9f0ffc206fb46b320cd8e10)

14 months agoims_charging: renamed str_list_t to str_htlist_t
Daniel-Constantin Mierla [Wed, 3 Mar 2021 08:16:38 +0000 (09:16 +0100)]
ims_charging: renamed str_list_t to str_htlist_t

- fix conflict added by e1dc6dd6d9b206168f6da2929560ca6a64e1b41e

(cherry picked from commit 1f751775525fdcdb5a75b45fbf451e2bef3696ec)

14 months agocorex: process values for dns_cache params in mod init
Daniel-Constantin Mierla [Wed, 3 Mar 2021 07:48:01 +0000 (08:48 +0100)]
corex: process values for dns_cache params in mod init

- ensure the dns cache structure is properly initialized

(cherry picked from commit 5126964ebf28af3be1391e8ed2153503b118ff2c)

14 months agocore: typedef for str_list struct
Daniel-Constantin Mierla [Wed, 3 Mar 2021 07:47:20 +0000 (08:47 +0100)]
core: typedef for str_list struct

(cherry picked from commit e1dc6dd6d9b206168f6da2929560ca6a64e1b41e)

14 months agondb_redis: add result check when reconnecting
Victor Seva [Tue, 2 Mar 2021 14:16:02 +0000 (15:16 +0100)]
ndb_redis: add result check when reconnecting

Reported and provided solution by @kritarthh

follow-up #2461

(cherry picked from commit f82a2563000361b6b1b12b4bb72b9a8ee4c62292)