sip-router
2 days agomodules: readme files regenerated - auth_identity ... [skip ci] master
Kamailio Dev [Tue, 24 May 2022 10:31:17 +0000 (12:31 +0200)]
modules: readme files regenerated - auth_identity ... [skip ci]

2 days agoauth_identity: docs - type for accept_pem_certs param
Daniel-Constantin Mierla [Tue, 24 May 2022 10:21:53 +0000 (12:21 +0200)]
auth_identity: docs - type for accept_pem_certs param

2 days agoauth_identity: removed auth_identity.xml from source folder
Daniel-Constantin Mierla [Tue, 24 May 2022 10:19:38 +0000 (12:19 +0200)]
auth_identity: removed auth_identity.xml from source folder

- there is one in doc/ subfolder

2 days agomodules: readme files regenerated - ims_ipsec_pcscf ... [skip ci]
Kamailio Dev [Tue, 24 May 2022 08:46:28 +0000 (10:46 +0200)]
modules: readme files regenerated - ims_ipsec_pcscf ... [skip ci]

2 days agoIMS, P-CSCF: fix issues with UEs and ipsec tunnel (#3094)
Kristiyan Peychev [Tue, 24 May 2022 08:39:47 +0000 (11:39 +0300)]
IMS, P-CSCF: fix issues with UEs and ipsec tunnel (#3094)

* ims_ipsec_pcscf: fix issues with UEs and ipsec tunnel

UEs were not sending certain replies through the ipsec tunnel

* ims_ipsec_pcscf: fix issues pointed out in code review

Remove error logs which were not errors at all.
Fix issue in clean_spi_list where the free SPI list would get completely wiped.

* ims_ipsec_pcscf: lower log severity from error to info

Co-authored-by: Teodor Mihov <teodor.mihov@flolive.net>
3 days agoINSTALL, README: updated version and links
Daniel-Constantin Mierla [Mon, 23 May 2022 06:18:04 +0000 (08:18 +0200)]
INSTALL, README: updated version and links

5 days agodialog: fix ki_dlg_get_var() introduced previously
Daniel-Constantin Mierla [Sat, 21 May 2022 06:21:49 +0000 (08:21 +0200)]
dialog: fix ki_dlg_get_var() introduced previously

5 days agocore: const correctness
Liviu Andron [Fri, 20 May 2022 10:30:46 +0000 (12:30 +0200)]
core: const correctness

benign const qualifiers in inline functions

5 days agodialog: reworked kemi export for dlg_get_var()
Daniel-Constantin Mierla [Fri, 20 May 2022 14:07:56 +0000 (16:07 +0200)]
dialog: reworked kemi export for dlg_get_var()

- return SR_KEMIP_XVAL type

6 days agomodules: readme files regenerated - registrar ... [skip ci]
Kamailio Dev [Fri, 20 May 2022 11:31:17 +0000 (13:31 +0200)]
modules: readme files regenerated - registrar ... [skip ci]

6 days agoregistrar: docs for reg_from_user() function
Daniel-Constantin Mierla [Fri, 20 May 2022 11:26:00 +0000 (13:26 +0200)]
registrar: docs for reg_from_user() function

6 days agoregistrar: added function reg_from_user(ultable, uri, mode)
Daniel-Constantin Mierla [Fri, 20 May 2022 11:17:24 +0000 (13:17 +0200)]
registrar: added function reg_from_user(ultable, uri, mode)

- return true if the message came from the user identified uri parameter
  by matching agains its location records

6 days agocore: mod fixup helpers for params sequence str, str, int
Daniel-Constantin Mierla [Fri, 20 May 2022 11:15:43 +0000 (13:15 +0200)]
core: mod fixup helpers for params sequence str, str, int

6 days agoseas: proper print formater %.*s instead of %*.s
Daniel-Constantin Mierla [Fri, 20 May 2022 07:51:44 +0000 (09:51 +0200)]
seas: proper print formater %.*s instead of %*.s

6 days agokazoo: proper print formater %.*s instead of %*.s
Daniel-Constantin Mierla [Fri, 20 May 2022 07:50:27 +0000 (09:50 +0200)]
kazoo: proper print formater %.*s instead of %*.s

8 days agosiprepo: set name for timer function
Daniel-Constantin Mierla [Wed, 18 May 2022 07:18:23 +0000 (09:18 +0200)]
siprepo: set name for timer function

9 days agomodules: readme files regenerated - dialog ... [skip ci]
Kamailio Dev [Tue, 17 May 2022 10:46:29 +0000 (12:46 +0200)]
modules: readme files regenerated - dialog ... [skip ci]

9 days agodialog: dlg_set_var(callid, ft, tt, key, value)
Victor Seva [Wed, 11 May 2022 13:50:14 +0000 (15:50 +0200)]
dialog: dlg_set_var(callid, ft, tt, key, value)

9 days agodialog: dlg_get_var(ci, ft, tt, key, dst_var)
Victor Seva [Fri, 6 May 2022 11:30:01 +0000 (13:30 +0200)]
dialog: dlg_get_var(ci, ft, tt, key, dst_var)

9 days agotm: fix kemi t_relay_to_proto() variants for tls 3110/head
Daniel-Constantin Mierla [Tue, 17 May 2022 10:30:24 +0000 (12:30 +0200)]
tm: fix kemi t_relay_to_proto() variants for tls

9 days agoxlog: docs - updated section ids
Daniel-Constantin Mierla [Mon, 16 May 2022 16:51:51 +0000 (18:51 +0200)]
xlog: docs - updated section ids

9 days agokazoo: docs - removed unnecessary xinclude entity
Daniel-Constantin Mierla [Mon, 16 May 2022 16:51:25 +0000 (18:51 +0200)]
kazoo: docs - removed unnecessary xinclude entity

10 days agocore: tcp main - check setsockopt() result for SO_LINGER
Daniel-Constantin Mierla [Mon, 16 May 2022 11:48:28 +0000 (13:48 +0200)]
core: tcp main - check setsockopt() result for SO_LINGER

10 days agomodules: readme files regenerated - dialog ... [skip ci]
Kamailio Dev [Mon, 16 May 2022 07:16:18 +0000 (09:16 +0200)]
modules: readme files regenerated - dialog ... [skip ci]

10 days agodialog: docs -remark wabout to-tag parameter for dlg_get()
Daniel-Constantin Mierla [Mon, 16 May 2022 07:09:42 +0000 (09:09 +0200)]
dialog: docs -remark wabout to-tag parameter for dlg_get()

10 days agocore: add an option to trigger also an RST on tcp connection close
Rick Barenthin [Tue, 3 May 2022 17:42:31 +0000 (19:42 +0200)]
core: add an option to trigger also an RST on tcp connection close

- This gives an option to also send RST in case kamailio closes the
  connection. There are cases where a FIN,ACK back forth leaves
  the connection in the host in TIME_WAIT state, but the ports on both
  sides are fixed. This leads to no request can send until
  the TIME_WAIT state is gone.

10 days agosiptrace: fix hardcoded PROTO_UDP in duplicate_uri module parameter
Dennis Yurasov [Sun, 15 May 2022 18:49:18 +0000 (21:49 +0300)]
siptrace: fix hardcoded PROTO_UDP in duplicate_uri module parameter

- possibility to switch to other then UDP transport protocol in diplicate_uri

12 days agomodules: readme files regenerated - pv ... [skip ci]
Kamailio Dev [Fri, 13 May 2022 14:16:25 +0000 (16:16 +0200)]
modules: readme files regenerated - pv ... [skip ci]

12 days agopv: allow xavp_push_dst() in request/branch/failure_rotue
Daniel-Constantin Mierla [Fri, 13 May 2022 14:07:04 +0000 (16:07 +0200)]
pv: allow xavp_push_dst() in request/branch/failure_rotue

12 days agopv: docs for xavp_push_dst()
Daniel-Constantin Mierla [Fri, 13 May 2022 14:03:40 +0000 (16:03 +0200)]
pv: docs for xavp_push_dst()

13 days agopv: xavp_push_dst(xname) function
Daniel-Constantin Mierla [Fri, 13 May 2022 13:52:26 +0000 (15:52 +0200)]
pv: xavp_push_dst(xname) function

- push a destination from XAVP attributes

13 days agocore: socket info - function to get socket by listen or advertise
Daniel-Constantin Mierla [Fri, 13 May 2022 13:51:51 +0000 (15:51 +0200)]
core: socket info - function to get socket by listen or advertise

13 days agomodules: readme files regenerated - registrar ... [skip ci]
Kamailio Dev [Thu, 12 May 2022 17:31:15 +0000 (19:31 +0200)]
modules: readme files regenerated - registrar ... [skip ci]

13 days agoregistrar: docs - removed extra closing tag
Daniel-Constantin Mierla [Thu, 12 May 2022 17:23:06 +0000 (19:23 +0200)]
registrar: docs - removed extra closing tag

13 days agomodules: readme files regenerated - registrar ... [skip ci]
Kamailio Dev [Thu, 12 May 2022 17:01:19 +0000 (19:01 +0200)]
modules: readme files regenerated - registrar ... [skip ci]

13 days agoregistrar: proper attribute name for contact record xavp
Daniel-Constantin Mierla [Thu, 12 May 2022 16:49:06 +0000 (18:49 +0200)]
registrar: proper attribute name for contact record xavp

13 days agoregistrar: docs for lookup_xavp(...)
Daniel-Constantin Mierla [Thu, 12 May 2022 16:41:32 +0000 (18:41 +0200)]
registrar: docs for lookup_xavp(...)

13 days agoregistrar: added lookup_xavp("ultable", "uri", "rxname", "cxname")
Daniel-Constantin Mierla [Thu, 12 May 2022 16:18:14 +0000 (18:18 +0200)]
registrar: added lookup_xavp("ultable", "uri", "rxname", "cxname")

- lookup of uri and store record and contact attributes in xavps

2 weeks agocore: str - helerp macros to set str variable with char* value
Daniel-Constantin Mierla [Thu, 12 May 2022 11:51:52 +0000 (13:51 +0200)]
core: str - helerp macros to set str variable with char* value

2 weeks agopv: declare pv wrapper function with two parameters
Daniel-Constantin Mierla [Thu, 12 May 2022 11:20:50 +0000 (13:20 +0200)]
pv: declare pv wrapper function with two parameters

2 weeks agoregistrar: kemi functions to get $ulc(...) attributes
Daniel-Constantin Mierla [Thu, 12 May 2022 09:21:46 +0000 (11:21 +0200)]
registrar: kemi functions to get $ulc(...) attributes

2 weeks agopv: kemi function to get $shvinc(name) value
Daniel-Constantin Mierla [Wed, 11 May 2022 14:42:19 +0000 (16:42 +0200)]
pv: kemi function to get $shvinc(name) value

2 weeks agopv: use fixup get int value to evaluate the index parameter
Daniel-Constantin Mierla [Wed, 11 May 2022 14:16:47 +0000 (16:16 +0200)]
pv: use fixup get int value to evaluate the index parameter

2 weeks agopv: added $shvinc(name) - return incremented value of $shv(inc)
Daniel-Constantin Mierla [Wed, 11 May 2022 14:11:42 +0000 (16:11 +0200)]
pv: added $shvinc(name) - return incremented value of $shv(inc)

- leverage internal mutex to avoid config locks

2 weeks agomodules: readme files regenerated - pv ... [skip ci]
Kamailio Dev [Tue, 10 May 2022 17:46:22 +0000 (19:46 +0200)]
modules: readme files regenerated - pv ... [skip ci]

2 weeks agopv: docs for xavp_lshift() function
Daniel-Constantin Mierla [Tue, 10 May 2022 17:42:48 +0000 (19:42 +0200)]
pv: docs for xavp_lshift() function

2 weeks agopv: config function to shift xavps to left with rotation
Daniel-Constantin Mierla [Tue, 10 May 2022 17:35:52 +0000 (19:35 +0200)]
pv: config function to shift xavps to left with rotation

2 weeks agocore: xavp - helper function to shift xavps to left with rotation
Daniel-Constantin Mierla [Tue, 10 May 2022 17:35:02 +0000 (19:35 +0200)]
core: xavp - helper function to shift xavps to left with rotation

2 weeks agomodules: readme files regenerated - geoip2 ... [skip ci]
Kamailio Dev [Mon, 9 May 2022 16:46:15 +0000 (18:46 +0200)]
modules: readme files regenerated - geoip2 ... [skip ci]

2 weeks agogeoip2: log errors for cases where the container could not evaluated and add docs
Henning Westerholt [Mon, 9 May 2022 16:43:22 +0000 (16:43 +0000)]
geoip2: log errors for cases where the container could not evaluated and add docs

- log errors for cases where the container could not evaluated due to missing
  initialization of the pvc container because no actual access is done in the cfg
- add documentation describing that at least one access to the container is necessary
  for the match function to work correctly

2 weeks agomtree: remove single-used small function
Daniel-Constantin Mierla [Mon, 9 May 2022 09:19:16 +0000 (11:19 +0200)]
mtree: remove single-used small function

2 weeks agodialog: open db connection in POSTCHILDINIT callback for DB_MODE_SHUTDOWN
Daniel-Constantin Mierla [Mon, 9 May 2022 07:16:49 +0000 (09:16 +0200)]
dialog: open db connection in POSTCHILDINIT callback for DB_MODE_SHUTDOWN

2 weeks agousrloc: connect to db for main process in PROC_POSTCHILDINIT child init
Daniel-Constantin Mierla [Mon, 9 May 2022 07:05:18 +0000 (09:05 +0200)]
usrloc: connect to db for main process in PROC_POSTCHILDINIT child init

2 weeks agoapp_squirrel: updated squirrel interpreter to latest git version (3.2+)
Daniel-Constantin Mierla [Sun, 8 May 2022 19:35:07 +0000 (21:35 +0200)]
app_squirrel: updated squirrel interpreter to latest git version (3.2+)

2 weeks agoapp_jsdt: duktape interpreter upgraded to v2.7.0
Daniel-Constantin Mierla [Sat, 7 May 2022 18:20:42 +0000 (20:20 +0200)]
app_jsdt: duktape interpreter upgraded to v2.7.0

2 weeks agouserblocklist: fix function comment, related to gh #3102
Henning Westerholt [Sun, 8 May 2022 15:33:56 +0000 (15:33 +0000)]
userblocklist: fix function comment, related to gh #3102

2 weeks agouserblocklist: fix restart errors
Stefan Mititelu [Thu, 5 May 2022 12:14:01 +0000 (15:14 +0300)]
userblocklist: fix restart errors

2 weeks agomodules: readme files regenerated - acc ... [skip ci]
Kamailio Dev [Sun, 8 May 2022 15:31:17 +0000 (17:31 +0200)]
modules: readme files regenerated - acc ... [skip ci]

2 weeks agoutils: Fix typos
Bastian Triller [Thu, 5 May 2022 16:28:28 +0000 (18:28 +0200)]
utils: Fix typos

2 weeks agouid_auth_db: Fix typos
Bastian Triller [Thu, 5 May 2022 16:27:33 +0000 (18:27 +0200)]
uid_auth_db: Fix typos

2 weeks agotls: Fix typos
Bastian Triller [Thu, 5 May 2022 16:26:57 +0000 (18:26 +0200)]
tls: Fix typos

2 weeks agosanity: Fix typos
Bastian Triller [Thu, 5 May 2022 16:25:59 +0000 (18:25 +0200)]
sanity: Fix typos

2 weeks agopike: Fix typos
Bastian Triller [Thu, 5 May 2022 16:25:31 +0000 (18:25 +0200)]
pike: Fix typos

2 weeks agoldap: Fix typos
Bastian Triller [Thu, 5 May 2022 16:24:53 +0000 (18:24 +0200)]
ldap: Fix typos

2 weeks agoctl: Fix typos
Bastian Triller [Thu, 5 May 2022 16:24:21 +0000 (18:24 +0200)]
ctl: Fix typos

2 weeks agoauth: Fix typos
Bastian Triller [Thu, 5 May 2022 16:24:00 +0000 (18:24 +0200)]
auth: Fix typos

2 weeks agoacc: Fix typos
Bastian Triller [Thu, 5 May 2022 16:22:28 +0000 (18:22 +0200)]
acc: Fix typos

2 weeks agolib: Fix typos
Bastian Triller [Thu, 5 May 2022 16:22:00 +0000 (18:22 +0200)]
lib: Fix typos

2 weeks agocore: Fix typos
Bastian Triller [Thu, 5 May 2022 16:21:23 +0000 (18:21 +0200)]
core: Fix typos

2 weeks agopkg: Fix typos
Bastian Triller [Thu, 5 May 2022 16:20:11 +0000 (18:20 +0200)]
pkg: Fix typos

2 weeks agodoc: Fix typos
Bastian Triller [Thu, 5 May 2022 16:19:21 +0000 (18:19 +0200)]
doc: Fix typos

2 weeks agoipops: add dns container in dns_update_pv() if not created before
Daniel-Constantin Mierla [Fri, 6 May 2022 11:50:13 +0000 (13:50 +0200)]
ipops: add dns container in dns_update_pv() if not created before

- dns context creation relied on using the dns variable in some way, the
  main purpose of dns_update_pv() being to fill the variable, but one may
  want to use it for testing only

2 weeks agoipops: warning when too many dns containers are created
Daniel-Constantin Mierla [Fri, 6 May 2022 10:46:28 +0000 (12:46 +0200)]
ipops: warning when too many dns containers are created

2 weeks agodb_berkeley: reset lkey to avoid double free
Daniel-Constantin Mierla [Thu, 5 May 2022 17:52:11 +0000 (19:52 +0200)]
db_berkeley: reset lkey to avoid double free

3 weeks agopkg/kamailio/deb: version set 5.7.0~dev0 [skip ci]
Victor Seva [Thu, 5 May 2022 10:50:11 +0000 (12:50 +0200)]
pkg/kamailio/deb: version set 5.7.0~dev0 [skip ci]

3 weeks agoMakefile.defs: version set to 5.7.0-dev0
Daniel-Constantin Mierla [Thu, 5 May 2022 10:11:31 +0000 (12:11 +0200)]
Makefile.defs: version set to 5.7.0-dev0

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

3 weeks agoMakefile.defs: version set to 5.6.0-pre2
Daniel-Constantin Mierla [Thu, 5 May 2022 09:40:17 +0000 (11:40 +0200)]
Makefile.defs: version set to 5.6.0-pre2

3 weeks agopv: check parameters and fix log message for invalid values for {s.fmtline...}
Daniel-Constantin Mierla [Thu, 5 May 2022 09:38:41 +0000 (11:38 +0200)]
pv: check parameters and fix log message for invalid values for {s.fmtline...}

3 weeks agosanity: fix sanity_reply() function name for config exports
Daniel-Constantin Mierla [Wed, 4 May 2022 14:33:47 +0000 (16:33 +0200)]
sanity: fix sanity_reply() function name for config exports

3 weeks agoRevert "sanity: fix sanity_reply function name for config exports"
Daniel-Constantin Mierla [Wed, 4 May 2022 14:33:08 +0000 (16:33 +0200)]
Revert "sanity: fix sanity_reply function name for config exports"

This reverts commit eeefe7dcc2af90e7def8f1698e8f79d0dd020043.

3 weeks agosanity: fix sanity_reply function name for config exports
Daniel-Constantin Mierla [Wed, 4 May 2022 14:25:03 +0000 (16:25 +0200)]
sanity: fix sanity_reply function name for config exports

3 weeks agocdp: close socket in case of error
Daniel-Constantin Mierla [Wed, 4 May 2022 12:55:01 +0000 (14:55 +0200)]
cdp: close socket in case of error

3 weeks agoims_ipsec_pcscf: safety check for pcontact search result
Daniel-Constantin Mierla [Wed, 4 May 2022 08:02:18 +0000 (10:02 +0200)]
ims_ipsec_pcscf: safety check for pcontact search result

3 weeks agoims_ipsec_pcscf: clean local parsed tm uas request headers
Daniel-Constantin Mierla [Wed, 4 May 2022 07:57:53 +0000 (09:57 +0200)]
ims_ipsec_pcscf: clean local parsed tm uas request headers

3 weeks agopresence: rename local variable that conflicts with tm define
Daniel-Constantin Mierla [Wed, 4 May 2022 07:05:03 +0000 (09:05 +0200)]
presence: rename local variable that conflicts with tm define

3 weeks agotm: relocated defines not useful in the header file
Daniel-Constantin Mierla [Wed, 4 May 2022 07:00:55 +0000 (09:00 +0200)]
tm: relocated defines not useful in the header file

3 weeks agotm: function to clean local parsed headers and body for uas request
Daniel-Constantin Mierla [Wed, 4 May 2022 06:56:14 +0000 (08:56 +0200)]
tm: function to clean local parsed headers and body for uas request

- some modules use t->uas.request for getting attributes of the
  transaction request when processing the response, which may result in
  pointers to private memory being stored in the shared memory, causing
  crashes when other processes try to use the pointers

3 weeks agolcr: init variable for fixing warning report
Daniel-Constantin Mierla [Tue, 3 May 2022 18:58:32 +0000 (20:58 +0200)]
lcr: init variable for fixing warning report

3 weeks agomodules: readme files regenerated - cfgutils ... [skip ci]
Kamailio Dev [Tue, 3 May 2022 18:01:15 +0000 (20:01 +0200)]
modules: readme files regenerated - cfgutils ... [skip ci]

3 weeks agocfgutils: improve example for $RANDOM
Henning Westerholt [Tue, 3 May 2022 17:45:49 +0000 (17:45 +0000)]
cfgutils: improve example for $RANDOM

3 weeks agomsilo: skip invalid stored records
Daniel-Constantin Mierla [Tue, 3 May 2022 17:19:52 +0000 (19:19 +0200)]
msilo: skip invalid stored records

3 weeks agosnmpstats: fix allocator sizeof operand mismatch
Daniel-Constantin Mierla [Tue, 3 May 2022 17:07:41 +0000 (19:07 +0200)]
snmpstats: fix allocator sizeof operand mismatch

3 weeks agocore: clang format for sip msg clone code
Daniel-Constantin Mierla [Tue, 3 May 2022 10:08:04 +0000 (12:08 +0200)]
core: clang format for sip msg clone code

3 weeks agopv_headers: fix possible mem. overflow issue and wrong size string
Fabricio Santolin da Silva [Thu, 28 Apr 2022 07:34:27 +0000 (09:34 +0200)]
pv_headers: fix possible mem. overflow issue and wrong size string

- remove a variable creation
- change from using snprintf to memset (no more \0 at last position)
- change the destination of a allocated space being smaller than the source

3 weeks agomodules: readme files regenerated - userblocklist ... [skip ci]
Kamailio Dev [Mon, 2 May 2022 15:01:19 +0000 (17:01 +0200)]
modules: readme files regenerated - userblocklist ... [skip ci]

3 weeks agouserblocklist: add RPC functions
Stefan Mititelu [Mon, 18 Apr 2022 11:52:09 +0000 (14:52 +0300)]
userblocklist: add RPC functions

3 weeks agopua_dialoginfo: Determine dialog event types in mod_init
Bastian Triller [Mon, 11 Apr 2022 12:16:30 +0000 (14:16 +0200)]
pua_dialoginfo: Determine dialog event types in mod_init

Determine dialog event types for dialog callback on module
initialization, since these will not change.

3 weeks agocore/crypto: fix several mismatched bound warnings
Ovidiu Sas [Fri, 29 Apr 2022 14:55:51 +0000 (14:55 +0000)]
core/crypto: fix several mismatched bound warnings

3 weeks agocdp: use same data type for size computing as pointer type
Daniel-Constantin Mierla [Sun, 1 May 2022 14:28:41 +0000 (16:28 +0200)]
cdp: use same data type for size computing as pointer type

3 weeks agosnmpstats: use same type as the pointer for sizeof
Daniel-Constantin Mierla [Sat, 30 Apr 2022 15:21:42 +0000 (17:21 +0200)]
snmpstats: use same type as the pointer for sizeof