Daniel-Constantin Mierla [Tue, 28 Apr 2020 14:03:18 +0000 (16:03 +0200)]
Merge pull request #2306 from NGSegovia/ngsegovia/keepalive_disable_delete_counter
keepalive: ignore delete_counter if it is set to 0
Daniel-Constantin Mierla [Tue, 28 Apr 2020 13:57:29 +0000 (15:57 +0200)]
Merge pull request #2305 from dsciarra/do-not-use-tcp-id-for-lookup
core: do not use tcp id for lookup if not needed
Nacho Garcia Segovia [Tue, 28 Apr 2020 12:08:19 +0000 (14:08 +0200)]
keepalive: ignore delete_counter if it is set to 0
Donato Sciarra [Tue, 28 Apr 2020 08:33:23 +0000 (10:33 +0200)]
core: do not use tcp id for lookup if not needed
In case the first lookup (with tcp id) is not successfull, the second
attempt should have been performed without a tcp id.
Issue was introduced with
dc43750644 (new global parameter
tcp_connection_match) in 5.3.
Daniel-Constantin Mierla [Tue, 28 Apr 2020 07:42:13 +0000 (09:42 +0200)]
pv: use safer macros for temporarily making zero-ending strings
Daniel-Constantin Mierla [Mon, 27 Apr 2020 13:24:23 +0000 (15:24 +0200)]
core: str - fixed wrong (undo'ed) version of STR_ZTOV() macro
Daniel-Constantin Mierla [Mon, 27 Apr 2020 13:06:10 +0000 (15:06 +0200)]
ndb_redis: use the core macros for ending string value with '\0' and to restore
Daniel-Constantin Mierla [Mon, 27 Apr 2020 12:53:33 +0000 (14:53 +0200)]
core: str - helper macro to set ending zero with backup and restore from backup
Kamailio Dev [Mon, 27 Apr 2020 12:31:15 +0000 (14:31 +0200)]
modules: readme files regenerated - rtpengine ... [skip ci]
Henning Westerholt [Mon, 27 Apr 2020 12:19:35 +0000 (12:19 +0000)]
rtpengine: remove obselete auto-bridge flag (GH #2301)
Daniel-Constantin Mierla [Mon, 27 Apr 2020 08:47:48 +0000 (10:47 +0200)]
pdb: covert byte-by-byte from buffer to short-int to avoid unalignment compile warning
- GH #2298
Daniel-Constantin Mierla [Mon, 27 Apr 2020 08:25:28 +0000 (10:25 +0200)]
app_python: use -fno-strict-aliasing for gcc
- python2 is known for not confirming strict aliasing
- it is EoL and likely not going to be fixed
- GH #2298
Daniel-Constantin Mierla [Mon, 27 Apr 2020 08:25:06 +0000 (10:25 +0200)]
Makefile.defs: expose CC_NAME variable
Daniel-Constantin Mierla [Mon, 27 Apr 2020 07:36:36 +0000 (09:36 +0200)]
redis: init variables to get rid of compile warnings
- GH #2298
Daniel-Constantin Mierla [Mon, 27 Apr 2020 07:00:21 +0000 (09:00 +0200)]
db2_local: replace timelocal() with mktime()
- timelocal() is nonstandard GNU extension, not recommended to be used
and mktime() should be equivalent:
* https://linux.die.net/man/3/timegm
- GH #2298
Daniel-Constantin Mierla [Sun, 26 Apr 2020 08:34:52 +0000 (10:34 +0200)]
core: error.{c,h} - coherent use of camel case in error and reason texts
- indentation and whitespacing
Daniel-Constantin Mierla [Sat, 25 Apr 2020 10:27:39 +0000 (12:27 +0200)]
presence: consider watchers in active status when in no-db mode
- there is no persistent storage for watchers, status is lost on restart
anyhow (similar to force active)
Daniel-Constantin Mierla [Fri, 24 Apr 2020 19:14:24 +0000 (21:14 +0200)]
dmq: test of if reply code and reason are set to send the response
Daniel-Constantin Mierla [Fri, 24 Apr 2020 19:09:26 +0000 (21:09 +0200)]
dmq: set 202 response for empty_peer_callback() handling
Daniel-Constantin Mierla [Thu, 23 Apr 2020 17:04:58 +0000 (19:04 +0200)]
dispatcher: handle the case of maxload 0 for call load distribution
- GH #2297
Daniel-Constantin Mierla [Thu, 23 Apr 2020 08:21:22 +0000 (10:21 +0200)]
ims_usrloc_pcscf: fix value array size and compile warnings
Daniel-Constantin Mierla [Thu, 23 Apr 2020 07:57:05 +0000 (09:57 +0200)]
db_redis: var initialization and safety check to avoid compiler warnings
Daniel-Constantin Mierla [Wed, 22 Apr 2020 19:01:38 +0000 (21:01 +0200)]
presence: implemented more functions to work with in-memory presentity records
Henning Westerholt [Wed, 22 Apr 2020 16:14:54 +0000 (16:14 +0000)]
auth: log correct variable name in nonce-count error message
Daniel-Constantin Mierla [Wed, 22 Apr 2020 14:57:24 +0000 (16:57 +0200)]
presence: function to search presentity items for in memory subscriptions
Kamailio Dev [Wed, 22 Apr 2020 13:01:12 +0000 (15:01 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]
Henning Westerholt [Wed, 22 Apr 2020 12:52:12 +0000 (12:52 +0000)]
nathelper: update flag documenation
Federico Cabiddu [Wed, 22 Apr 2020 12:05:26 +0000 (14:05 +0200)]
Merge pull request #2295 from kamailio/grumvalski/siptrace_memleak_fix
siptrace: siptrace: fix memory leak in fake replies tracing
Federico Cabiddu [Wed, 22 Apr 2020 09:40:58 +0000 (11:40 +0200)]
siptrace: free parsed from in case of errors
Federico Cabiddu [Wed, 22 Apr 2020 07:34:20 +0000 (09:34 +0200)]
siptrace: siptrace: fix memory leak in fake replies tracing
Daniel-Constantin Mierla [Wed, 22 Apr 2020 06:42:48 +0000 (08:42 +0200)]
presence: safety checks in timer callbacks to cope with storage modes
Daniel-Constantin Mierla [Wed, 22 Apr 2020 06:11:36 +0000 (08:11 +0200)]
presence: use separate structure to match presentity to replace or update
Daniel-Constantin Mierla [Tue, 21 Apr 2020 20:42:12 +0000 (22:42 +0200)]
presence: init pres and subs hash tables for non db-only mode and memory index
Daniel-Constantin Mierla [Tue, 21 Apr 2020 17:45:01 +0000 (19:45 +0200)]
presence: delete expired in-memory presentity records
Daniel-Constantin Mierla [Tue, 21 Apr 2020 15:31:44 +0000 (17:31 +0200)]
presence: user core macro for hash slot index
Daniel-Constantin Mierla [Tue, 21 Apr 2020 15:30:37 +0000 (17:30 +0200)]
core: hashes - small helper macro to compute hash slot index
Daniel-Constantin Mierla [Tue, 21 Apr 2020 13:25:25 +0000 (15:25 +0200)]
presence: rpc presence.presentity_list is returning an array
Daniel-Constantin Mierla [Tue, 21 Apr 2020 13:08:39 +0000 (15:08 +0200)]
presence: use unsigned int for presentity hash id
Victor Seva [Tue, 21 Apr 2020 11:03:16 +0000 (13:03 +0200)]
pv: fixes for KEMI pvx.xavp_getd
Daniel-Constantin Mierla [Tue, 21 Apr 2020 10:55:17 +0000 (12:55 +0200)]
presence: compute presentity table slot index using correct structure
ng-voice GmbH [Tue, 21 Apr 2020 09:52:27 +0000 (11:52 +0200)]
Merge pull request #2246 from alexyosifov/ims_registrar_scscf_notify_fix
ims_registrar_scscf: fix multiple contacts in NOTIFY
Aleksandar Yosifov [Wed, 11 Mar 2020 15:56:09 +0000 (17:56 +0200)]
ims_registrar_scscf: fix multiple contacts in NOTIFY
- Prevent multiple contacts for NOTIFY message in
Message body <registration> tag after
RE-REGISTRATION procedure.
Kamailio Dev [Tue, 21 Apr 2020 08:16:25 +0000 (10:16 +0200)]
modules: readme files regenerated - presence ... [skip ci]
Daniel-Constantin Mierla [Tue, 21 Apr 2020 08:04:49 +0000 (10:04 +0200)]
presence: docs for rpc command presence.presentity_list
Daniel-Constantin Mierla [Tue, 21 Apr 2020 07:57:30 +0000 (09:57 +0200)]
presence: implemented rpc command to list presententy records in memory
- presence.presentity_list [mode] - mode is optional and can be 'full'
to print all attributes of the presentity record
Daniel-Constantin Mierla [Tue, 21 Apr 2020 07:15:48 +0000 (09:15 +0200)]
presence: increased the array size for rpc cleanup doc
- reformatted the static structure for coherence
Daniel-Constantin Mierla [Mon, 20 Apr 2020 15:59:26 +0000 (17:59 +0200)]
presence: correct value for PS_PCACHE_RECORD
Kamailio Dev [Mon, 20 Apr 2020 15:31:14 +0000 (17:31 +0200)]
modules: readme files regenerated - presence ... [skip ci]
Daniel-Constantin Mierla [Mon, 20 Apr 2020 13:50:52 +0000 (15:50 +0200)]
presence: do not init db connection when everything is stored in memory
Daniel-Constantin Mierla [Mon, 20 Apr 2020 13:35:24 +0000 (15:35 +0200)]
presence: updated docs for publ_cache parameter
Daniel-Constantin Mierla [Mon, 20 Apr 2020 13:26:39 +0000 (15:26 +0200)]
presence: handle publish with full records stored in cache
Armen Babikyan [Mon, 20 Apr 2020 07:51:26 +0000 (00:51 -0700)]
tls: add sel for tls verified cert chain (requires OpenSSL 1.1+) (#2289)
* tls: add sel for tls verified cert chain (requires OpenSSL 1.1+)
* remove extra tcpconn_put() call
Co-authored-by: Armen Babikyan <armen@firespotter.com>
Daniel-Constantin Mierla [Sun, 19 Apr 2020 17:01:22 +0000 (19:01 +0200)]
presence: init and destroy full presentity caching table
Daniel-Constantin Mierla [Sun, 19 Apr 2020 07:02:09 +0000 (09:02 +0200)]
presence: define modes for publ_cache parameter
Daniel-Constantin Mierla [Sat, 18 Apr 2020 12:38:08 +0000 (14:38 +0200)]
presence: in-memory presentity update function
- more functions exposed in the header file
Armen Babikyan [Sat, 18 Apr 2020 21:18:40 +0000 (14:18 -0700)]
tls: fix raw vs urlencoded behavior in sel_ssl_cert()
Daniel-Constantin Mierla [Fri, 17 Apr 2020 17:04:16 +0000 (19:04 +0200)]
http_async_client: do not set global avp lists from t on async callback
- they are done by fake_env() used inside t_continue()
- they were set without reset, living in the process context, resulting
in invalid access when async callback was executed with faked_msg
- related to #2286
Daniel-Constantin Mierla [Fri, 17 Apr 2020 16:44:06 +0000 (18:44 +0200)]
presence: functions to keep presentity records in memory
- work in progress to have in-memory only records, without database
storage
Daniel-Constantin Mierla [Fri, 17 Apr 2020 10:57:26 +0000 (12:57 +0200)]
tls: renamed tls hooks callbacks to highlight their purpose
Kamailio Dev [Thu, 16 Apr 2020 15:01:20 +0000 (17:01 +0200)]
modules: readme files regenerated - corex ... [skip ci]
Daniel-Constantin Mierla [Thu, 16 Apr 2020 14:52:30 +0000 (16:52 +0200)]
corex: docs for is_faked_msg() function
Daniel-Constantin Mierla [Thu, 16 Apr 2020 14:44:17 +0000 (16:44 +0200)]
corex: new function is_faked_msg()
- return 1 (native cfg true) if the message under processing is faked (a
static sip message structure used internally by kamailio)
- return -1 (native cfg false) if it is a received sip message
- useful for checking in event routes or async route blocks when can be
both types of messages
Daniel-Constantin Mierla [Thu, 16 Apr 2020 14:32:54 +0000 (16:32 +0200)]
pv: format new xavp functions declaration lines to be matched by kemi docs tool
Daniel-Constantin Mierla [Thu, 16 Apr 2020 10:38:20 +0000 (12:38 +0200)]
tm: do not return if kemi callback execution fails for t_continue()
- have same behaviour as with route blocks
Kamailio Dev [Thu, 16 Apr 2020 10:01:17 +0000 (12:01 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]
Daniel-Constantin Mierla [Thu, 16 Apr 2020 09:58:23 +0000 (11:58 +0200)]
nathelper: docs - fix ending tags issues introduced with previous commit
Kamailio Dev [Thu, 16 Apr 2020 08:01:22 +0000 (10:01 +0200)]
modules: readme files regenerated - nathelper ... [skip ci]
Daniel-Constantin Mierla [Thu, 16 Apr 2020 07:54:48 +0000 (09:54 +0200)]
nathelper: docs for nat_addr_mode parameter
Daniel-Constantin Mierla [Thu, 16 Apr 2020 07:40:42 +0000 (09:40 +0200)]
nathelper: new parameter nat_addr_mode
- if set to 0, default private net addresses are checked by
nat_uac_test()
- if set to 1, other reserved net addresses are checked by
nat_uac_test()
- default 1 (reserved addresses are considered not routable)
- related at GH #2277
Daniel-Constantin Mierla [Thu, 16 Apr 2020 07:25:05 +0000 (09:25 +0200)]
nathelper: moved cfg file to examples folder
Kamailio Dev [Wed, 15 Apr 2020 14:16:13 +0000 (16:16 +0200)]
modules: readme files regenerated - tm ... [skip ci]
Daniel-Constantin Mierla [Wed, 15 Apr 2020 13:59:52 +0000 (15:59 +0200)]
tm: docs for exec_time_check parameter
Daniel-Constantin Mierla [Wed, 15 Apr 2020 13:52:17 +0000 (15:52 +0200)]
tm: new parameter exec_time_check for safety checks on lenghtly callbacks
- try to detect when failure callbacks execution take too long and do
safety check of the transaction
- default value is 5000 (milliseconds)
- set to 0 to disable this check
Daniel-Constantin Mierla [Wed, 15 Apr 2020 12:20:48 +0000 (14:20 +0200)]
core: receive - removed unnecessary time zone parameter for time difference
Daniel-Constantin Mierla [Wed, 15 Apr 2020 11:33:07 +0000 (13:33 +0200)]
core: data lump - updated comments and param names reflect better the purpose
- coherent whitespacing
Victor Seva [Wed, 15 Apr 2020 10:02:27 +0000 (12:02 +0200)]
app_python: fix SR_KEMIP_DICT case in return_xval
introduced at
82279ebd3a634911277e48523a56f93473baca2c
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:53:17 +0000 (11:53 +0200)]
app_ruby: for now return NULL for array and map kemi results
- free result structure
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:50:58 +0000 (11:50 +0200)]
app_sqlang: for now return NULL for array and map kemi results
- free result structure
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:48:29 +0000 (11:48 +0200)]
app_jsdt: for now return NULL for array and map kemi results
- free result structure
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:45:50 +0000 (11:45 +0200)]
app_python3: for now return none for array and map kemi results
- free result structure
Daniel-Constantin Mierla [Wed, 15 Apr 2020 09:44:44 +0000 (11:44 +0200)]
app_python: for now return none for array and map kemi results
- free result structure
Victor Seva [Mon, 13 Apr 2020 15:10:51 +0000 (17:10 +0200)]
pv: add KEMI functions pvx.xavp_get_keys and pvx.xavp_getd
Victor Seva [Mon, 13 Apr 2020 15:10:01 +0000 (17:10 +0200)]
app_lua: add support for ARRAY and DICT types
Victor Seva [Mon, 13 Apr 2020 15:08:50 +0000 (17:08 +0200)]
core: KEMI suport for ARRAY and DICT
Daniel-Constantin Mierla [Wed, 15 Apr 2020 07:19:56 +0000 (09:19 +0200)]
presence_xml: use common prefix for global variables
Daniel-Constantin Mierla [Tue, 14 Apr 2020 16:27:25 +0000 (18:27 +0200)]
presence_xml: use presence api via structure instead of declaring local function variables
- simpler overall and clearer when function is local in module or imported via
api, given that same prefix was used
Richard Fuchs [Tue, 14 Apr 2020 17:15:21 +0000 (13:15 -0400)]
rtpengine: add `flags` field for every command
Kamailio Dev [Tue, 14 Apr 2020 13:31:11 +0000 (15:31 +0200)]
modules: readme files regenerated - presence ... [skip ci]
Daniel-Constantin Mierla [Tue, 14 Apr 2020 13:25:14 +0000 (15:25 +0200)]
presence: docs for timer_mode parameter
Daniel-Constantin Mierla [Tue, 14 Apr 2020 13:20:24 +0000 (15:20 +0200)]
presence: timer_mode - new parameter to control what timer process to use
- if set to 0, use the core main timer
- if set to 1, use the core secondary timer
- default 1 (timer tasks are for cleanup)
Daniel-Constantin Mierla [Tue, 14 Apr 2020 10:14:55 +0000 (12:14 +0200)]
presence_xml: pass pres uri as pointer for pres_update_watchers()
Daniel-Constantin Mierla [Tue, 14 Apr 2020 10:12:08 +0000 (12:12 +0200)]
presence: pass str parameters via pointer to couple of functions
Kamailio Dev [Tue, 14 Apr 2020 09:31:26 +0000 (11:31 +0200)]
modules: readme files regenerated - presence ... [skip ci]
Daniel-Constantin Mierla [Tue, 14 Apr 2020 09:23:59 +0000 (11:23 +0200)]
presence: docs - removed to_tag_pref parameter
Daniel-Constantin Mierla [Tue, 14 Apr 2020 09:22:59 +0000 (11:22 +0200)]
presence: removed unused module parameter to_tag_pref
- no longer used to set prefix for to-tag value
Daniel-Constantin Mierla [Tue, 14 Apr 2020 09:10:55 +0000 (11:10 +0200)]
presence: renamed global vars to add common module prefix
- better protection against name conflicts, as this module is used by
other modules and can run in library mode
Daniel-Constantin Mierla [Tue, 14 Apr 2020 07:19:44 +0000 (09:19 +0200)]
presence: removed unused global var log_buf
Kamailio Dev [Mon, 13 Apr 2020 18:01:08 +0000 (20:01 +0200)]
modules: readme files regenerated - tls ... [skip ci]
Daniel-Constantin Mierla [Mon, 13 Apr 2020 17:49:46 +0000 (19:49 +0200)]
Merge pull request #2283 from fredposner/master
tls: fix typo in documentation
fredposner [Mon, 13 Apr 2020 15:49:06 +0000 (11:49 -0400)]
tls: fix typo in documentation
- params.xml: replace "private" with "private_key"