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

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

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

29 hours 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

3 days 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

3 days 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

3 days 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

4 days 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

4 days 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

4 days 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

4 days 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

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

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

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

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

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

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

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

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

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

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

8 days 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

9 days 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

10 days 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

10 days 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

10 days 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

10 days 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

10 days 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]

10 days 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

10 days 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

11 days 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

11 days 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

11 days 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()

11 days 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()

11 days 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

11 days 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

11 days 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

11 days 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

11 days 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

11 days 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

12 days 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

12 days 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

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

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

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

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

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

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

12 days 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

12 days 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()

13 days agocrypto: use same condition to free ttext.s on success or error
Daniel-Constantin Mierla [Tue, 6 Apr 2021 15:54:46 +0000 (17:54 +0200)]
crypto: use same condition to free ttext.s on success or error

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

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

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

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

13 days agocore/mem: removed tlsf_malloc_bits.h
Daniel-Constantin Mierla [Tue, 6 Apr 2021 06:38:16 +0000 (08:38 +0200)]
core/mem: removed tlsf_malloc_bits.h

- no longer needed after sync with v3.1

13 days agocore/mem: tlsf malloc - sync'ed with v3.1
Daniel-Constantin Mierla [Tue, 6 Apr 2021 06:34:48 +0000 (08:34 +0200)]
core/mem: tlsf malloc - sync'ed with v3.1

- tlsf malloc project: https://github.com/mattconte/tlsf
- last commit when sync'ed:
  -  https://github.com/mattconte/tlsf/commit/deff9ab509341f264addbd3c8ada533678591905

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

2 weeks agocore: checks for trying to define empty or null ids
Daniel-Constantin Mierla [Mon, 5 Apr 2021 15:50:31 +0000 (17:50 +0200)]
core: checks for trying to define empty or null ids

- use found pointer to compute the lenght of ID for -A parameter to save
a strlen()

2 weeks 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()

2 weeks 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

2 weeks 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

2 weeks agocrypto: fix use of uninitialized values introduced by b08fd55ddd598115a3b69afc630403a...
Daniel-Constantin Mierla [Mon, 5 Apr 2021 15:10:24 +0000 (17:10 +0200)]
crypto: fix use of uninitialized values introduced by b08fd55ddd598115a3b69afc630403a582d239f2

2 weeks 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

2 weeks 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()

2 weeks agodmq: fixes for changes in the 678f9c6ad8a8118741a921fcc01f9b23b5702c6e
Daniel-Constantin Mierla [Mon, 5 Apr 2021 09:37:06 +0000 (11:37 +0200)]
dmq: fixes for changes in the 678f9c6ad8a8118741a921fcc01f9b23b5702c6e

- init the next field to first notification address str_list_t item
- init local variables to avoid compile warnings on using garbage value
- while condition on server_list instead of address of its ->s field
(which always not null)
- do not iterate using global dmq_notification_address_list variable, it
shifts it till becomes NULL

2 weeks agolost: removed some typos and added explanatory text to doc
Wolfgang Kampichler [Sun, 4 Apr 2021 21:09:02 +0000 (23:09 +0200)]
lost: removed some typos and added explanatory text to doc

2 weeks 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

2 weeks 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

2 weeks agomodules: readme files regenerated - topos ... [skip ci]
Kamailio Dev [Fri, 2 Apr 2021 08:16:13 +0000 (10:16 +0200)]
modules: readme files regenerated - topos ... [skip ci]

2 weeks agotopos: docs - fixed title for xavu_cfg example [skip ci]
Daniel-Constantin Mierla [Fri, 2 Apr 2021 08:11:01 +0000 (10:11 +0200)]
topos: docs - fixed title for xavu_cfg example [skip ci]

- groupped xavu parameters

2 weeks agodmq: access val after being tested for null
Daniel-Constantin Mierla [Fri, 2 Apr 2021 08:04:10 +0000 (10:04 +0200)]
dmq: access val after being tested for null

2 weeks 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

2 weeks agopkg/kamailio/deb: set version 5.5.0~pre0
Victor Seva [Thu, 1 Apr 2021 17:07:42 +0000 (19:07 +0200)]
pkg/kamailio/deb: set version 5.5.0~pre0

2 weeks agomodules: readme files regenerated - acc_json ... [skip ci]
Kamailio Dev [Thu, 1 Apr 2021 15:01:14 +0000 (17:01 +0200)]
modules: readme files regenerated - acc_json ... [skip ci]

2 weeks agoacc_json: param to accept pre-encoded json values (#2699)
Julien Chavanton [Thu, 1 Apr 2021 14:50:40 +0000 (07:50 -0700)]
acc_json: param to accept pre-encoded json values (#2699)

2 weeks agoMakefile.defs: version set to 5.5.0-pre0
Daniel-Constantin Mierla [Thu, 1 Apr 2021 09:49:26 +0000 (11:49 +0200)]
Makefile.defs: version set to 5.5.0-pre0

- starting of testing phase for 5.5 series

2 weeks agoMakefile.defs: version set to 5.5.0-dev6
Daniel-Constantin Mierla [Thu, 1 Apr 2021 09:48:20 +0000 (11:48 +0200)]
Makefile.defs: version set to 5.5.0-dev6

- development for 5.5 series is closed

2 weeks agomodules: readme files regenerated - topos ... [skip ci]
Kamailio Dev [Thu, 1 Apr 2021 07:16:14 +0000 (09:16 +0200)]
modules: readme files regenerated - topos ... [skip ci]

2 weeks agotopos: docs for inbound event routes and context
Daniel-Constantin Mierla [Thu, 1 Apr 2021 07:12:16 +0000 (09:12 +0200)]
topos: docs for inbound event routes and context

2 weeks agotopos: docs updated for xavu replacing avp parameters
Daniel-Constantin Mierla [Thu, 1 Apr 2021 06:56:29 +0000 (08:56 +0200)]
topos: docs updated for xavu replacing avp parameters

2 weeks agotopos: use xavu instead of avp
Daniel-Constantin Mierla [Thu, 1 Apr 2021 06:40:25 +0000 (08:40 +0200)]
topos: use xavu instead of avp

- replaced params refering to avp with corresponding xavp alternatives

2 weeks agocore: $xavu() helper functions to get child values
Daniel-Constantin Mierla [Thu, 1 Apr 2021 05:56:30 +0000 (07:56 +0200)]
core: $xavu() helper functions to get child values

- like for xavp and xavi

2 weeks agotopos: use context for sruid
Daniel-Constantin Mierla [Wed, 31 Mar 2021 22:01:22 +0000 (00:01 +0200)]
topos: use context for sruid

2 weeks agocore: sruid - use specific prefix for global variables
Daniel-Constantin Mierla [Wed, 31 Mar 2021 21:55:51 +0000 (23:55 +0200)]
core: sruid - use specific prefix for global variables

- declare static functions used only local
- functions to append a value to sruid

2 weeks agolost: memory leak fix and code refactoring
Wolfgang Kampichler [Wed, 31 Mar 2021 21:14:14 +0000 (23:14 +0200)]
lost: memory leak fix and code refactoring

2 weeks agotopos: ability to execute event routes when messages
Daniel-Constantin Mierla [Wed, 31 Mar 2021 19:59:51 +0000 (21:59 +0200)]
topos: ability to execute event routes when messages

2 weeks agotopos: option to set a context value via modparam or function
Daniel-Constantin Mierla [Wed, 31 Mar 2021 19:46:14 +0000 (21:46 +0200)]
topos: option to set a context value via modparam or function

- ability to group records

2 weeks agokamctl: db schema regenerated - updates to userblocklist and topos modules
Daniel-Constantin Mierla [Wed, 31 Mar 2021 19:45:14 +0000 (21:45 +0200)]
kamctl: db schema regenerated - updates to userblocklist and topos modules

2 weeks agolib: srdb1 - added x_context column to topos tables
Daniel-Constantin Mierla [Wed, 31 Mar 2021 19:44:12 +0000 (21:44 +0200)]
lib: srdb1 - added x_context column to topos tables

2 weeks agomodules: readme files regenerated - textopsx ... [skip ci]
Kamailio Dev [Wed, 31 Mar 2021 14:16:15 +0000 (16:16 +0200)]
modules: readme files regenerated - textopsx ... [skip ci]

2 weeks 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

2 weeks agomodules: readme files regenerated - tls ... [skip ci]
Kamailio Dev [Wed, 31 Mar 2021 14:01:16 +0000 (16:01 +0200)]
modules: readme files regenerated - tls ... [skip ci]

2 weeks agotopos: add functionality to set a variable host part for the Contact header
Henning Westerholt [Wed, 31 Mar 2021 13:28:30 +0000 (13:28 +0000)]
topos: add functionality to set a variable host part for the Contact header

- add functionality to set a variable host part for the Contact header
- could be refactored to use a xavp instead of avp, together with the other
  parameters in this area ([a,b]_contact_avp)

2 weeks agotls: docs for tls_set_connect_server_id(srvid)
Daniel-Constantin Mierla [Wed, 31 Mar 2021 13:51:04 +0000 (15:51 +0200)]
tls: docs for tls_set_connect_server_id(srvid)

2 weeks agotls: added tls_set_connect_server_id(srvid) function
Daniel-Constantin Mierla [Wed, 31 Mar 2021 13:44:41 +0000 (15:44 +0200)]
tls: added tls_set_connect_server_id(srvid) function

- set the server id of the tls profile to be used by next client
connect, being reset after use
- alternative to use of xavp to specify server id for client profile for
the cases when xavps are no longer available (e.g., after
event_route[tm:local-request])