kamailio
2 months agotextops: check session sendrecv_mode in is_audio_on_hold rfc3264-on-session 2813/head
Luis Azedo [Thu, 5 Aug 2021 11:32:32 +0000 (12:32 +0100)]
textops: check session sendrecv_mode in is_audio_on_hold

- if sendrecv_mode is not set in media, check if its set in session

2 months agocore: parse session sendrecv_mode in sdp
Luis Azedo [Thu, 5 Aug 2021 11:28:04 +0000 (12:28 +0100)]
core: parse session sendrecv_mode in sdp

- some user agents send a=sendonly as session attribute which apply to all media streams

2 months agotextops: find start of header body for filter functions
Daniel-Constantin Mierla [Mon, 2 Aug 2021 14:08:29 +0000 (16:08 +0200)]
textops: find start of header body for filter functions

- GH #2748

2 months agodb_redis: fix broken pipe issue, if redis server with timeout setting.
FredWH [Mon, 28 Jun 2021 06:46:25 +0000 (14:46 +0800)]
db_redis: fix broken pipe issue, if redis server with timeout setting.

- issue #2764

2 months agotlsa: imported README file
Daniel-Constantin Mierla [Mon, 2 Aug 2021 10:38:49 +0000 (12:38 +0200)]
tlsa: imported README file

2 months agoMakefile.groups: group for tlsa module
Daniel-Constantin Mierla [Mon, 2 Aug 2021 10:33:43 +0000 (12:33 +0200)]
Makefile.groups: group for tlsa module

2 months agotlsa: new (pseudo) module to compile tls module linked statically with libssl
Daniel-Constantin Mierla [Mon, 2 Aug 2021 10:30:21 +0000 (12:30 +0200)]
tlsa: new (pseudo) module to compile tls module linked statically with libssl

2 months agotls: set module name using MOD_NAME define
Daniel-Constantin Mierla [Mon, 2 Aug 2021 10:29:25 +0000 (12:29 +0200)]
tls: set module name using MOD_NAME define

2 months agosiputils: functions to compare uri and aor exported to kemi
Daniel-Constantin Mierla [Mon, 2 Aug 2021 07:01:46 +0000 (09:01 +0200)]
siputils: functions to compare uri and aor exported to kemi

2 months agocore: cmp hdrname fix on checking type of second header
Daniel-Constantin Mierla [Sun, 1 Aug 2021 07:41:30 +0000 (09:41 +0200)]
core: cmp hdrname fix on checking type of second header

2 months agocore: enables compilation with debug symbols by default for other architectures
Sergey Safarov [Sun, 1 Aug 2021 11:40:26 +0000 (11:40 +0000)]
core: enables compilation with debug symbols by default for other architectures

- enables compilation with debug symbols by default for other architectures in core
- pull request GH #2811
- closes GH #2789

2 months agocore: parse to compare header names
Daniel-Constantin Mierla [Sat, 31 Jul 2021 10:03:32 +0000 (12:03 +0200)]
core: parse to compare header names

2 months agomodules: readme files regenerated - siputils ... [skip ci]
Kamailio Dev [Fri, 30 Jul 2021 18:31:13 +0000 (20:31 +0200)]
modules: readme files regenerated - siputils ... [skip ci]

2 months agosiputils: added cmp_hdr_name(hname1, hname2)
Daniel-Constantin Mierla [Fri, 30 Jul 2021 14:04:30 +0000 (16:04 +0200)]
siputils: added cmp_hdr_name(hname1, hname2)

2 months agosworker: KSR.sworker.active() exported to kemi
Daniel-Constantin Mierla [Fri, 30 Jul 2021 11:31:30 +0000 (13:31 +0200)]
sworker: KSR.sworker.active() exported to kemi

- equivalent to existing sworker_active() config function

2 months agomodules: readme files regenerated - textopsx ... [skip ci]
Kamailio Dev [Fri, 30 Jul 2021 10:46:13 +0000 (12:46 +0200)]
modules: readme files regenerated - textopsx ... [skip ci]

2 months agotextopsx: docs - fix example for body line iterator
Daniel-Constantin Mierla [Fri, 30 Jul 2021 10:39:32 +0000 (12:39 +0200)]
textopsx: docs - fix example for body line iterator

2 months agomodules: readme files regenerated - textopsx ... [skip ci]
Kamailio Dev [Fri, 30 Jul 2021 10:31:15 +0000 (12:31 +0200)]
modules: readme files regenerated - textopsx ... [skip ci]

2 months agotextopsx: added body line iterator functions
Daniel-Constantin Mierla [Fri, 30 Jul 2021 10:24:02 +0000 (12:24 +0200)]
textopsx: added body line iterator functions

- iterate through lines of message body, get the value via
$blitval(iname)

2 months agomodules: readme files regenerated - textopsx ... [skip ci]
Kamailio Dev [Fri, 30 Jul 2021 07:31:22 +0000 (09:31 +0200)]
modules: readme files regenerated - textopsx ... [skip ci]

2 months agotextopsx: added hf_iterator_prev() function
Daniel-Constantin Mierla [Fri, 30 Jul 2021 07:10:16 +0000 (09:10 +0200)]
textopsx: added hf_iterator_prev() function

2 months agocore: main - remove commented debug function
Daniel-Constantin Mierla [Thu, 29 Jul 2021 12:17:37 +0000 (14:17 +0200)]
core: main - remove commented debug function

2 months agomodules: readme files regenerated - debugger ... [skip ci]
Kamailio Dev [Thu, 29 Jul 2021 11:46:17 +0000 (13:46 +0200)]
modules: readme files regenerated - debugger ... [skip ci]

2 months agodebugger: added cfgtrace_format parameter
Daniel-Constantin Mierla [Thu, 29 Jul 2021 10:59:13 +0000 (12:59 +0200)]
debugger: added cfgtrace_format parameter

- control what is printed in the cfgtrace log message (e.g., do not
print config file path)

2 months agomodules: readme files regenerated - textopsx ... [skip ci]
Kamailio Dev [Thu, 29 Jul 2021 07:16:28 +0000 (09:16 +0200)]
modules: readme files regenerated - textopsx ... [skip ci]

2 months agotextopsx: added hf_iterator_insert() function
Daniel-Constantin Mierla [Thu, 29 Jul 2021 07:01:25 +0000 (09:01 +0200)]
textopsx: added hf_iterator_insert() function

2 months agocore: pvapi - reinitialize _pv_print_buffer_index when adjusting the slots
Daniel-Constantin Mierla [Tue, 27 Jul 2021 14:52:12 +0000 (16:52 +0200)]
core: pvapi - reinitialize _pv_print_buffer_index when adjusting the slots

- GH #2798

2 months agomodules: readme files regenerated - outbound ... [skip ci]
Kamailio Dev [Tue, 27 Jul 2021 14:01:15 +0000 (16:01 +0200)]
modules: readme files regenerated - outbound ... [skip ci]

2 months agooutbound: add flow_token_secret param
Michael Furmur [Sat, 16 Jan 2021 16:26:15 +0000 (18:26 +0200)]
outbound: add flow_token_secret param

- calculate ob_key as SHA1(flow_token_secret) if specified
- keep old behavior with randomly generated ob_key if not specified

2 months agopv: added variable $msgbuf(index)
Daniel-Constantin Mierla [Tue, 27 Jul 2021 13:44:38 +0000 (15:44 +0200)]
pv: added variable $msgbuf(index)

- get/set the character at the position index in the message buffer

2 months agopv_headers: pvh_set_header, remove values to set null when necessary
Victor Seva [Tue, 27 Jul 2021 08:52:21 +0000 (10:52 +0200)]
pv_headers: pvh_set_header, remove values to set null when necessary

* fix pvh_set_xavi for SR_XTYPE_NULL

2 months agomodules: readme files regenerated - textopsx ... [skip ci]
Kamailio Dev [Mon, 26 Jul 2021 15:31:24 +0000 (17:31 +0200)]
modules: readme files regenerated - textopsx ... [skip ci]

2 months agotextopsx: docs for hf_iterator_append()
Daniel-Constantin Mierla [Mon, 26 Jul 2021 15:15:38 +0000 (17:15 +0200)]
textopsx: docs for hf_iterator_append()

2 months agotextopsx: added hf_iterator_append(iname, htext) function
Daniel-Constantin Mierla [Mon, 26 Jul 2021 15:02:01 +0000 (17:02 +0200)]
textopsx: added hf_iterator_append(iname, htext) function

2 months agomodules: readme files regenerated - ruxc ... [skip ci]
Kamailio Dev [Sat, 24 Jul 2021 06:31:20 +0000 (08:31 +0200)]
modules: readme files regenerated - ruxc ... [skip ci]

2 months agoruxc: added http_reuse modparam
Daniel-Constantin Mierla [Sat, 24 Jul 2021 06:16:49 +0000 (08:16 +0200)]
ruxc: added http_reuse modparam

- enable connection reuse

2 months agomodules: readme files regenerated - rtpengine ... [skip ci]
Kamailio Dev [Fri, 23 Jul 2021 17:46:14 +0000 (19:46 +0200)]
modules: readme files regenerated - rtpengine ... [skip ci]

2 months agortpengine: add un/silence_media() methods
Richard Fuchs [Fri, 23 Jul 2021 17:34:18 +0000 (13:34 -0400)]
rtpengine: add un/silence_media() methods

2 months agopv_headers: fix removal of all values when using PV_IDX_ALL
Victor Seva [Fri, 23 Jul 2021 13:56:11 +0000 (15:56 +0200)]
pv_headers: fix removal of all values when using PV_IDX_ALL

$(x_hdr(whatever)[*]) = "hello" was just removing the first value

2 months agomodules: readme files regenerated - sworker ... [skip ci]
Kamailio Dev [Thu, 22 Jul 2021 13:46:15 +0000 (15:46 +0200)]
modules: readme files regenerated - sworker ... [skip ci]

2 months agosworker: docs - fixed small typo
Daniel-Constantin Mierla [Thu, 22 Jul 2021 13:34:25 +0000 (15:34 +0200)]
sworker: docs - fixed small typo

2 months agorr: all "record_route_...()" functions consider custom user AVP
valentin [Fri, 25 Jun 2021 13:51:18 +0000 (15:51 +0200)]
rr: all "record_route_...()" functions consider custom user AVP

Until this fix, only the function record_route() considered the
value of the custom user AVP (if present). The functions
record_route_preset() and record_route_advertised_address(),
on the other hand, ignored the value of the custom user AVP,
even if it was presnt.
Now all three functions, record_route(), record_route_preset()
and record_route_advertised_address(), consider the value of the
custom user VP, if it is present.

2 months agomodules: readme files regenerated - ruxc ... [skip ci]
Kamailio Dev [Thu, 22 Jul 2021 08:01:23 +0000 (10:01 +0200)]
modules: readme files regenerated - ruxc ... [skip ci]

2 months agoruxc: docs for http_tlsmode parameter
Daniel-Constantin Mierla [Wed, 21 Jul 2021 14:52:48 +0000 (16:52 +0200)]
ruxc: docs for http_tlsmode parameter

2 months agoruxc: added http_tlsmode parameter
Daniel-Constantin Mierla [Wed, 21 Jul 2021 14:22:42 +0000 (16:22 +0200)]
ruxc: added http_tlsmode parameter

- if set to 1, it connects only to trusted https websites
- default 0 - accept all certificates

2 months agomodules: readme files regenerated - ruxc ... [skip ci]
Kamailio Dev [Mon, 19 Jul 2021 15:31:13 +0000 (17:31 +0200)]
modules: readme files regenerated - ruxc ... [skip ci]

2 months agoruxc: docs - fixed typo in function name
Daniel-Constantin Mierla [Mon, 19 Jul 2021 14:35:36 +0000 (16:35 +0200)]
ruxc: docs - fixed typo in function name

2 months agoruxc: set response variable
Daniel-Constantin Mierla [Mon, 19 Jul 2021 08:19:14 +0000 (10:19 +0200)]
ruxc: set response variable

2 months agoMakefile.groups: added group for ruxc module
Daniel-Constantin Mierla [Mon, 19 Jul 2021 06:38:55 +0000 (08:38 +0200)]
Makefile.groups: added group for ruxc module

2 months agoruxc: new module with utility functions from libruxc
Daniel-Constantin Mierla [Mon, 19 Jul 2021 06:32:48 +0000 (08:32 +0200)]
ruxc: new module with utility functions from libruxc

- first target is to provide http get/post functions that do not depend
on libcurl+libssl

3 months agokemix: added KSR.kx.ifdef() and KSR.kx.ifndef()
Daniel-Constantin Mierla [Wed, 14 Jul 2021 08:08:50 +0000 (10:08 +0200)]
kemix: added KSR.kx.ifdef() and KSR.kx.ifndef()

- return true/false if a specified id is defined or not

3 months agomodules: readme files regenerated - rtpengine ... [skip ci]
Kamailio Dev [Tue, 13 Jul 2021 13:16:15 +0000 (15:16 +0200)]
modules: readme files regenerated - rtpengine ... [skip ci]

3 months agortpengine: small debug log fix after merge of #2800
Henning Westerholt [Tue, 13 Jul 2021 13:04:10 +0000 (13:04 +0000)]
rtpengine: small debug log fix after merge of #2800

3 months agortpengine: add mode 2 for rtpengine_allow_op to return only manually disabled nodes
david [Tue, 13 Jul 2021 10:34:09 +0000 (12:34 +0200)]
rtpengine: add mode 2 for rtpengine_allow_op to return only manually disabled nodes

3 months agortpengine: On rtpengine_allow_op, return node only if rtpengine is manually disabled
david [Mon, 12 Jul 2021 09:18:25 +0000 (11:18 +0200)]
rtpengine: On rtpengine_allow_op, return node only if rtpengine is manually disabled

3 months agopv: added $via1(...) - return attributes of 2nd via
Daniel-Constantin Mierla [Tue, 13 Jul 2021 07:12:17 +0000 (09:12 +0200)]
pv: added $via1(...) - return attributes of 2nd via

3 months agocore: set MAX_WARNING_LEN to 1024
Daniel-Constantin Mierla [Mon, 12 Jul 2021 12:01:40 +0000 (14:01 +0200)]
core: set MAX_WARNING_LEN to 1024

- 256 can be too short
- close GH #2799

3 months agomodules: readme files regenerated - textopsx ... [skip ci]
Kamailio Dev [Mon, 12 Jul 2021 06:16:23 +0000 (08:16 +0200)]
modules: readme files regenerated - textopsx ... [skip ci]

3 months agotextopsx: docs for hf_iterator_rm()
Daniel-Constantin Mierla [Sun, 11 Jul 2021 12:06:07 +0000 (14:06 +0200)]
textopsx: docs for hf_iterator_rm()

3 months agotextopsx: added hf_iterator_rm()
Daniel-Constantin Mierla [Sun, 11 Jul 2021 12:02:07 +0000 (14:02 +0200)]
textopsx: added hf_iterator_rm()

- remove the header at the current iterator position

3 months agotextopsx: hf iterator functions exported to kemi
Daniel-Constantin Mierla [Fri, 9 Jul 2021 10:46:38 +0000 (12:46 +0200)]
textopsx: hf iterator functions exported to kemi

3 months agotopos: fix missing xavu_field_contact_host evaluation for contact_mode 0
Henning Westerholt [Thu, 8 Jul 2021 14:57:27 +0000 (14:57 +0000)]
topos: fix missing xavu_field_contact_host evaluation for contact_mode 0

- fix missing xavu_field_contact_host evaluation for contact_mode 0
- it works currently only for contact_mode 1 and 2, but not for default mode

3 months agomodules: readme files regenerated - textopsx ... [skip ci]
Kamailio Dev [Wed, 7 Jul 2021 10:46:15 +0000 (12:46 +0200)]
modules: readme files regenerated - textopsx ... [skip ci]

3 months agotextopsx: return false on iterator end of headers
Daniel-Constantin Mierla [Wed, 7 Jul 2021 10:38:25 +0000 (12:38 +0200)]
textopsx: return false on iterator end of headers

3 months agotextopsx: docs for hdr iterator functions
Daniel-Constantin Mierla [Wed, 7 Jul 2021 10:28:54 +0000 (12:28 +0200)]
textopsx: docs for hdr iterator functions

3 months agotextopsx: added functions and variables to iterate headers list
Daniel-Constantin Mierla [Wed, 7 Jul 2021 10:11:04 +0000 (12:11 +0200)]
textopsx: added functions and variables to iterate headers list

3 months agomodules: readme files regenerated - nathelper ... [skip ci]
Kamailio Dev [Wed, 7 Jul 2021 06:01:20 +0000 (08:01 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]

3 months agonathelper: docs - fixed copy/paste extra tags
Daniel-Constantin Mierla [Wed, 7 Jul 2021 05:51:31 +0000 (07:51 +0200)]
nathelper: docs - fixed copy/paste extra tags

3 months agomodules: readme files regenerated - nathelper ... [skip ci]
Kamailio Dev [Tue, 6 Jul 2021 18:46:19 +0000 (20:46 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]

3 months agonathelper: docs for nat uac test 512
Daniel-Constantin Mierla [Tue, 6 Jul 2021 09:53:39 +0000 (11:53 +0200)]
nathelper: docs for nat uac test 512

3 months agonathelper: new nat test (512) based on target addresses
Daniel-Constantin Mierla [Tue, 6 Jul 2021 09:08:50 +0000 (11:08 +0200)]
nathelper: new nat test (512) based on target addresses

- return true if the target proto is ws or wss
- return true if the target addresses are different
  - for requests it compares r-uri with d-uri
  - for replies compares 2nd Via host and port with received and rport

3 months agopv: use macro to get port based on proto
Daniel-Constantin Mierla [Tue, 6 Jul 2021 09:08:00 +0000 (11:08 +0200)]
pv: use macro to get port based on proto

3 months agocore: parser - macro to get sip port based on proto
Daniel-Constantin Mierla [Tue, 6 Jul 2021 09:07:32 +0000 (11:07 +0200)]
core: parser - macro to get sip port based on proto

3 months agomodules: readme files regenerated - acc ... [skip ci]
Kamailio Dev [Tue, 6 Jul 2021 08:01:24 +0000 (10:01 +0200)]
modules: readme files regenerated - acc ... [skip ci]

3 months agoacc: docs - removed acc_diam_request() section
Daniel-Constantin Mierla [Tue, 6 Jul 2021 07:59:57 +0000 (09:59 +0200)]
acc: docs - removed acc_diam_request() section

- it is now exported by acc_diameter

3 months agocore: kemi - exported KSR.to_IPv4() and KSR.to_IPv6()
Daniel-Constantin Mierla [Mon, 5 Jul 2021 09:28:39 +0000 (11:28 +0200)]
core: kemi - exported KSR.to_IPv4() and KSR.to_IPv6()

3 months agonats: added README file
Daniel-Constantin Mierla [Sat, 3 Jul 2021 09:15:38 +0000 (11:15 +0200)]
nats: added README file

3 months agopv: added $viaZ(attr) - get the attributes of last via header
Daniel-Constantin Mierla [Sat, 3 Jul 2021 08:54:10 +0000 (10:54 +0200)]
pv: added $viaZ(attr) - get the attributes of last via header

3 months agovp: new variable $via0(attr)
Daniel-Constantin Mierla [Fri, 2 Jul 2021 14:18:55 +0000 (16:18 +0200)]
vp: new variable $via0(attr)

- get the attributes of first Via

3 months agomodules: readme files regenerated - secsipid ... [skip ci]
Kamailio Dev [Thu, 1 Jul 2021 14:16:19 +0000 (16:16 +0200)]
modules: readme files regenerated - secsipid ... [skip ci]

3 months agosecsipid: fix documentation example for secsipid_check() function
Ovidiu Sas [Thu, 1 Jul 2021 14:09:24 +0000 (10:09 -0400)]
secsipid: fix documentation example for secsipid_check() function

3 months agosecsipid: fix documentation for secsipid_check_identity_pubkey
Ovidiu Sas [Thu, 1 Jul 2021 14:04:10 +0000 (10:04 -0400)]
secsipid: fix documentation for secsipid_check_identity_pubkey

3 months agocore: fix building quoted value for #!subsdefs
Daniel-Constantin Mierla [Thu, 1 Jul 2021 09:17:56 +0000 (11:17 +0200)]
core: fix building quoted value for #!subsdefs

3 months agocore: ppcfg - clone value for substdef
Daniel-Constantin Mierla [Thu, 1 Jul 2021 08:19:08 +0000 (10:19 +0200)]
core: ppcfg - clone value for substdef

- GH #2788

3 months agoMerge pull request #2792 from kamailio/nats-memory-checks
Emmanuel Schmidbauer [Wed, 30 Jun 2021 10:22:49 +0000 (06:22 -0400)]
Merge pull request #2792 from kamailio/nats-memory-checks

nats: make sure pkg & shm memory is allocated; check pointers before freeing memory

3 months agocore: clone value for loadmodulex
Daniel-Constantin Mierla [Tue, 29 Jun 2021 07:25:30 +0000 (09:25 +0200)]
core: clone value for loadmodulex

3 months agocore: clone modparamx evaluated values
Daniel-Constantin Mierla [Tue, 29 Jun 2021 07:18:05 +0000 (09:18 +0200)]
core: clone modparamx evaluated values

3 months agocore: str list - added function to insert a block string in list
Daniel-Constantin Mierla [Tue, 29 Jun 2021 06:55:32 +0000 (08:55 +0200)]
core: str list - added function to insert a block string in list

3 months agohttp_client: removed function names from logs
Daniel-Constantin Mierla [Tue, 29 Jun 2021 06:23:56 +0000 (08:23 +0200)]
http_client: removed function names from logs

3 months agohttp_client: clone name in http connection structures
Daniel-Constantin Mierla [Tue, 29 Jun 2021 06:09:22 +0000 (08:09 +0200)]
http_client: clone name in http connection structures

- use name to lookup private memory structure, hash id is not unique,
can be collisions for different names

3 months agohttp_client: check if shm is initialized in curl_parse_param()
Daniel-Constantin Mierla [Tue, 29 Jun 2021 05:31:10 +0000 (07:31 +0200)]
http_client: check if shm is initialized in curl_parse_param()

3 months agoMakefile.groups: added build group for nats module
Daniel-Constantin Mierla [Mon, 28 Jun 2021 21:03:47 +0000 (23:03 +0200)]
Makefile.groups: added build group for nats module

3 months agonats: make sure pkg & shm memory is allocated; check pointers before freeing memory nats-memory-checks 2792/head
Emmanuel Schmidbauer [Mon, 28 Jun 2021 11:30:40 +0000 (07:30 -0400)]
nats: make sure pkg & shm memory is allocated; check pointers before freeing memory

3 months agoMerge pull request #2790 from kamailio/nats-module
Emmanuel Schmidbauer [Mon, 28 Jun 2021 10:44:52 +0000 (06:44 -0400)]
Merge pull request #2790 from kamailio/nats-module

nats: new nats message consumer module

3 months agonats: new nats message consumer module nats-module 2790/head
Emmanuel Schmidbauer [Sun, 27 Jun 2021 11:58:58 +0000 (07:58 -0400)]
nats: new nats message consumer module

3 months agortpproxy: removed unused rp_extract_mediaip()
Daniel-Constantin Mierla [Sat, 26 Jun 2021 05:05:29 +0000 (07:05 +0200)]
rtpproxy: removed unused rp_extract_mediaip()

- GH #2787

3 months agopv: added {s.fmtlines,n,m} and {s.fmtlinet,n,m}
Daniel-Constantin Mierla [Fri, 25 Jun 2021 08:58:23 +0000 (10:58 +0200)]
pv: added {s.fmtlines,n,m} and {s.fmtlinet,n,m}

- format the value in lines of n characters, adding m spaces or tabs to
the start of each new line (not to first line)

3 months agopv: added {s.rafter,x} and {s.rbefore,x}
Daniel-Constantin Mierla [Fri, 25 Jun 2021 07:51:10 +0000 (09:51 +0200)]
pv: added {s.rafter,x} and {s.rbefore,x}

- similar to {s.after,x} and {s.before,x}, but searches from end of the
value

3 months agotls: info log when libssl is linked static
Daniel-Constantin Mierla [Thu, 24 Jun 2021 12:24:06 +0000 (14:24 +0200)]
tls: info log when libssl is linked static

3 months agotls: debug messages with memory management functions
Daniel-Constantin Mierla [Thu, 24 Jun 2021 09:29:40 +0000 (11:29 +0200)]
tls: debug messages with memory management functions