kamailio
5 months agotm: t_reply.c - received_reply() done if suspended after route gv/tm/t_suspend-on-t_continue 2721/head
Giacomo Vacca [Wed, 5 May 2021 13:42:01 +0000 (15:42 +0200)]
tm: t_reply.c - received_reply() done if suspended after route

5 months agotm: t_suspend.c - unlock t_continue and reset flag if suspended again
Giacomo Vacca [Mon, 3 May 2021 12:20:14 +0000 (14:20 +0200)]
tm: t_suspend.c - unlock t_continue and reset flag if suspended again

5 months agotm: t_suspend.c - do not t_continue with reply if suspended
Giacomo Vacca [Fri, 30 Apr 2021 17:32:00 +0000 (19:32 +0200)]
tm: t_suspend.c - do not t_continue with reply if suspended

5 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

5 months agortpengine: extract call-id/from-tag/to-tag only from sip messages
Daniel-Constantin Mierla [Fri, 30 Apr 2021 06:31:34 +0000 (08:31 +0200)]
rtpengine: extract call-id/from-tag/to-tag only from sip messages

- they can be provided via flags in function parameters
- fix using functions in non-sip routing blocks (e.g., xhttp processing)

5 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

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

5 months agomodules: readme files regenerated - sipdump ... [skip ci]
Kamailio Dev [Thu, 29 Apr 2021 09:31:19 +0000 (11:31 +0200)]
modules: readme files regenerated - sipdump ... [skip ci]

5 months agosipdump: docs for fage parameter
Daniel-Constantin Mierla [Thu, 29 Apr 2021 09:23:39 +0000 (11:23 +0200)]
sipdump: docs for fage parameter

5 months agosipdump: new param fage - set file age for clean up
Daniel-Constantin Mierla [Thu, 29 Apr 2021 09:17:10 +0000 (11:17 +0200)]
sipdump: new param fage - set file age for clean up

- older files than fage created by sipdump are deleted on a timer
routine running every 600 seconds
- default value is 0 (no cleanup)
- value is in seconds

5 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.

5 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

5 months agolost: fixed possible resource leak inside lost_get_response_issues()
Wolfgang Kampichler [Wed, 28 Apr 2021 15:22:58 +0000 (17:22 +0200)]
lost: fixed possible resource leak inside lost_get_response_issues()

5 months agocore: kemi - parse headers before insert operation
Daniel-Constantin Mierla [Wed, 28 Apr 2021 14:06:50 +0000 (16:06 +0200)]
core: kemi - parse headers before insert operation

5 months agotextops: check for msg headers field in case is used for non-sip traffic
Daniel-Constantin Mierla [Wed, 28 Apr 2021 13:57:05 +0000 (15:57 +0200)]
textops: check for msg headers field in case is used for non-sip traffic

5 months agoims_ipsec_pcscf: initialize variable to fix warnings
Daniel-Constantin Mierla [Wed, 28 Apr 2021 11:28:05 +0000 (13:28 +0200)]
ims_ipsec_pcscf: initialize variable to fix warnings

5 months agomohqueue: fixed compiler warning about array initialization
Sergey Safarov [Tue, 27 Apr 2021 09:58:49 +0000 (12:58 +0300)]
mohqueue: fixed compiler warning about array initialization

5 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

5 months agodmq: docs - fix section id for dmq.remove rpc command
Daniel-Constantin Mierla [Tue, 27 Apr 2021 07:51:30 +0000 (09:51 +0200)]
dmq: docs - fix section id for dmq.remove rpc command

5 months agotopos: explicitely set the db match operator and value type for uuid
Daniel-Constantin Mierla [Mon, 26 Apr 2021 12:58:39 +0000 (14:58 +0200)]
topos: explicitely set the db match operator and value type for uuid

5 months agotopos: increase the number of db keys for query when using uuid for branch
Daniel-Constantin Mierla [Mon, 26 Apr 2021 12:51:55 +0000 (14:51 +0200)]
topos: increase the number of db keys for query when using uuid for branch

- debug message to print a/b uuid

5 months agotopos: restore checks on uri and sip_params for tps_dlg_message_update()
Daniel-Constantin Mierla [Mon, 26 Apr 2021 11:49:42 +0000 (13:49 +0200)]
topos: restore checks on uri and sip_params for tps_dlg_message_update()

- use define for expected min len safety checks

5 months agotopos: check if event field exists for NOTIFY
Daniel-Constantin Mierla [Mon, 26 Apr 2021 11:43:21 +0000 (13:43 +0200)]
topos: check if event field exists for NOTIFY

5 months agotopos: load associated early dialog transaction using also uuid
Daniel-Constantin Mierla [Mon, 26 Apr 2021 11:02:11 +0000 (13:02 +0200)]
topos: load associated early dialog transaction using also uuid

5 months agotopos: simplified tps_dlg_message_update()
Daniel-Constantin Mierla [Mon, 26 Apr 2021 10:48:37 +0000 (12:48 +0200)]
topos: simplified tps_dlg_message_update()

5 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

5 months agotopos: safety handling of onsend data
Daniel-Constantin Mierla [Mon, 26 Apr 2021 08:14:15 +0000 (10:14 +0200)]
topos: safety handling of onsend data

5 months agotopos: uniform processing for requests during early dialog
Daniel-Constantin Mierla [Mon, 26 Apr 2021 07:28:35 +0000 (09:28 +0200)]
topos: uniform processing for requests during early dialog

- requests that are handled during 1xx state, like PRACK, UPDATE, BYE

5 months agolost: Coverity Scan fixes
Wolfgang Kampichler [Sun, 25 Apr 2021 20:44:01 +0000 (22:44 +0200)]
lost: Coverity Scan fixes

5 months agotopos: reset context on msg received callback
Daniel-Constantin Mierla [Fri, 23 Apr 2021 10:35:15 +0000 (12:35 +0200)]
topos: reset context on msg received callback

5 months agotopos: use context to load stored branch attributes only for requests
Daniel-Constantin Mierla [Fri, 23 Apr 2021 07:53:07 +0000 (09:53 +0200)]
topos: use context to load stored branch attributes only for requests

5 months agopkg/kamailio/deb: version set 5.6.0~dev0
Victor Seva [Fri, 23 Apr 2021 09:28:44 +0000 (11:28 +0200)]
pkg/kamailio/deb: version set 5.6.0~dev0

5 months agoMakefile.defs: version set to 5.6.0-dev0
Daniel-Constantin Mierla [Thu, 22 Apr 2021 19:51:26 +0000 (21:51 +0200)]
Makefile.defs: version set to 5.6.0-dev0

- master branch is open for new features to be part of future release
series 5.6.x

5 months agoMakefile.defs: version set to 5.5.0-pre1
Daniel-Constantin Mierla [Thu, 22 Apr 2021 19:48:20 +0000 (21:48 +0200)]
Makefile.defs: version set to 5.5.0-pre1

5 months agotopos_redis: set attributes always for provisional replies
Daniel-Constantin Mierla [Thu, 22 Apr 2021 19:46:29 +0000 (21:46 +0200)]
topos_redis: set attributes always for provisional replies

5 months agoims_diameter_server: removed goto label used in single place
Daniel-Constantin Mierla [Thu, 22 Apr 2021 07:36:31 +0000 (09:36 +0200)]
ims_diameter_server: removed goto label used in single place

5 months agoims_charging: fixed compiler warnings for kemi exports
Daniel-Constantin Mierla [Thu, 22 Apr 2021 07:29:26 +0000 (09:29 +0200)]
ims_charging: fixed compiler warnings for kemi exports

5 months agodmq: skip removing local node via rpc command
Daniel-Constantin Mierla [Thu, 22 Apr 2021 06:36:11 +0000 (08:36 +0200)]
dmq: skip removing local node via rpc command

5 months agomodules: readme files regenerated - dmq ... [skip ci]
Kamailio Dev [Wed, 21 Apr 2021 17:31:12 +0000 (19:31 +0200)]
modules: readme files regenerated - dmq ... [skip ci]

5 months agodmq: docs for rpc dmq.remove command
Daniel-Constantin Mierla [Wed, 21 Apr 2021 17:16:21 +0000 (19:16 +0200)]
dmq: docs for rpc dmq.remove command

5 months agodmq: added dmq.remove rpc command
Daniel-Constantin Mierla [Wed, 21 Apr 2021 17:09:21 +0000 (19:09 +0200)]
dmq: added dmq.remove rpc command

- make it possible to remove a node that still is reachable by old
address without having to shut dowm all nodes

5 months agomodules: readme files regenerated - dmq ... [skip ci]
Kamailio Dev [Wed, 21 Apr 2021 09:31:26 +0000 (11:31 +0200)]
modules: readme files regenerated - dmq ... [skip ci]

5 months agodmq: docs for server_socket address
Daniel-Constantin Mierla [Wed, 21 Apr 2021 08:55:18 +0000 (10:55 +0200)]
dmq: docs for server_socket address

5 months agodmq: exposed the server socket to modparam list
Daniel-Constantin Mierla [Wed, 21 Apr 2021 08:49:39 +0000 (10:49 +0200)]
dmq: exposed the server socket to modparam list

5 months agoims_diameter_server: export functions to kemi
Riccardo Villa [Thu, 8 Apr 2021 16:20:20 +0000 (18:20 +0200)]
ims_diameter_server: export functions to kemi

5 months agoims_charging: export functions to kemi
Riccardo Villa [Thu, 8 Apr 2021 16:20:01 +0000 (18:20 +0200)]
ims_charging: export functions to kemi

5 months agosmsops: Imrovements in decode_3gpp_sms() and pv_sms_body()
Aleksandar Yosifov [Wed, 7 Apr 2021 07:59:24 +0000 (10:59 +0300)]
smsops: Imrovements in decode_3gpp_sms() and pv_sms_body()

- Added new sms pdu data: originating & destination address flags;
  SCTS(DELIVER)/VP(SUBMIT) absolute time format.
- decode_3gpp_sms(): added support for DELIVER type;
  Added VP-AbsoluteTimeFormat for SUBMIT type.
- pv_sms_body(): added support for ucs2 coding.
- Extends of pv_get_sms() and pv_set_sms(): added support for
  originating & destination address flags.

5 months agotopos: set downstream rr set for replies
Daniel-Constantin Mierla [Tue, 20 Apr 2021 10:16:31 +0000 (12:16 +0200)]
topos: set downstream rr set for replies

5 months agosecsipid: propagate return code from lib functions
Daniel-Constantin Mierla [Tue, 20 Apr 2021 08:35:50 +0000 (10:35 +0200)]
secsipid: propagate return code from lib functions

5 months agomodules: readme files regenerated - lcr ... [skip ci]
Kamailio Dev [Tue, 20 Apr 2021 06:46:21 +0000 (08:46 +0200)]
modules: readme files regenerated - lcr ... [skip ci]

5 months agolcr: docs - use string avps in examples
Daniel-Constantin Mierla [Tue, 20 Apr 2021 06:35:13 +0000 (08:35 +0200)]
lcr: docs - use string avps in examples

- more coherent examples, one example was also conflicting by using same id
- removed trailing white spaces and aligned examples

5 months agomodules: readme files regenerated - lost ... [skip ci]
Kamailio Dev [Mon, 19 Apr 2021 08:16:20 +0000 (10:16 +0200)]
modules: readme files regenerated - lost ... [skip ci]

5 months agolost: doc - typo removed
Wolfgang Kampichler [Mon, 19 Apr 2021 08:13:13 +0000 (10:13 +0200)]
lost: doc - typo removed

5 months agoMerge pull request #2712 from mancasg/patch-1
Olle E. Johansson [Mon, 19 Apr 2021 06:20:20 +0000 (08:20 +0200)]
Merge pull request #2712 from mancasg/patch-1

domain: fix use after free on domain reload

5 months agolost: fixing a memory leak and minor code refactoring and improvements
Wolfgang Kampichler [Sun, 18 Apr 2021 16:08:13 +0000 (18:08 +0200)]
lost: fixing a memory leak and minor code refactoring and improvements

6 months agodomain: fix use after free on domain reload 2712/head
MancaČ™ George [Fri, 16 Apr 2021 16:26:35 +0000 (19:26 +0300)]
domain: fix use after free on domain reload

6 months agopkg/kamailio/obs: added lwsc module packaging
Sergey Safarov [Fri, 16 Apr 2021 09:36:55 +0000 (12:36 +0300)]
pkg/kamailio/obs: added lwsc module packaging

6 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

6 months agopkg/kamailio/deb: add lwcs module vseva/lwcs
Victor Seva [Thu, 15 Apr 2021 11:46:50 +0000 (13:46 +0200)]
pkg/kamailio/deb: add lwcs module

* enable only the ones with libwebsockets >= 3.1

6 months agopv_headers: safety check for xavi key count
Victor Seva [Thu, 15 Apr 2021 09:41:20 +0000 (11:41 +0200)]
pv_headers: safety check for xavi key count

* check that we have keys to put into the hash before
  allocating anything
* check table field instead of size just to make analyzer happy

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 months agomodules: readme files regenerated - secsipid ... [skip ci]
Kamailio Dev [Mon, 12 Apr 2021 16:46:13 +0000 (18:46 +0200)]
modules: readme files regenerated - secsipid ... [skip ci]

6 months agosecsipid: docs - updates to installation section with secsipid_proc
Daniel-Constantin Mierla [Mon, 12 Apr 2021 16:39:25 +0000 (18:39 +0200)]
secsipid: docs - updates to installation section with secsipid_proc

6 months agomodules: readme files regenerated - secsipid ... [skip ci]
Kamailio Dev [Mon, 12 Apr 2021 06:01:22 +0000 (08:01 +0200)]
modules: readme files regenerated - secsipid ... [skip ci]

6 months agosecsipid: docs for libopt
Daniel-Constantin Mierla [Mon, 12 Apr 2021 05:56:54 +0000 (07:56 +0200)]
secsipid: docs for libopt

6 months agosecsipid: make it possible to verify certificate
Daniel-Constantin Mierla [Mon, 12 Apr 2021 05:54:24 +0000 (07:54 +0200)]
secsipid: make it possible to verify certificate

- follow the specs relate to verification
- allow to set the level of certification via upstream library options

6 months agosecsipid_proc: synced with the upstream library api
Daniel-Constantin Mierla [Mon, 12 Apr 2021 05:51:41 +0000 (07:51 +0200)]
secsipid_proc: synced with the upstream library api

6 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

6 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

6 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

6 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

6 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

6 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

6 months agomodules: readme files regenerated - lost ... [skip ci]
Kamailio Dev [Fri, 9 Apr 2021 14:16:14 +0000 (16:16 +0200)]
modules: readme files regenerated - lost ... [skip ci]

6 months agoMerge pull request #2675 from kamailio/wkampich/dev
Wolfgang Kampichler [Fri, 9 Apr 2021 14:10:45 +0000 (16:10 +0200)]
Merge pull request #2675 from kamailio/wkampich/dev

extensions to lost and http_client modules and core/parse_body.c/part_multipart_headers_cmp() log output changed from ERR to DBG in case a header does not exist

6 months agocore: main - checking of optarg for covering all unixes
Daniel-Constantin Mierla [Fri, 9 Apr 2021 07:34:29 +0000 (09:34 +0200)]
core: main - checking of optarg for covering all unixes

6 months agolost: typedef naming changed and copyright added wkampich/dev 2675/head
Wolfgang Kampichler [Thu, 8 Apr 2021 19:31:24 +0000 (21:31 +0200)]
lost: typedef naming changed and copyright added

6 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

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

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

6 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

6 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

6 months agocore: parse headers - check if anything was parsed
Daniel-Constantin Mierla [Thu, 8 Apr 2021 09:20:32 +0000 (11:20 +0200)]
core: parse headers - check if anything was parsed

6 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

6 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

6 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

6 months agocore: parse_body.c/part_multipart_headers_cmp() changed log output from ERR to DBG...
Wolfgang Kampichler [Wed, 7 Apr 2021 11:10:30 +0000 (13:10 +0200)]
core: parse_body.c/part_multipart_headers_cmp() changed log output from ERR to DBG in case a header does not exist

6 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

6 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

6 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

6 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