kamailio
4 months agostastd: adding histogram jchavanton/statsd 2774/head
Julien Chavanton [Wed, 9 Jun 2021 21:52:24 +0000 (14:52 -0700)]
stastd: adding histogram

4 months agocore: kemi - added KSR.is_WSX() - return true of proto is WS or WSS
Daniel-Constantin Mierla [Wed, 9 Jun 2021 12:48:19 +0000 (14:48 +0200)]
core: kemi - added KSR.is_WSX() - return true of proto is WS or WSS

4 months agopv: support Record/-Route headers for $hflc(...)
Daniel-Constantin Mierla [Wed, 9 Jun 2021 11:33:06 +0000 (13:33 +0200)]
pv: support Record/-Route headers for $hflc(...)

4 months agosiptrace: use src/dst_addr instead src/dst_uri for $siptrace(...) vars
Daniel-Constantin Mierla [Wed, 9 Jun 2021 10:31:31 +0000 (12:31 +0200)]
siptrace: use src/dst_addr instead src/dst_uri for $siptrace(...) vars

- the format is proto:ip:proto, not a sip uri

4 months agopv: support INET/6 as alternative IPv4/6 for $K(key)
Daniel-Constantin Mierla [Wed, 9 Jun 2021 10:27:57 +0000 (12:27 +0200)]
pv: support INET/6 as alternative IPv4/6 for $K(key)

- these are the keywords in the config

4 months agocore: cfg.lex - accept IPv4/6 as alternative keywords for INET/6
Daniel-Constantin Mierla [Wed, 9 Jun 2021 10:19:24 +0000 (12:19 +0200)]
core: cfg.lex - accept IPv4/6 as alternative keywords for INET/6

4 months agopv: added missing WS and WSS to $K(key) variable
Daniel-Constantin Mierla [Wed, 9 Jun 2021 10:15:38 +0000 (12:15 +0200)]
pv: added missing WS and WSS to $K(key) variable

4 months agopv: extended $nh(k) to work for replies using 2nd via
Daniel-Constantin Mierla [Wed, 9 Jun 2021 10:02:08 +0000 (12:02 +0200)]
pv: extended $nh(k) to work for replies using 2nd via

4 months agosiptrace: aadded siptrace pseudo var
Sergey Safarov [Sat, 29 May 2021 17:10:39 +0000 (20:10 +0300)]
siptrace: aadded siptrace pseudo var

4 months agopv: new variable $hflc(hname)
Daniel-Constantin Mierla [Tue, 8 Jun 2021 11:25:54 +0000 (13:25 +0200)]
pv: new variable $hflc(hname)

- return the number of bodies for known headers that can also be as a comma
separated list
- supported now is Via header

4 months agotm: prevent t_suspend memory leak (#2763)
Julien Chavanton [Mon, 7 Jun 2021 15:13:36 +0000 (08:13 -0700)]
tm: prevent t_suspend memory leak (#2763)

When suspending while already in t_continue when processing a reply / suspending twice in a reply.

Co-authored-by: Julien Chavanton <jchavanton@subspace.com>
4 months agomtree: docs - section id for mt_match() function
Daniel-Constantin Mierla [Mon, 7 Jun 2021 13:23:16 +0000 (15:23 +0200)]
mtree: docs - section id for mt_match() function

4 months agosl: disabled SREV_NET_DATA_SENT for HTTP respones
Sergey Safarov [Sun, 6 Jun 2021 15:50:24 +0000 (18:50 +0300)]
sl: disabled SREV_NET_DATA_SENT for HTTP respones

more details at GH #2767

4 months agocore: published sip_check_fline function in .h file
Sergey Safarov [Sun, 6 Jun 2021 15:50:05 +0000 (18:50 +0300)]
core: published sip_check_fline function in .h file

4 months agosmsops: support for 7bit special chars
Aleksandar Yosifov [Wed, 2 Jun 2021 07:02:53 +0000 (10:02 +0300)]
smsops: support for 7bit special chars

    - Added support for 7bit special chars
    for MO/MT SMSs.

4 months agoapp_perl change to ignore "die" signals from eval blocks
rodolfojcj [Tue, 1 Jun 2021 12:06:32 +0000 (08:06 -0400)]
app_perl change to ignore "die" signals from eval blocks

4 months agomtree: docs - added section ids for parameters
Daniel-Constantin Mierla [Fri, 4 Jun 2021 15:59:58 +0000 (17:59 +0200)]
mtree: docs - added section ids for parameters

4 months agopv: pv_get_method fixed error "pv_get_method(): no CSEQ header"
Sergey Safarov [Thu, 3 Jun 2021 18:03:32 +0000 (21:03 +0300)]
pv: pv_get_method fixed error "pv_get_method(): no CSEQ header"

GH #2761: Error obeserver when sent HTTP reply like

HTTP/1.1 200 OK
Sia: SIP/2.0/TCP 8.8.8.8:39813
Content-Type: application/json
Server: kamailio
Content-Length: 49

{"data":{"status-code":200,"reason-phrase":"OK"}}

4 months agodmq: warning about protocol made info
Daniel-Constantin Mierla [Fri, 4 Jun 2021 07:08:06 +0000 (09:08 +0200)]
dmq: warning about protocol made info

4 months agopv: test for HDR_ERROR_T after header name parsing
Daniel-Constantin Mierla [Thu, 3 Jun 2021 13:29:50 +0000 (15:29 +0200)]
pv: test for HDR_ERROR_T after header name parsing

4 months agodialog: safety checks for bind addr fields
Daniel-Constantin Mierla [Thu, 3 Jun 2021 13:28:31 +0000 (15:28 +0200)]
dialog: safety checks for bind addr fields

- they can be null on non-local sockets
- GH #2757

4 months agopv: support Contact header in $hfl(...)
Daniel-Constantin Mierla [Thu, 3 Jun 2021 09:11:50 +0000 (11:11 +0200)]
pv: support Contact header in $hfl(...)

4 months agocore: select - test for HDR_ERROR_T after header name parsing
Daniel-Constantin Mierla [Thu, 3 Jun 2021 08:55:22 +0000 (10:55 +0200)]
core: select - test for HDR_ERROR_T after header name parsing

4 months agotextops: find_hdr_line_start() - search for header name with colon
Daniel-Constantin Mierla [Wed, 2 Jun 2021 19:22:48 +0000 (21:22 +0200)]
textops: find_hdr_line_start() - search for header name with colon

4 months agotextops: check for HDR_ERROR_T after header name parsing
Daniel-Constantin Mierla [Wed, 2 Jun 2021 19:21:59 +0000 (21:21 +0200)]
textops: check for HDR_ERROR_T after header name parsing

4 months agocore: kemi - check hdr type HDR_ERROR_T after parsing
Daniel-Constantin Mierla [Wed, 2 Jun 2021 16:57:53 +0000 (18:57 +0200)]
core: kemi - check hdr type HDR_ERROR_T after parsing

4 months agoxprint: check hdr type HDR_ERROR_T after parsing
Daniel-Constantin Mierla [Wed, 2 Jun 2021 16:48:50 +0000 (18:48 +0200)]
xprint: check hdr type HDR_ERROR_T after parsing

4 months agoxprint: remove history and svn id
Daniel-Constantin Mierla [Wed, 2 Jun 2021 16:45:22 +0000 (18:45 +0200)]
xprint: remove history and svn id

4 months agotextops: find_hdr_line_start() - locate header name without error logs
Daniel-Constantin Mierla [Wed, 2 Jun 2021 16:02:24 +0000 (18:02 +0200)]
textops: find_hdr_line_start() - locate header name without error logs

4 months agocore: parser/parse_hname2 - option to skip printing logs on parse failure
Daniel-Constantin Mierla [Wed, 2 Jun 2021 16:00:35 +0000 (18:00 +0200)]
core: parser/parse_hname2 - option to skip printing logs on parse failure

4 months agopv: suport also Route headers in $hfl(...)
Daniel-Constantin Mierla [Wed, 2 Jun 2021 14:57:05 +0000 (16:57 +0200)]
pv: suport also Route headers in $hfl(...)

4 months agopv: support for Record-Route in $hfl(...)
Daniel-Constantin Mierla [Wed, 2 Jun 2021 10:23:40 +0000 (12:23 +0200)]
pv: support for Record-Route in $hfl(...)

4 months agopv: fix {param.count} transformation broken by previous commit
Daniel-Constantin Mierla [Tue, 1 Jun 2021 17:45:16 +0000 (19:45 +0200)]
pv: fix {param.count} transformation broken by previous commit

4 months agopv: added {param.in,name[,sep]}
Daniel-Constantin Mierla [Tue, 1 Jun 2021 08:36:26 +0000 (10:36 +0200)]
pv: added {param.in,name[,sep]}

- return 1 if param name is found in the list, 0 if not found

4 months agomodules: readme files regenerated - secsipid ... [skip ci]
Kamailio Dev [Tue, 1 Jun 2021 08:01:13 +0000 (10:01 +0200)]
modules: readme files regenerated - secsipid ... [skip ci]

4 months agosecsipid: note about libsecsipid location and failure return codes
Daniel-Constantin Mierla [Tue, 1 Jun 2021 07:50:31 +0000 (09:50 +0200)]
secsipid: note about libsecsipid location and failure return codes

4 months agomodules: readme files regenerated - nathelper ... [skip ci]
Kamailio Dev [Tue, 1 Jun 2021 07:31:20 +0000 (09:31 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]

4 months agonathelper: docs for mode parameter for handle_ruri_alias()
Daniel-Constantin Mierla [Tue, 1 Jun 2021 07:29:10 +0000 (09:29 +0200)]
nathelper: docs for mode parameter for handle_ruri_alias()

4 months agonathelper: optional parameter mode for handle_ruri_alias()
Daniel-Constantin Mierla [Tue, 1 Jun 2021 07:28:08 +0000 (09:28 +0200)]
nathelper: optional parameter mode for handle_ruri_alias()

- if not 0, then consume the last alias parameter instead of the first
one

4 months agosipdump: fixed typo
Sergey Safarov [Sat, 29 May 2021 17:41:53 +0000 (20:41 +0300)]
sipdump: fixed typo

4 months agoasync: safety check for async ms list
Daniel-Constantin Mierla [Mon, 31 May 2021 15:23:42 +0000 (17:23 +0200)]
async: safety check for async ms list

4 months agosecsipid: log message on identity generation failure
Daniel-Constantin Mierla [Mon, 31 May 2021 13:02:01 +0000 (15:02 +0200)]
secsipid: log message on identity generation failure

4 months agoldap: Makefile - define LDAP_DEPRECATED=1
Daniel-Constantin Mierla [Mon, 31 May 2021 11:49:59 +0000 (13:49 +0200)]
ldap: Makefile - define LDAP_DEPRECATED=1

4 months agoldap: several functions exported to kemi framework
Daniel-Constantin Mierla [Mon, 31 May 2021 11:36:11 +0000 (13:36 +0200)]
ldap: several functions exported to kemi framework

4 months agocore: store start of via body start in the structure
Daniel-Constantin Mierla [Mon, 31 May 2021 11:32:14 +0000 (13:32 +0200)]
core: store start of via body start in the structure

- paired with bsize field

4 months agocore: parse via - fixed whitespacing
Daniel-Constantin Mierla [Mon, 31 May 2021 10:05:01 +0000 (12:05 +0200)]
core: parse via - fixed whitespacing

4 months agotextops: new function for finding start of a header
Daniel-Constantin Mierla [Mon, 31 May 2021 08:44:37 +0000 (10:44 +0200)]
textops: new function for finding start of a header

- use it to find Content-Type start
- GH #2748

4 months agomodules: readme files regenerated - mtree ... [skip ci]
Kamailio Dev [Sat, 29 May 2021 14:01:22 +0000 (16:01 +0200)]
modules: readme files regenerated - mtree ... [skip ci]

4 months agomtree: docs for pv_dstid, pv_weight and pv_count
Daniel-Constantin Mierla [Sat, 29 May 2021 13:24:40 +0000 (15:24 +0200)]
mtree: docs for pv_dstid, pv_weight and pv_count

- GH #2750

4 months agomtree: number of matched records for tree type=1 stored in pv_count
Daniel-Constantin Mierla [Fri, 28 May 2021 12:55:42 +0000 (14:55 +0200)]
mtree: number of matched records for tree type=1 stored in pv_count

4 months agomtree: check if pv_count var is r/w
Daniel-Constantin Mierla [Fri, 28 May 2021 11:54:08 +0000 (13:54 +0200)]
mtree: check if pv_count var is r/w

- reported by GH #2750

4 months agomtree: Fix some typos, adjust some formatting
Olle E. Johansson [Fri, 28 May 2021 07:38:31 +0000 (09:38 +0200)]
mtree: Fix some typos, adjust some formatting

4 months agopv: new variables $hfl(name)
Daniel-Constantin Mierla [Thu, 27 May 2021 13:18:46 +0000 (15:18 +0200)]
pv: new variables $hfl(name)

- similar to $hdr(name), but for some of the standard headers that can
have many bodies serialized in the same header field is able to return the
individual body values
- so far implemented for Via
- for the rest of the headers works like $hdr(name)

4 months agopkg/kamailio/deb: missing lwsc module files [skip ci]
Victor Seva [Thu, 27 May 2021 12:03:01 +0000 (14:03 +0200)]
pkg/kamailio/deb: missing lwsc module files [skip ci]

fixes #2749

4 months agomodules: readme files regenerated - textops ... [skip ci]
Kamailio Dev [Wed, 26 May 2021 13:46:17 +0000 (15:46 +0200)]
modules: readme files regenerated - textops ... [skip ci]

4 months agotextops: docs for remove_hf_idx() function
Daniel-Constantin Mierla [Wed, 26 May 2021 13:43:50 +0000 (15:43 +0200)]
textops: docs for remove_hf_idx() function

4 months agotextops: added remove_hf_idx(hname, idx)
Daniel-Constantin Mierla [Wed, 26 May 2021 13:29:11 +0000 (15:29 +0200)]
textops: added remove_hf_idx(hname, idx)

- function to remove a header by name and index

4 months agopike: fixed regression
Boris Korzun [Tue, 25 May 2021 14:14:18 +0000 (17:14 +0300)]
pike: fixed regression
- removed unnecessary NULL-return from mark_node() after previous commit

4 months agocore: ut - fixed str_casesearch()
Boris Korzun [Tue, 25 May 2021 14:00:19 +0000 (17:00 +0300)]
core: ut - fixed str_casesearch()
- fixed str_casesearch() behaviour on text and needle were equal

4 months agocore: clone define value to avoid losing the reference
Daniel-Constantin Mierla [Tue, 25 May 2021 08:24:23 +0000 (10:24 +0200)]
core: clone define value to avoid losing the reference

- impacted also by substdef
- GH #2736

4 months agoims_ipsec_pcscf: use ksr_clock_gettime()
riccardv [Wed, 19 May 2021 21:28:32 +0000 (23:28 +0200)]
ims_ipsec_pcscf: use ksr_clock_gettime()

4 months agoims_ipsec_pcscf: more algorithms, SA improvements
riccardv [Sun, 9 May 2021 19:23:16 +0000 (21:23 +0200)]
ims_ipsec_pcscf: more algorithms, SA improvements

- add aes-cbc, des-ede3-cbc ipsec encryption algoriyhms
- improve nlmsg_seq choice for concurrent multi UEs Registrations at
  same time
- before sending replies over IPsec check the existing
  of opened TCP sockets

4 months agocfg_rpc: use directly cfg_get_group_id()
Daniel-Constantin Mierla [Mon, 24 May 2021 14:17:52 +0000 (16:17 +0200)]
cfg_rpc: use directly cfg_get_group_id()

4 months agopv: proper increment to check escaped char for s.select
Daniel-Constantin Mierla [Sat, 22 May 2021 15:53:50 +0000 (17:53 +0200)]
pv: proper increment to check escaped char for s.select

4 months agosnmpstats: Fix typo in MIB
Olle E. Johansson [Mon, 24 May 2021 06:26:18 +0000 (08:26 +0200)]
snmpstats: Fix typo in MIB

Reported by arkadiam on Github

4 months agopv: support escaped chars for s.select separator
Daniel-Constantin Mierla [Fri, 21 May 2021 12:22:33 +0000 (14:22 +0200)]
pv: support escaped chars for s.select separator

- \\, \n, \r, \t

4 months agopv: more details in err log message for s.select parsing
Daniel-Constantin Mierla [Fri, 21 May 2021 06:40:21 +0000 (08:40 +0200)]
pv: more details in err log message for s.select parsing

4 months agomodules/mohqueue: force RTP to follow SDP
Robert Boisvert [Wed, 19 May 2021 20:19:24 +0000 (16:19 -0400)]
modules/mohqueue: force RTP to follow SDP

  - version 1.8
  - use rtpproxy r flag to force RTP to follow SDP
  - fixed compiler warnings

4 months agocdp: switch to use ksr_clock_gettime() from core
Daniel-Constantin Mierla [Wed, 19 May 2021 06:22:52 +0000 (08:22 +0200)]
cdp: switch to use ksr_clock_gettime() from core

4 months agocore: ut - added ksr_clock_gettime()
Daniel-Constantin Mierla [Wed, 19 May 2021 06:22:06 +0000 (08:22 +0200)]
core: ut - added ksr_clock_gettime()

- portable version for clock_gettime()

4 months agopv: remove verbose debug message
Daniel-Constantin Mierla [Wed, 19 May 2021 06:11:19 +0000 (08:11 +0200)]
pv: remove verbose debug message

4 months agomodules: readme files regenerated - xhttp_prom ... [skip ci]
Kamailio Dev [Tue, 18 May 2021 19:16:17 +0000 (21:16 +0200)]
modules: readme files regenerated - xhttp_prom ... [skip ci]

4 months agoxhttp_prom: fix small copy/paste typo in documentation
Ovidiu Sas [Tue, 18 May 2021 19:00:23 +0000 (15:00 -0400)]
xhttp_prom: fix small copy/paste typo in documentation

4 months agokamctl: updated db generation scripts
Daniel-Constantin Mierla [Tue, 18 May 2021 06:18:12 +0000 (08:18 +0200)]
kamctl: updated db generation scripts

4 months agolib/srdb1: schema - version set to 5 for uacreg table
Daniel-Constantin Mierla [Tue, 18 May 2021 06:17:07 +0000 (08:17 +0200)]
lib/srdb1: schema - version set to 5 for uacreg table

5 months agotm: t_suspend.c - t_continue_helper() - do not continue processing a reply if it...
Giacomo Vacca [Mon, 17 May 2021 09:56:05 +0000 (11:56 +0200)]
tm: t_suspend.c - t_continue_helper() - do not continue processing a reply if it's suspended again (#2721)

* tm: t_suspend.c - do not t_continue with reply if suspended

* tm: t_suspend.c - unlock t_continue and reset flag if suspended again

* tm: t_reply.c - received_reply() done if suspended after route

5 months agosecsipid: clod dlopen handle on mod destroy
Daniel-Constantin Mierla [Mon, 17 May 2021 06:08:20 +0000 (08:08 +0200)]
secsipid: clod dlopen handle on mod destroy

5 months agopv: added function to set the value for $ccp(key)
Daniel-Constantin Mierla [Sun, 16 May 2021 10:23:02 +0000 (12:23 +0200)]
pv: added function to set the value for $ccp(key)

5 months agocfg_rpc: clang format
Daniel-Constantin Mierla [Sat, 15 May 2021 07:19:55 +0000 (09:19 +0200)]
cfg_rpc: clang format

5 months agocfg_rpc: removed history and svn id
Daniel-Constantin Mierla [Sat, 15 May 2021 06:58:27 +0000 (08:58 +0200)]
cfg_rpc: removed history and svn id

5 months agopv: added $ccp(gname.vname) variable
Daniel-Constantin Mierla [Fri, 14 May 2021 08:41:29 +0000 (10:41 +0200)]
pv: added $ccp(gname.vname) variable

- get the config custom parameter value
- direct access without running through select variable

5 months agocfg-rpc: get_group_id() pints to cfg_get_group_id()
Daniel-Constantin Mierla [Fri, 14 May 2021 08:33:33 +0000 (10:33 +0200)]
cfg-rpc: get_group_id() pints to cfg_get_group_id()

5 months agocore: cfg - added cfg_get_group_id to the config var framework api
Daniel-Constantin Mierla [Fri, 14 May 2021 08:32:31 +0000 (10:32 +0200)]
core: cfg - added cfg_get_group_id to the config var framework api

5 months agotopos: init xavp and context modparams to str null
Daniel-Constantin Mierla [Thu, 13 May 2021 15:53:18 +0000 (17:53 +0200)]
topos: init xavp and context modparams to str null

5 months agocore: xavp - safety checks for name len
Daniel-Constantin Mierla [Thu, 13 May 2021 15:41:40 +0000 (17:41 +0200)]
core: xavp - safety checks for name len

5 months agopv: added $rpl(cntrr) - count record-route headers in reply
Daniel-Constantin Mierla [Thu, 13 May 2021 08:49:19 +0000 (10:49 +0200)]
pv: added $rpl(cntrr) - count record-route headers in reply

5 months agopresence: set correct type for local_log_facility modparam
Daniel-Constantin Mierla [Wed, 12 May 2021 16:14:29 +0000 (18:14 +0200)]
presence: set correct type for local_log_facility modparam

5 months agopv: added $rpl(key) variable
Daniel-Constantin Mierla [Wed, 12 May 2021 11:11:26 +0000 (13:11 +0200)]
pv: added $rpl(key) variable

- return attributes of the sip reply that is processed at that moment
- the key can be:
    - duri - SIP URI corresponding to the destination address where the
    reply is going to be sent based on 2nd via
    - dhost - host part of duri
    - dport - port part of duri
    - dproto - proto of duri
    - dprotoid - proto id of duri
    - cntvia - number of via header bodies

5 months agomodules: readme files regenerated - secsipid ... [skip ci]
Kamailio Dev [Wed, 12 May 2021 06:46:14 +0000 (08:46 +0200)]
modules: readme files regenerated - secsipid ... [skip ci]

5 months agosecsipid: docs - set GO111MODULE=off in installation example
Daniel-Constantin Mierla [Wed, 12 May 2021 06:32:37 +0000 (08:32 +0200)]
secsipid: docs - set GO111MODULE=off in installation example

5 months agocore: kemi - exported KSR.pv.geti("pv")
Daniel-Constantin Mierla [Wed, 12 May 2021 06:15:33 +0000 (08:15 +0200)]
core: kemi - exported KSR.pv.geti("pv")

- return integer value of the pv, trying to convert if its value is
string

5 months agomodules: readme files regenerated - siputils ... [skip ci]
Kamailio Dev [Tue, 11 May 2021 15:31:12 +0000 (17:31 +0200)]
modules: readme files regenerated - siputils ... [skip ci]

5 months agosiptuils: small doc extension for ring filter functionality
Henning Westerholt [Tue, 11 May 2021 15:24:01 +0000 (15:24 +0000)]
siptuils: small doc extension for ring filter functionality

5 months agomodules: readme files regenerated - siputils ... [skip ci]
Kamailio Dev [Tue, 11 May 2021 13:46:16 +0000 (15:46 +0200)]
modules: readme files regenerated - siputils ... [skip ci]

5 months agosiputils: docs - updates to is_first_hop() for mode parameter
Daniel-Constantin Mierla [Tue, 11 May 2021 13:38:14 +0000 (15:38 +0200)]
siputils: docs - updates to is_first_hop() for mode parameter

5 months agosiputils: added optional mode parameter to is_first_hop()
Daniel-Constantin Mierla [Tue, 11 May 2021 13:16:36 +0000 (15:16 +0200)]
siputils: added optional mode parameter to is_first_hop()

- if set to 1, skip checking for loops
- exported to kemi as is_first_hop_mode(int mode)

5 months agomodules: readme files regenerated - uac ... [skip ci]
Kamailio Dev [Mon, 10 May 2021 07:46:22 +0000 (09:46 +0200)]
modules: readme files regenerated - uac ... [skip ci]

5 months agouac: docs for reg_use_domain parameter
Daniel-Constantin Mierla [Mon, 10 May 2021 07:39:16 +0000 (09:39 +0200)]
uac: docs for reg_use_domain parameter

5 months agouac: exposed reg_use_domain via modparam
Daniel-Constantin Mierla [Mon, 10 May 2021 07:34:47 +0000 (09:34 +0200)]
uac: exposed reg_use_domain via modparam

- control if the lookup over username uses also domain

5 months agouac: renamed parameter for kemi uac_reg_lookup_uri()
Daniel-Constantin Mierla [Sun, 9 May 2021 07:28:31 +0000 (09:28 +0200)]
uac: renamed parameter for kemi uac_reg_lookup_uri()

- be suggestive of its purpose in the index docs