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

33 hours 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]

38 hours 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)

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

41 hours 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]

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

41 hours 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]

42 hours 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)

44 hours 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]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4 weeks 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]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

5 weeks 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)

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

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

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

5 weeks agotls: Makefile - pkg-config for libcrypto
Daniel-Constantin Mierla [Thu, 24 Jun 2021 08:15:23 +0000 (10:15 +0200)]
tls: Makefile - pkg-config for libcrypto

- some distros have it separate of libssl

5 weeks agocore: kemi - exported KSR.to_UDP()
Daniel-Constantin Mierla [Wed, 23 Jun 2021 16:39:35 +0000 (18:39 +0200)]
core: kemi - exported KSR.to_UDP()

5 weeks agomodules: readme files regenerated - http_client ... [skip ci]
Kamailio Dev [Wed, 23 Jun 2021 11:16:19 +0000 (13:16 +0200)]
modules: readme files regenerated - http_client ... [skip ci]

5 weeks agohttp_client: docs - fixed small typo
Daniel-Constantin Mierla [Wed, 23 Jun 2021 11:05:44 +0000 (13:05 +0200)]
http_client: docs - fixed small typo

5 weeks agosiptrace: added extra params to $siptrace() pseudo-variable
Sergey Safarov [Thu, 10 Jun 2021 16:41:07 +0000 (19:41 +0300)]
siptrace: added extra params to $siptrace() pseudo-variable

for more details check GH #2777

5 weeks agoxhttp: warning log if tcp_accept_no_cl is not set
Daniel-Constantin Mierla [Wed, 23 Jun 2021 06:48:10 +0000 (08:48 +0200)]
xhttp: warning log if tcp_accept_no_cl is not set

5 weeks agomodules: readme files regenerated - tcpops ... [skip ci]
Kamailio Dev [Wed, 23 Jun 2021 06:46:24 +0000 (08:46 +0200)]
modules: readme files regenerated - tcpops ... [skip ci]

5 weeks agotcpops: docs for tcp_close_connection()
Daniel-Constantin Mierla [Wed, 23 Jun 2021 06:40:46 +0000 (08:40 +0200)]
tcpops: docs for tcp_close_connection()

5 weeks agotcpops: added tcp_close_connection([conid])
Daniel-Constantin Mierla [Tue, 22 Jun 2021 17:01:02 +0000 (19:01 +0200)]
tcpops: added tcp_close_connection([conid])

- close connection for current sip message or by conid

5 weeks agosecsipid: added kemi function to get $secsioid(val)
Daniel-Constantin Mierla [Tue, 22 Jun 2021 09:20:42 +0000 (11:20 +0200)]
secsipid: added kemi function to get $secsioid(val)

5 weeks agomodules: readme files regenerated - websocket ... [skip ci]
Kamailio Dev [Mon, 21 Jun 2021 07:46:15 +0000 (09:46 +0200)]
modules: readme files regenerated - websocket ... [skip ci]