kamailio
13 months agoChangeLog: content updated for v5.3.6 5.3.6
Daniel-Constantin Mierla [Thu, 10 Sep 2020 09:15:42 +0000 (11:15 +0200)]
ChangeLog: content updated for v5.3.6

13 months agoMakefile.defs: version set to 5.3.6
Daniel-Constantin Mierla [Thu, 10 Sep 2020 09:13:02 +0000 (11:13 +0200)]
Makefile.defs: version set to 5.3.6

13 months agopkg/kamailio/deb: version set to 5.3.6
Victor Seva [Thu, 10 Sep 2020 09:10:41 +0000 (11:10 +0200)]
pkg/kamailio/deb: version set to 5.3.6

13 months agoxcap_server: rever use of STR_VTOZ macro
Daniel-Constantin Mierla [Thu, 10 Sep 2020 08:31:30 +0000 (10:31 +0200)]
xcap_server: rever use of STR_VTOZ macro

- got it by picking a commit with another fix and this macro is not in
branch 5.3

13 months agopkg/kamailio: updated version to 5.3.6 for rpms and alpine specs
Daniel-Constantin Mierla [Thu, 10 Sep 2020 08:09:21 +0000 (10:09 +0200)]
pkg/kamailio: updated version to 5.3.6 for rpms and alpine specs

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

13 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

13 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Tue, 8 Sep 2020 10:47:01 +0000 (12:47 +0200)]
modules: readme files regenerated - modules ... [skip ci]

13 months agousrloc: get_udomain() - safety checks for location table name parameter
Daniel-Constantin Mierla [Thu, 27 Aug 2020 10:34:50 +0000 (12:34 +0200)]
usrloc: get_udomain() - safety checks for location table name parameter

(cherry picked from commit 29dde9fea1eb21b4bb484286f7443dd32f611bd2)
(cherry picked from commit ac56dfde20c5e689fb911debdd33a6155f7b130c)

13 months agotopoh: remove the Via cookie when skipping topoh via event route
Daniel-Constantin Mierla [Mon, 24 Aug 2020 08:22:52 +0000 (10:22 +0200)]
topoh: remove the Via cookie when skipping topoh via event route

- event route is now executed with parsed sip message to be sent out
- GH #2437

(cherry picked from commit 06a1d20fdcae42c8f2130c547c6c6cf5fb6dce26)
(cherry picked from commit b5176749605808af737aca00992f549152f9c38a)

13 months agoMakefile.defs: Fixed libs option for FreeBSD
Dmitry [Sun, 16 Aug 2020 20:21:37 +0000 (23:21 +0300)]
Makefile.defs: Fixed libs option for FreeBSD

(cherry picked from commit f490c4e0f5888963a01fa99fe94a464d44223199)
(cherry picked from commit 0efd0d63a8f8d7b644d0eba13552778d3b746c67)

13 months agotopoh: check if via param has the expected prefix, otherwise skip
Daniel-Constantin Mierla [Tue, 11 Aug 2020 10:36:02 +0000 (12:36 +0200)]
topoh: check if via param has the expected prefix, otherwise skip

- GH #2437

(cherry picked from commit 046126b4a90090bf5b8f9b517ba5218793e6b973)
(cherry picked from commit c8c884c4db353d4fac83752a494989e699fc36ff)

13 months agopike: docs - section for pike.list rpc command
Daniel-Constantin Mierla [Tue, 11 Aug 2020 09:11:35 +0000 (11:11 +0200)]
pike: docs - section for pike.list rpc command

(cherry picked from commit 720e929a87c6d3ee29c316ca63886c7142320f43)
(cherry picked from commit c783f19708bfd1d8c2334f739c8960b2de5f4fb3)

13 months agoMakefile.defs: map gcc v10.x to 9.0+ options
Daniel-Constantin Mierla [Wed, 5 Aug 2020 14:38:01 +0000 (16:38 +0200)]
Makefile.defs: map gcc v10.x to 9.0+ options

- detect properly the 10.x gcc version number, GH #2425

(cherry picked from commit 79e7738027a40affa4c7f606bf55a3ad0fe31bc4)
(cherry picked from commit 6d79c954469082aeb8518fdcca80217ce4826992)

13 months agoMakefile.defs: get clang version only from --version output
Daniel-Constantin Mierla [Tue, 4 Aug 2020 06:36:18 +0000 (08:36 +0200)]
Makefile.defs: get clang version only from --version output

- the full version with stderr output included has a different first
line on MacOS, making head -n 1 not extract the version number line

(cherry picked from commit bff689cfedca70149e17b6ec3584ca9ecab71418)
(cherry picked from commit b14b0a116791b85f2048e5fc863e50b7f7d93405)

13 months agodb_text: free pointer in case of error
Daniel-Constantin Mierla [Sat, 1 Aug 2020 14:51:39 +0000 (16:51 +0200)]
db_text: free pointer in case of error

(cherry picked from commit bddf16db74ea779bb01805fc2cbabfdaf8f4d62b)
(cherry picked from commit aabb2b2cfab6dc664ebc4b3d15db0d2ecb3cafd5)

13 months agoxcap_server: check before going to the end of the buffer
Daniel-Constantin Mierla [Fri, 31 Jul 2020 18:45:47 +0000 (20:45 +0200)]
xcap_server: check before going to the end of the buffer

- use marcros to set and restore char for ending 0

(cherry picked from commit 6ce5c0bdf136ecffd7917f2d60093e1b2c49fa54)
(cherry picked from commit 4aeb071b26df08e1dfc902340475c077e468c661)

13 months agoapp_lua: docs - note about availability of 'sr' Lua module
Daniel-Constantin Mierla [Thu, 30 Jul 2020 18:32:02 +0000 (20:32 +0200)]
app_lua: docs - note about availability of 'sr' Lua module

- use KSR in the examples

(cherry picked from commit 34efa83569bedb1f36c3661ee063ff6334633e4a)
(cherry picked from commit c98d9e8c6687f2311f51016ed9cc2e089d4eb242)

13 months agolog_custom: print to stderror if sending log message fails
Daniel-Constantin Mierla [Mon, 24 Aug 2020 08:01:20 +0000 (10:01 +0200)]
log_custom: print to stderror if sending log message fails

- help troubleshooting while avoiding looping to same function in case
the log engine is set to log custom module

(cherry picked from commit f16d046f6330f897b374d9bb7dab3b2ce8eab3a7)
(cherry picked from commit 1ecade5cbd323e1ab45ec6f83236e1d389739d3b)

13 months agotm - remove not used route_mode var
Luis Martin Gil [Thu, 23 Jul 2020 08:04:04 +0000 (10:04 +0200)]
tm - remove not used route_mode var

(cherry picked from commit 6619be46249dfe0b2f2cbc863cb8b2f44716122b)

13 months agotls: docs - fixed typo
Daniel-Constantin Mierla [Fri, 24 Jul 2020 20:25:50 +0000 (22:25 +0200)]
tls: docs - fixed typo

- GH #2410

(cherry picked from commit a12064696ac37cadf954a89b58daa1e05e182180)
(cherry picked from commit eb2abae40b36ad123528cddb25e0ddd217b68b22)

13 months agokamctl: skip tracing kamctl itself in pstrap
Daniel-Constantin Mierla [Tue, 7 Jul 2020 17:28:29 +0000 (19:28 +0200)]
kamctl: skip tracing kamctl itself in pstrap

(cherry picked from commit 626c0dee863fa517e473148ca8010d737a8f7ffe)

13 months agokamctl: print process details in pstrap output
Daniel-Constantin Mierla [Tue, 7 Jul 2020 17:18:52 +0000 (19:18 +0200)]
kamctl: print process details in pstrap output

(cherry picked from commit 904a1590dbcdbb0fda9f676b4768596f797e9e27)

13 months agokamctl: added pstrap command
Daniel-Constantin Mierla [Tue, 7 Jul 2020 16:57:27 +0000 (18:57 +0200)]
kamctl: added pstrap command

- use ps to get list of PIDs for Kamailio instance, instead of RPC
core.psx

(cherry picked from commit 97ec85559f1e33405fff2320443dc86d2df13456)

13 months agouac: restore first display name then uri with dialog callback
Daniel-Constantin Mierla [Mon, 7 Sep 2020 18:35:28 +0000 (20: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
- backport of commit efa6c6a9bf13c430d5be5146168d1ded4c39dba7 (master)
- backport of commit 1a49cc015609c8701057d5a9cf50f68db61870c1 (5.4)

13 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)
(cherry picked from commit ad14b61155686aead27e7ac5f3fb6b1aa90b6840)

13 months agoasync: fix async_ms_route and export it to kemi
Federico Cabiddu [Thu, 20 Aug 2020 09:06:56 +0000 (11:06 +0200)]
async: fix async_ms_route and export it to kemi

(cherry picked from commit b787627819fc93dcc8c68a4950c9760d298ce555)

14 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 14 Aug 2020 10:47:34 +0000 (12:47 +0200)]
modules: readme files regenerated - modules ... [skip ci]

14 months agopipelimit: docs - fixed typo
Bastian Triller [Thu, 13 Aug 2020 07:26:57 +0000 (09:26 +0200)]
pipelimit: docs - fixed typo

(cherry picked from commit c87f3c1d07a5a3c51728d404200d60b10ed6159f)

14 months agopermissions: fix crash if load_backends parameter is 1
Victor Seva [Tue, 3 Dec 2019 11:12:54 +0000 (12:12 +0100)]
permissions: fix crash if load_backends parameter is 1

fixes #2151

(cherry picked from commit d7f4493da751802dc47a694d251d34a85a7b3bf1)

14 months agodialog: print old state on dlg timeout
Daniel-Constantin Mierla [Mon, 27 Jul 2020 07:37:23 +0000 (09:37 +0200)]
dialog: print old state on dlg timeout

(cherry picked from commit 06b7e416756e1711edef6db683cef35824f4b2a5)
(cherry picked from commit ecedb702cacc4b46c474d6f48e6774985fe484e3)

14 months agotm: lower log level for t_unref kill transaction to WARN
Henning Westerholt [Thu, 23 Jul 2020 15:23:15 +0000 (15:23 +0000)]
tm: lower log level for t_unref kill transaction to WARN

- lower log level for t_unref kill transaction to WARN
- immediate CANCEL on an INVITE could trigger this

(cherry picked from commit d85d43247c3d056eebeec3f97735d13c048a181c)

14 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 17 Jul 2020 13:16:40 +0000 (15:16 +0200)]
modules: readme files regenerated - modules ... [skip ci]

14 months agoxhttp_prom: fixed typo in the documentation [skip ci]
Marat Gareev [Fri, 17 Jul 2020 12:22:33 +0000 (15:22 +0300)]
xhttp_prom: fixed typo in the documentation [skip ci]

(cherry picked from commit fbfc720a82ed2e6c537fd7fa36b913cf079123ae)
(cherry picked from commit e8ef3c2bb57c3c35ca023d3b01577435f7b80529)

15 months agop_usrloc: reworking mdb_availability_control
Lucian Balaceanu [Tue, 14 Jul 2020 08:48:45 +0000 (11:48 +0300)]
p_usrloc: reworking mdb_availability_control

- simplify general implementation
- avoid deadlock due to a process trying to acquire same lock twice

(cherry picked from commit 5789c506d022dd5713072cd1fcc07a25f42e098c)
(cherry picked from commit ffb0576bd7d93303fb1068a332d9477a4d04471b)

15 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Thu, 16 Jul 2020 15:46:48 +0000 (17:46 +0200)]
modules: readme files regenerated - modules ... [skip ci]

15 months agocore: strutils - trim trailing spaces when comparing hdr names
Daniel-Constantin Mierla [Thu, 16 Jul 2020 07:16:40 +0000 (09:16 +0200)]
core: strutils - trim trailing spaces when comparing hdr names

(cherry picked from commit 6d76b79b81bf448fa1f34753c1d000dc6c1870e0)
(cherry picked from commit d0f7c7056b32351cac0b20ce24b074d9be8459a2)

15 months agocore: parser - trim trailing whitespaces in header name
Daniel-Constantin Mierla [Thu, 16 Jul 2020 07:09:48 +0000 (09:09 +0200)]
core: parser - trim trailing whitespaces in header name

(cherry picked from commit 7135feee9cdc93efa8c0c3e4abf24a9335ce42de)
(cherry picked from commit 63e227383d9c5112f287299981d217f1558a15a8)

15 months agocore: don't close tcp connection for dropped non sip messages
lazedo [Mon, 13 Jul 2020 12:01:43 +0000 (13:01 +0100)]
core: don't close tcp connection for dropped non sip messages

(cherry picked from commit 007f98692bb6f7cb35adbb86ec6fb06f034614cc)
(cherry picked from commit 0cf30ae1c4128bca8882109ec34c34a2dd2b4cef)

15 months agocore: tcp - debug message when removing connection from list
Daniel-Constantin Mierla [Wed, 8 Jul 2020 12:44:34 +0000 (14:44 +0200)]
core: tcp - debug message when removing connection from list

(cherry picked from commit 317f707425a4cf0be144d2c874fcdf2ad8d7f992)

15 months agocore: io wait - unhash in case delete operation fails because of EBADF
Daniel-Constantin Mierla [Tue, 7 Jul 2020 15:37:00 +0000 (17:37 +0200)]
core: io wait - unhash in case delete operation fails because of EBADF

- EBADF: epfd or fd is not a valid file descriptor

(cherry picked from commit 846cc5b97a907b5314ccf03772776e0d23434042)

15 months agocarrierroute: do not test return for strcpy() and strcat()
Daniel-Constantin Mierla [Mon, 6 Jul 2020 07:03:32 +0000 (09:03 +0200)]
carrierroute: do not test return for strcpy() and strcat()

- they return the dst or src parameter, resulting in code analyzer
reporting

(cherry picked from commit 65159728a4425f45559de55fd5549731e717d74e)

15 months agodb_redis: use safer localtime_r() function
Daniel-Constantin Mierla [Sun, 5 Jul 2020 18:50:00 +0000 (20:50 +0200)]
db_redis: use safer localtime_r() function

(cherry picked from commit 0cc1e167b9e54bb4a652162445efe89b02939eed)

15 months agocore: tcp - test connection reference counter to avoid going negative
Daniel-Constantin Mierla [Fri, 3 Jul 2020 21:00:24 +0000 (23:00 +0200)]
core: tcp - test connection reference counter to avoid going negative

(cherry picked from commit 6a637cf84906ec5315c77e5458180f7d9d69a481)

15 months agocore: tcp - safety checks on emptly local tcp connection list
Daniel-Constantin Mierla [Fri, 3 Jul 2020 12:02:20 +0000 (14:02 +0200)]
core: tcp - safety checks on emptly local tcp connection list

(cherry picked from commit 67f9de8a946335e2bf16fe0e6063877cd4d51fb7)

15 months agocore: tcp - more details on error log messages
Daniel-Constantin Mierla [Fri, 3 Jul 2020 08:49:43 +0000 (10:49 +0200)]
core: tcp - more details on error log messages

(cherry picked from commit fefb3f1b2dbae8d9df24fecee763c5a1cd588107)

15 months agotcpops: target variable passed on tcp_get_conid function was empty
kvrban [Thu, 2 Jul 2020 08:09:09 +0000 (10:09 +0200)]
tcpops: target variable passed on tcp_get_conid function was empty

(cherry picked from commit a2932492e24ac3c3afe4d33f025c7501c93fda49)

15 months agolib/srdb1: init timeval structs to silent analyzer
Daniel-Constantin Mierla [Fri, 3 Jul 2020 06:33:13 +0000 (08:33 +0200)]
lib/srdb1: init timeval structs to silent analyzer

(cherry picked from commit 0780e781c319254307c85bd873c58c6478a28da8)

15 months agocore: init timeval structs to silent analyzer
Daniel-Constantin Mierla [Fri, 3 Jul 2020 06:30:46 +0000 (08:30 +0200)]
core: init timeval structs to silent analyzer

(cherry picked from commit d0d2c8fd6a57affac7bffab441b2126b9df0dfb1)

15 months agocnxcc: update docs [skip ci]
Jose Luis Verdeguer [Wed, 1 Jul 2020 15:47:59 +0000 (17:47 +0200)]
cnxcc: update docs [skip ci]

* new error return values
* delete return value from set_max_credit not in code

(cherry picked from commit bc0264f4802c266901a1eb7a296f80f1dbfcc828)

15 months agocnxcc: avoid duplicated call info
Jose Luis Verdeguer [Wed, 1 Jul 2020 15:40:50 +0000 (17:40 +0200)]
cnxcc: avoid duplicated call info

Don't store call if call-id is already registered for that client

(cherry picked from commit fb8cc72f1bd76bb2fd4d4e2e5fa2afc50eef59ad)

15 months agoims_charging: db_url param type set to PARAM_STR
Daniel-Constantin Mierla [Thu, 2 Jul 2020 08:44:03 +0000 (10:44 +0200)]
ims_charging: db_url param type set to PARAM_STR

- the variable pointer is str* not char*
- GH #2385

(cherry picked from commit 71bc55240a144dbad9d9d8afc942b81237c806d2)

15 months agodb_redis: fix unfiltered table deletion
Richard Fuchs [Tue, 14 Jul 2020 18:13:00 +0000 (14:13 -0400)]
db_redis: fix unfiltered table deletion

15 months agoims_charging: fix wrong default User-Equipment-Info-Type AVP format
Henning Westerholt [Sat, 11 Jul 2020 11:03:26 +0000 (11:03 +0000)]
ims_charging: fix wrong default User-Equipment-Info-Type AVP format

- fix User-Equipment-Info-Type AVP format
  According to the RFC 8506 it should be like this: The 48-bit Media Access
  Control (MAC) address is formatted as described in Section 3.21 of [RFC3580]
- use strlen instead of sizeof

(cherry picked from commit 1a8f54147063560f6016634152b17293394b8497)

15 months agoims_charging: bugfix for tel URIs, need the same logic in stop as in start requests
Henning Westerholt [Thu, 2 Jul 2020 16:05:51 +0000 (16:05 +0000)]
ims_charging: bugfix for tel URIs, need the same logic in stop as in start requests

(cherry picked from commit c3efb3b3331936a30f387e9f3c8c435d4d64f0bb)

15 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Thu, 2 Jul 2020 09:16:44 +0000 (11:16 +0200)]
modules: readme files regenerated - modules ... [skip ci]

15 months agoims_charging: add missing change for ccr.c (related to previous commit f5e44252c39c76...
Henning Westerholt [Thu, 2 Jul 2020 09:09:27 +0000 (09:09 +0000)]
ims_charging: add missing change for ccr.c (related to previous commit f5e44252c39c7695cb)

(cherry picked from commit 4cb61cc35a695e2636007f6518a63ed8e508b67f)

15 months agoims_charging: bugfix for destination_host parameter, implementation was incomplete
Henning Westerholt [Thu, 2 Jul 2020 08:54:20 +0000 (08:54 +0000)]
ims_charging: bugfix for destination_host parameter, implementation was incomplete

(cherry picked from commit f5e44252c39c7695cb66893035a0581a65a72f91)

15 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Thu, 2 Jul 2020 08:02:03 +0000 (10:02 +0200)]
modules: readme files regenerated - modules ... [skip ci]

15 months agousrloc: rpc scan flags, cflags and methods fields as unsigned int
Daniel-Constantin Mierla [Thu, 2 Jul 2020 07:10:48 +0000 (09:10 +0200)]
usrloc: rpc scan flags, cflags and methods fields as unsigned int

(cherry picked from commit 2c622627ea145eddcf891ba9b89b756457074991)

15 months agokamctl: set Path to '.' when parameter not set for 'ul add'
Daniel-Constantin Mierla [Thu, 2 Jul 2020 07:09:47 +0000 (09:09 +0200)]
kamctl: set Path to '.' when parameter not set for 'ul add'

(cherry picked from commit 301525dfbbad2ffcec6738ef5eff952645ab9dfe)

15 months agojsonrpcs: more debug messages in case field of scanning failure
Daniel-Constantin Mierla [Wed, 1 Jul 2020 18:53:45 +0000 (20:53 +0200)]
jsonrpcs: more debug messages in case field of scanning failure

(cherry picked from commit 0a4fa9594d871a41c2ef6b811e2b342ed6ccfe09)

15 months agoimc: let space for ending characters
Daniel-Constantin Mierla [Tue, 30 Jun 2020 10:10:06 +0000 (12:10 +0200)]
imc: let space for ending characters

(cherry picked from commit 1d256290cf10414a2f1af1feda3c9a357eb8ac27)

15 months agocarrierroute: docs - note about config file ownership
Daniel-Constantin Mierla [Mon, 29 Jun 2020 06:25:11 +0000 (08:25 +0200)]
carrierroute: docs - note about config file ownership

- GH #2369

(cherry picked from commit 214c762c46d5cd5892d2ddc06a25193a01164e8b)

15 months agocarrierroute: more details on error message checking file permissions
Daniel-Constantin Mierla [Mon, 29 Jun 2020 06:19:34 +0000 (08:19 +0200)]
carrierroute: more details on error message checking file permissions

- GH #2369

(cherry picked from commit 31c7493d0d822239a76df4b504b2c319de09c19c)

15 months agosiputils: docs - added section ids for parameters
Daniel-Constantin Mierla [Fri, 26 Jun 2020 20:27:43 +0000 (22:27 +0200)]
siputils: docs - added section ids for parameters

(cherry picked from commit ec0b1d31f1d667abdcd7cce7fbfff110583e271c)

15 months agopua: docs - fixed missing comma in example
Daniel-Constantin Mierla [Wed, 24 Jun 2020 19:05:56 +0000 (21:05 +0200)]
pua: docs - fixed missing comma in example

- picked from #2371

(cherry picked from commit 9adccda325d258fe539b54ec67d4389d3a2fc72c)

15 months agoavpops: free fname1 in case of error getting fname2
Daniel-Constantin Mierla [Wed, 24 Jun 2020 07:12:58 +0000 (09:12 +0200)]
avpops: free fname1 in case of error getting fname2

(cherry picked from commit fbc55950c8ac0c34c5b6693c1578de7cd11b484c)

15 months agodialog: improve warning message to help better identify lookup failures
Emmanuel Schmidbauer [Fri, 19 Jun 2020 20:54:40 +0000 (16:54 -0400)]
dialog: improve warning message to help better identify lookup failures

(cherry picked from commit c4684574e0e0e1cca4c1489a16513182f821a643)

15 months agodialog: use the dlg hash table slot to unlock on dmq handling
Daniel-Constantin Mierla [Tue, 23 Jun 2020 06:01:48 +0000 (08:01 +0200)]
dialog: use the dlg hash table slot to unlock on dmq handling

- the dlg can be destroyed on dmq replication and unlocking may fail

(cherry picked from commit f4036c535033a333cb551b5af70703135305e7b3)

15 months agocnxcc: remove useless warn messages
Victor Seva [Mon, 29 Jun 2020 16:31:37 +0000 (18:31 +0200)]
cnxcc: remove useless warn messages

if the cid is not equal, an error message is going to be thrown.
Add more info in the later debug message.

(cherry picked from commit d6361c2e501cd9c08319f40897d765d1de1b1a32)

15 months agoChangeLog: content updated for v5.3.5 5.3.5
Daniel-Constantin Mierla [Mon, 22 Jun 2020 09:53:41 +0000 (11:53 +0200)]
ChangeLog: content updated for v5.3.5

15 months agoMakefile.defs: version set to 5.3.5
Daniel-Constantin Mierla [Mon, 22 Jun 2020 09:46:19 +0000 (11:46 +0200)]
Makefile.defs: version set to 5.3.5

15 months agopkg/kamailio: updated version to 5.3.5 for rpms and alpine specs
Daniel-Constantin Mierla [Mon, 22 Jun 2020 09:44:58 +0000 (11:44 +0200)]
pkg/kamailio: updated version to 5.3.5 for rpms and alpine specs

15 months agosqlops: export sql_pvquery to KEMI
Victor Seva [Tue, 9 Jun 2020 10:02:43 +0000 (12:02 +0200)]
sqlops: export sql_pvquery to KEMI

(cherry picked from commit 3b2a0a849e60a6bf0bc9d8054568c954010d7aa6)

15 months agoavpops: export functions to KEMI
Victor Seva [Thu, 11 Jun 2020 08:48:29 +0000 (10:48 +0200)]
avpops: export functions to KEMI

* avp_check
* avp_copy

(cherry picked from commit adf7fb2613c4117ea0a76463d2df55e14579da9f)

15 months agopkg/kamailio/deb: version set 5.3.5
Victor Seva [Mon, 22 Jun 2020 07:19:57 +0000 (09:19 +0200)]
pkg/kamailio/deb: version set 5.3.5

15 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Mon, 22 Jun 2020 06:31:46 +0000 (08:31 +0200)]
modules: readme files regenerated - modules ... [skip ci]

15 months agouac: docs - updated examples to use avps with string names
Daniel-Constantin Mierla [Mon, 22 Jun 2020 06:22:55 +0000 (08:22 +0200)]
uac: docs - updated examples to use avps with string names

- the recommended format instead of interger ids

(cherry picked from commit 295e9a23df952bc98c2a2803d796e358363b2e22)

15 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Sun, 21 Jun 2020 17:46:43 +0000 (19:46 +0200)]
modules: readme files regenerated - modules ... [skip ci]

15 months agodb_mysql: docs - proper location for opt_ssl_mode in params section
Daniel-Constantin Mierla [Sun, 21 Jun 2020 17:31:07 +0000 (19:31 +0200)]
db_mysql: docs - proper location for opt_ssl_mode in params section

- reported by Juha Henianen

(cherry picked from commit 56536708c5537c7443aa7a777fad0dc941e1bc71)

15 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Fri, 19 Jun 2020 13:31:22 +0000 (15:31 +0200)]
modules: readme files regenerated - modules ... [skip ci]

15 months agoregistrar: expires_range should not make expires < min_expires
Kristian F. Høgh [Fri, 19 Jun 2020 09:22:20 +0000 (11:22 +0200)]
registrar: expires_range should not make expires < min_expires

(cherry picked from commit c753932ebfa055d923c92b916937eec99cd14d23)

15 months agopv: use SIP_REQUEST/SIP_REPLY for value of $mt
Daniel-Constantin Mierla [Thu, 18 Jun 2020 08:31:38 +0000 (10:31 +0200)]
pv: use SIP_REQUEST/SIP_REPLY for value of $mt

(cherry picked from commit 7e402da261e1ced56019037d3dce9e72b5b2b0ea)

15 months agodb_mysql: use MARIADB_BASE_VERSION macro to check for MariaDB library
Daniel-Constantin Mierla [Mon, 15 Jun 2020 07:09:20 +0000 (09:09 +0200)]
db_mysql: use MARIADB_BASE_VERSION macro to check for MariaDB library

(cherry picked from commit c5acc58863acb133748ad9f2f8a963ab714af871)

15 months agodb_mysql: note that libmariadbclient does not support ssl mode option
Daniel-Constantin Mierla [Sun, 14 Jun 2020 10:16:29 +0000 (12:16 +0200)]
db_mysql: note that libmariadbclient does not support ssl mode option

(cherry picked from commit ae900a668aff4a472d6f1f7de5cf6277b5881ce9)

15 months agodb_mysql: mariadb client library does not support ssl mode option
Daniel-Constantin Mierla [Sun, 14 Jun 2020 10:14:40 +0000 (12:14 +0200)]
db_mysql: mariadb client library does not support ssl mode option

(cherry picked from commit 5b727447df9f5476c2ef818a8926f62525d0c349)

15 months agodb_mysql: docs for opt_ssl_mode parameter
Daniel-Constantin Mierla [Sun, 14 Jun 2020 09:31:59 +0000 (11:31 +0200)]
db_mysql: docs for opt_ssl_mode parameter

(cherry picked from commit f012c525264ed05fec2acb4b3924d4b9a1cd3ab9)

15 months agodb_mysql: new parameter opt_ssl_mode - allow controling ssl mode
Daniel-Constantin Mierla [Sun, 14 Jun 2020 09:18:15 +0000 (11:18 +0200)]
db_mysql: new parameter opt_ssl_mode - allow controling ssl mode

- can disable or enforce use of ssl
- some combinations of libmysqlclient and libssl1.1 can result in
crashing when ssl/tls is used, even on 127.0.0.1, this param can be used
to disable it

(cherry picked from commit 260e25e15c4aa68533ee560bd8fcbdd5ee7b7d6f)

16 months agosca: clang format code
Victor Seva [Tue, 16 Jun 2020 07:31:55 +0000 (09:31 +0200)]
sca: clang format code

(cherry picked from commit cf3c0132cc81b2d8db05a6a9a26d7110a021ce23)

16 months agocore: remove compiler warnings [-Wstring-plus-int]
Victor Seva [Sat, 7 Mar 2020 10:57:40 +0000 (11:57 +0100)]
core: remove compiler warnings [-Wstring-plus-int]

> core/parser/parse_fline.c:241:17: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
>                                        SIP_VERSION+1, SIP_VERSION_LEN-1)) {
>                                        ~~~~~~~~~~~^~
>
> core/parser/parse_fline.c:241:17: note: use array indexing to silence this warning
>                                        SIP_VERSION+1, SIP_VERSION_LEN-1)) {
>                                                   ^
>                                        &          [ ]
> core/parser/parse_fline.c:247:18: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
>                                        HTTP_VERSION+1, HTTP_VERSION_LEN-1)) {
>                                        ~~~~~~~~~~~~^~
>
> core/parser/parse_fline.c:247:18: note: use array indexing to silence this warning
>                                        HTTP_VERSION+1, HTTP_VERSION_LEN-1)) {
>                                                    ^
>                                        &           [ ]
>
> 2 warnings generated.

(cherry picked from commit f2959f422bb8171241728f5148d4b21c9cc2c681)

16 months agocore: remove compiler warnings [-Wstring-plus-int]
Victor Seva [Sat, 7 Mar 2020 10:35:55 +0000 (11:35 +0100)]
core: remove compiler warnings [-Wstring-plus-int]

> core/parser/parse_fline.c:93:34: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
>               strncasecmp( tmp+1, SIP_VERSION+1, SIP_VERSION_LEN-1)==0 &&
>                                   ~~~~~~~~~~~^~
>
> core/parser/parse_fline.c:121:9: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
>       } else IFISMETHOD( INVITE, 'I' )
>              ^~~~~~~~~~~~~~~~~~~~~~~~~
>
> core/parser/msg_parser.h:131:35: note: expanded from macro 'IFISMETHOD'
>              strncasecmp( tmp+1, #methodname +1, methodname##_LEN-1)==0 &&     \
>                                  ~~~~~~~~~~~~^~

(cherry picked from commit 2b070a622fa3c78d929580fda3c7952963c4066b)

16 months agomodules: readme files regenerated - modules ... [skip ci]
Kamailio Dev [Thu, 11 Jun 2020 14:04:43 +0000 (16:04 +0200)]
modules: readme files regenerated - modules ... [skip ci]

16 months agosipdump: make month in the file name from 1 to 12
Daniel-Constantin Mierla [Thu, 11 Jun 2020 13:50:09 +0000 (15:50 +0200)]
sipdump: make month in the file name from 1 to 12

- tm_mon is from 0-11
- backport of 97593d20875d26c38511f564fd7071bf79baa56b

16 months agokamctl: regenerated the schema
Daniel-Constantin Mierla [Thu, 11 Jun 2020 13:48:26 +0000 (15:48 +0200)]
kamctl: regenerated the schema

16 months agosiputils: cotact ops - more debug info and coherence in log messages
Daniel-Constantin Mierla [Thu, 11 Jun 2020 13:19:19 +0000 (15:19 +0200)]
siputils: cotact ops - more debug info and coherence in log messages

- use lowercase always at the start, the message is prefixed anyhow

(cherry picked from commit 3f156be2e5e2c06a6716e709a246e57c51661012)

16 months agosiputils: contact ops - clang format code
Daniel-Constantin Mierla [Thu, 11 Jun 2020 12:07:35 +0000 (14:07 +0200)]
siputils: contact ops - clang format code

(cherry picked from commit 5754539602bb6806f829a9ceee73630953fdaa81)

16 months agosiputils: contact ops - removed old defines set on for very long time
Daniel-Constantin Mierla [Thu, 11 Jun 2020 11:27:22 +0000 (13:27 +0200)]
siputils: contact ops - removed old defines set on for very long time

- bits of formatting code and comments

(cherry picked from commit 2b8b2904399478984d3983ce447c98832419570a)

16 months agoapp_python: check if f_code field in frame is set before using in log message
Daniel-Constantin Mierla [Tue, 9 Jun 2020 08:53:22 +0000 (10:53 +0200)]
app_python: check if f_code field in frame is set before using in log message

(cherry picked from commit b02c247023ea3ea0ef9753efdb04aff7d5d3bbb4)

16 months agoapp_python3: use safer function PyBytes_AsString() instead of macro
Daniel-Constantin Mierla [Tue, 9 Jun 2020 08:49:22 +0000 (10:49 +0200)]
app_python3: use safer function PyBytes_AsString() instead of macro

- check if f_code filed in frame is set before using in log message
- GH #2335

(cherry picked from commit e680dd6ed672e63012e960c68c0030e3f188654b)