sip-router
3 years agoMerge pull request #1185 from grumvalski/core_rpc_fmt
Federico Cabiddu [Wed, 12 Jul 2017 08:52:25 +0000 (10:52 +0200)]
Merge pull request #1185 from grumvalski/core_rpc_fmt

Adapt some core rpc command to json

3 years agomodules: readme files regenerated - cplc ... [skip ci]
Kamailio Dev [Wed, 12 Jul 2017 08:46:34 +0000 (10:46 +0200)]
modules: readme files regenerated - cplc ... [skip ci]

3 years agocplc: use route names to set proxy_route modparam
Oriol Capsada [Tue, 11 Jul 2017 20:44:16 +0000 (22:44 +0200)]
cplc: use route names to set proxy_route modparam

- Changed proxy_route modparam type to string. The route to be executed
  needs to be defined by name as the current id definition led to some
  unpredictable behavior.

3 years agocore: return aliases list as an array in core.aliases_list 1185/head
grumvalski [Wed, 12 Jul 2017 07:11:16 +0000 (09:11 +0200)]
core: return aliases list as an array in core.aliases_list

3 years agocore: set RET_ARRAY flag for core.sockets_list command
grumvalski [Wed, 12 Jul 2017 07:04:13 +0000 (09:04 +0200)]
core: set RET_ARRAY flag for core.sockets_list command

3 years agoMerge pull request #1183 from athonet-open/xmlrpc-array-value
Daniel-Constantin Mierla [Tue, 11 Jul 2017 13:17:21 +0000 (15:17 +0200)]
Merge pull request #1183 from athonet-open/xmlrpc-array-value

xmlrpc: add <value> tag to array elements

3 years agotopos_redis: implementation for update branch storage function
Daniel-Constantin Mierla [Tue, 11 Jul 2017 13:11:13 +0000 (15:11 +0200)]
topos_redis: implementation for update branch storage function

3 years agotopos: added functions to update branch fields in storage
Daniel-Constantin Mierla [Tue, 11 Jul 2017 12:56:58 +0000 (14:56 +0200)]
topos: added functions to update branch fields in storage

3 years agoims_ocs: Added example database schema
Carsten Bock [Tue, 11 Jul 2017 12:38:53 +0000 (14:38 +0200)]
ims_ocs: Added example database schema

3 years agoxmlrpc: add <value> tag to array elements 1183/head
Alberto Sartori [Tue, 11 Jul 2017 12:09:11 +0000 (14:09 +0200)]
xmlrpc: add <value> tag to array elements

- add call to `add_xmlrpc_reply(reply, &value_prefix)` to  `rpc_array_add` function
- add call to `add_xmlrpc_reply(reply, &value_suffix)` to  `rpc_array_add` function

3 years agokamctl: refreshed db creation scripts for sql databases
Daniel-Constantin Mierla [Tue, 11 Jul 2017 10:36:07 +0000 (12:36 +0200)]
kamctl: refreshed db creation scripts for sql databases

3 years agolib/srdb1: make (setid,url) unique key instead of primary
Daniel-Constantin Mierla [Tue, 11 Jul 2017 10:35:27 +0000 (12:35 +0200)]
lib/srdb1: make (setid,url) unique key instead of primary

- conflicts with autoincrement in mysql

3 years agokamctl: regenerated db creation scripts
Daniel-Constantin Mierla [Tue, 11 Jul 2017 10:28:32 +0000 (12:28 +0200)]
kamctl: regenerated db creation scripts

3 years agolib/srdb1: added autoincrement id column for rtpengine
Daniel-Constantin Mierla [Tue, 11 Jul 2017 10:28:03 +0000 (12:28 +0200)]
lib/srdb1: added autoincrement id column for rtpengine

3 years agotextops: remove hf with regex functions exported to kemi framework
Daniel-Constantin Mierla [Tue, 11 Jul 2017 07:04:39 +0000 (09:04 +0200)]
textops: remove hf with regex functions exported to kemi framework

3 years agomodules: readme files regenerated - cfg_rpc ... [skip ci]
Kamailio Dev [Mon, 10 Jul 2017 17:31:21 +0000 (19:31 +0200)]
modules: readme files regenerated - cfg_rpc ... [skip ci]

3 years agoMerge pull request #1181 from hdikme/master
Daniel-Constantin Mierla [Mon, 10 Jul 2017 17:23:56 +0000 (19:23 +0200)]
Merge pull request #1181 from hdikme/master

configuration reset function (cfg.reset)

3 years agoxlog: free vars in case of errors in fixup functions
Daniel-Constantin Mierla [Mon, 10 Jul 2017 15:08:33 +0000 (17:08 +0200)]
xlog: free vars in case of errors in fixup functions

3 years agotm: several checks for return codes for better error handling
Daniel-Constantin Mierla [Mon, 10 Jul 2017 09:27:47 +0000 (11:27 +0200)]
tm: several checks for return codes for better error handling

3 years agoevapi: close server socket if fnctl() fails
Daniel-Constantin Mierla [Mon, 10 Jul 2017 09:27:12 +0000 (11:27 +0200)]
evapi: close server socket if fnctl() fails

3 years agomodules: readme files regenerated - topos ... [skip ci]
Kamailio Dev [Mon, 10 Jul 2017 08:01:37 +0000 (10:01 +0200)]
modules: readme files regenerated - topos ... [skip ci]

3 years agotopos: Safety check for database storage
Carsten Bock [Mon, 10 Jul 2017 07:57:20 +0000 (09:57 +0200)]
topos: Safety check for database storage

3 years agotopos: Add missing doc for storage parameter
Carsten Bock [Mon, 10 Jul 2017 07:56:07 +0000 (09:56 +0200)]
topos: Add missing doc for storage parameter

3 years agotopos_redis: Fix Typo in error-message
Carsten Bock [Mon, 10 Jul 2017 07:54:08 +0000 (09:54 +0200)]
topos_redis: Fix Typo in error-message

3 years agoevapi: handle return code for fcntl
Daniel-Constantin Mierla [Sun, 9 Jul 2017 08:21:20 +0000 (10:21 +0200)]
evapi: handle return code for fcntl

3 years agoasync: free var in case of fixup error
Daniel-Constantin Mierla [Sun, 9 Jul 2017 08:01:17 +0000 (10:01 +0200)]
async: free var in case of fixup error

3 years agousrloc: rpc flush to return error in case of failure
Daniel-Constantin Mierla [Sat, 8 Jul 2017 07:39:05 +0000 (09:39 +0200)]
usrloc: rpc flush to return error in case of failure

3 years agoregistrar: free var in case of pv name error
Daniel-Constantin Mierla [Sat, 8 Jul 2017 07:38:13 +0000 (09:38 +0200)]
registrar: free var in case of pv name error

3 years agoauth_db: small reorder to do the check before accessing the fields
Daniel-Constantin Mierla [Sat, 8 Jul 2017 07:37:04 +0000 (09:37 +0200)]
auth_db: small reorder to do the check before accessing the fields

3 years agolib: dtrie - removed duplicate check for same value
Daniel-Constantin Mierla [Sat, 8 Jul 2017 07:35:57 +0000 (09:35 +0200)]
lib: dtrie - removed duplicate check for same value

3 years agoacc: free parameter in acc fixup in case of error
Daniel-Constantin Mierla [Sat, 8 Jul 2017 07:35:13 +0000 (09:35 +0200)]
acc: free parameter in acc fixup in case of error

3 years agomodules: readme files regenerated - textops ... [skip ci]
Kamailio Dev [Fri, 7 Jul 2017 12:16:23 +0000 (14:16 +0200)]
modules: readme files regenerated - textops ... [skip ci]

3 years agotextops: documentation for remove_hf_exp(...)
Daniel-Constantin Mierla [Fri, 7 Jul 2017 12:10:04 +0000 (14:10 +0200)]
textops: documentation for remove_hf_exp(...)

3 years agotextops: new function remove_hf_exp(match, skip)
Daniel-Constantin Mierla [Fri, 7 Jul 2017 12:03:52 +0000 (14:03 +0200)]
textops: new function remove_hf_exp(match, skip)

- remove header fields that do not match regex ''skip', but match regex
  'match'

3 years agocore: fixup helper function for two regex parameters
Daniel-Constantin Mierla [Fri, 7 Jul 2017 12:03:29 +0000 (14:03 +0200)]
core: fixup helper function for two regex parameters

3 years agodispatcher: try to add sip: scheme to dst uri, if initial parse fails
Daniel-Constantin Mierla [Fri, 7 Jul 2017 11:33:16 +0000 (13:33 +0200)]
dispatcher: try to add sip: scheme to dst uri, if initial parse fails

- operation done when records are loaded from database or file

3 years agopv: free var in case pkg alloc failure
Daniel-Constantin Mierla [Fri, 7 Jul 2017 07:53:38 +0000 (09:53 +0200)]
pv: free var in case pkg alloc failure

3 years agojsonrpcs: safety vars init and release checks
Daniel-Constantin Mierla [Fri, 7 Jul 2017 07:48:53 +0000 (09:48 +0200)]
jsonrpcs: safety vars init and release checks

3 years agotextops: fixed whitespacing and few malloc size adjustmets for safety
Daniel-Constantin Mierla [Fri, 7 Jul 2017 07:31:37 +0000 (09:31 +0200)]
textops: fixed whitespacing and few malloc size adjustmets for safety

3 years agotextopsx: free in case of error inside sel_hf_value_name()
Daniel-Constantin Mierla [Fri, 7 Jul 2017 07:29:41 +0000 (09:29 +0200)]
textopsx: free in case of error inside sel_hf_value_name()

3 years agomsrp: safety checks to avoid analyzer reports
Daniel-Constantin Mierla [Fri, 7 Jul 2017 07:10:14 +0000 (09:10 +0200)]
msrp: safety checks to avoid analyzer reports

3 years agotopos_redis: increase the array size used for storage ops
Daniel-Constantin Mierla [Fri, 7 Jul 2017 07:03:01 +0000 (09:03 +0200)]
topos_redis: increase the array size used for storage ops

3 years agorls: added missing license headers, coherent indentation
Daniel-Constantin Mierla [Wed, 5 Jul 2017 13:30:36 +0000 (15:30 +0200)]
rls: added missing license headers, coherent indentation

3 years agocfg_rpc: configuration reset function has been implemented 1181/head
Huseyin Dikme [Tue, 4 Jul 2017 12:41:37 +0000 (14:41 +0200)]
cfg_rpc: configuration reset function has been implemented

- rpc_reset function enables to reset all the variables of a certain group to their initial values.
  e.g.: kamcmd cfg.reset core.
  Above given example will reset all variables of the configuration group "core".

3 years agocore: cfg_get_default_value_by_name function has been implemented
Huseyin Dikme [Tue, 4 Jul 2017 12:10:38 +0000 (14:10 +0200)]
core: cfg_get_default_value_by_name function has been implemented

- As cfg_get_by_name function uses handle to reach variable values,
  this function will use instead orig_handle in order to reach
  the initial values when the config group was registered. Read-only
  variables will not be returned since cfg_reset function uses this function
  in order to set back the default values, and this cannot be implemented on read-only variables.

3 years agoMerge pull request #1180 from smititelu/master
Daniel-Constantin Mierla [Tue, 4 Jul 2017 10:33:11 +0000 (12:33 +0200)]
Merge pull request #1180 from smititelu/master

dispatcher: Increase line buffer size

3 years agorls: reset vars to avoid double free in case of error
Daniel-Constantin Mierla [Tue, 4 Jul 2017 10:29:08 +0000 (12:29 +0200)]
rls: reset vars to avoid double free in case of error

3 years agopresence: reset vars to avoid double free in case of error
Daniel-Constantin Mierla [Tue, 4 Jul 2017 10:26:41 +0000 (12:26 +0200)]
presence: reset vars to avoid double free in case of error

3 years agoavp: return in case of error in avp select
Daniel-Constantin Mierla [Tue, 4 Jul 2017 10:17:54 +0000 (12:17 +0200)]
avp: return in case of error in avp select

3 years agoxcap_server: reset server_name variable after free
Daniel-Constantin Mierla [Tue, 4 Jul 2017 10:17:36 +0000 (12:17 +0200)]
xcap_server: reset server_name variable after free

- avoid re-use in the loop

3 years agodispatcher: Increase line buffer size 1180/head
Stefan Mititelu [Tue, 4 Jul 2017 10:06:26 +0000 (13:06 +0300)]
dispatcher: Increase line buffer size

3 years agomtree: access values before safety checks of variables
Daniel-Constantin Mierla [Tue, 4 Jul 2017 10:00:47 +0000 (12:00 +0200)]
mtree: access values before safety checks of variables

3 years agodispatcher: log messages for hashing auth username
Daniel-Constantin Mierla [Tue, 4 Jul 2017 09:52:53 +0000 (11:52 +0200)]
dispatcher: log messages for hashing auth username

3 years agodialog: lookup kemi engine for event route execution
Daniel-Constantin Mierla [Tue, 4 Jul 2017 09:11:41 +0000 (11:11 +0200)]
dialog: lookup kemi engine for event route execution

3 years agodialog: safety checks and free of profiles in case of errors
Daniel-Constantin Mierla [Tue, 4 Jul 2017 07:59:10 +0000 (09:59 +0200)]
dialog: safety checks and free of profiles in case of errors

- free partial list of profiles in dlg_set_timeout_by_profile() when no
  more memory

3 years agotmx: missing break in t_cancel_branches(others)
Daniel-Constantin Mierla [Tue, 4 Jul 2017 07:08:04 +0000 (09:08 +0200)]
tmx: missing break in t_cancel_branches(others)

3 years agocore: msg translator - reworked error handling to free allocated buffers
Daniel-Constantin Mierla [Tue, 4 Jul 2017 06:57:36 +0000 (08:57 +0200)]
core: msg translator - reworked error handling to free allocated buffers

3 years agocore: free locl link structures not linked to listen sockets
Daniel-Constantin Mierla [Tue, 4 Jul 2017 06:44:50 +0000 (08:44 +0200)]
core: free locl link structures not linked to listen sockets

3 years agocore: proxy - free in case of errors making proxy only from ip
Daniel-Constantin Mierla [Tue, 4 Jul 2017 06:43:28 +0000 (08:43 +0200)]
core: proxy - free in case of errors making proxy only from ip

3 years agocore: parser uri - add missing break to avoid useless assignments
Daniel-Constantin Mierla [Tue, 4 Jul 2017 06:41:34 +0000 (08:41 +0200)]
core: parser uri - add missing break to avoid useless assignments

3 years agocore: mem/qm - fixed pointer expressions in qm_check() debug function
Daniel-Constantin Mierla [Tue, 4 Jul 2017 06:40:29 +0000 (08:40 +0200)]
core: mem/qm - fixed pointer expressions in qm_check() debug function

3 years agocore: cfg.y - fixed condition on case parsing
Daniel-Constantin Mierla [Tue, 4 Jul 2017 06:39:39 +0000 (08:39 +0200)]
core: cfg.y - fixed condition on case parsing

3 years agomodules: readme files regenerated - pua_reginfo ... [skip ci]
Kamailio Dev [Mon, 3 Jul 2017 17:01:39 +0000 (19:01 +0200)]
modules: readme files regenerated - pua_reginfo ... [skip ci]

3 years agopua_reginfo: use outbound proxy for PUBLISH requests
Vasiliy Ganchev [Mon, 3 Jul 2017 16:56:52 +0000 (18:56 +0200)]
pua_reginfo: use outbound proxy for PUBLISH requests

3 years agoMerge pull request #1175 from claudiupb/redis_enhance_debug
Daniel-Constantin Mierla [Mon, 3 Jul 2017 16:52:32 +0000 (18:52 +0200)]
Merge pull request #1175 from claudiupb/redis_enhance_debug

ndb_redis: enhance debug info related to redis replies

3 years agocfgutils: more log messages for locking functions
Daniel-Constantin Mierla [Mon, 3 Jul 2017 15:02:02 +0000 (17:02 +0200)]
cfgutils: more log messages for locking functions

- it was silent if locks set was not initialized properly which could
  mislead at runtime, but not showing any error message
- if locks set size is too big, set it to 14 (this is used as power of 2)

3 years agondb_redis: enhance debug info related to redis replies 1175/head
Claudiu Boriga [Mon, 3 Jul 2017 12:49:16 +0000 (15:49 +0300)]
ndb_redis: enhance debug info related to redis replies

3 years agocore: parse rr - reset head in case of parse error
Daniel-Constantin Mierla [Mon, 3 Jul 2017 12:58:59 +0000 (14:58 +0200)]
core: parse rr - reset head in case of parse error

- avoid acessing an invalid pointer
- proper support if trying to parse into an existing rr list in a second
  attempt (not the case so far)

3 years agocore: avoid accessing freed structure in case of duplicated listen addresses
Daniel-Constantin Mierla [Mon, 3 Jul 2017 12:42:03 +0000 (14:42 +0200)]
core: avoid accessing freed structure in case of duplicated listen addresses

3 years agoenum: fixed code for country code length
Daniel-Constantin Mierla [Mon, 3 Jul 2017 09:53:21 +0000 (11:53 +0200)]
enum: fixed code for country code length

3 years agoseas: avoid double free and leak
Daniel-Constantin Mierla [Mon, 3 Jul 2017 09:45:26 +0000 (11:45 +0200)]
seas: avoid double free and leak

3 years agoenum: free variable in case of error and safety check for returned pointer
Daniel-Constantin Mierla [Mon, 3 Jul 2017 08:57:21 +0000 (10:57 +0200)]
enum: free variable in case of error and safety check for returned pointer

3 years agorr: use macro to get parsed From in record_route_preset()
Daniel-Constantin Mierla [Mon, 3 Jul 2017 08:01:20 +0000 (10:01 +0200)]
rr: use macro to get parsed From in record_route_preset()

- safety check for parsed pointer

3 years agocore: mem/dl_malloc - fix preprocessor branch comment
Mikko Lehto [Mon, 3 Jul 2017 05:44:15 +0000 (08:44 +0300)]
core: mem/dl_malloc - fix preprocessor branch comment

3 years agocore: dns cachec- safety check in log message before abort
Daniel-Constantin Mierla [Sun, 2 Jul 2017 10:22:33 +0000 (12:22 +0200)]
core: dns cachec- safety check in log message before abort

3 years agoimc: proper condition on empty db result
Daniel-Constantin Mierla [Sun, 2 Jul 2017 06:54:51 +0000 (08:54 +0200)]
imc: proper condition on empty db result

3 years agoxprint: init var to get rid of compile warning
Daniel-Constantin Mierla [Sat, 1 Jul 2017 06:03:29 +0000 (08:03 +0200)]
xprint: init var to get rid of compile warning

3 years agosiptrace: proper varible in log message when af is unknown
Daniel-Constantin Mierla [Sat, 1 Jul 2017 06:02:23 +0000 (08:02 +0200)]
siptrace: proper varible in log message when af is unknown

3 years agohttp_client: move assign for download size after right side variable was set
Daniel-Constantin Mierla [Sat, 1 Jul 2017 06:00:56 +0000 (08:00 +0200)]
http_client: move assign for download size after right side variable was set

3 years agodbq_usrloc: statc str vars when their pointer is used out of function
Daniel-Constantin Mierla [Sat, 1 Jul 2017 05:57:23 +0000 (07:57 +0200)]
dbq_usrloc: statc str vars when their pointer is used out of function

3 years agoapp_sqlang: safety check for kemi func params used in log message
Daniel-Constantin Mierla [Sat, 1 Jul 2017 05:55:46 +0000 (07:55 +0200)]
app_sqlang: safety check for kemi func params used in log message

- incresed size for local buffers

3 years agoapp_lua: safety check for kemi func params used in log message
Daniel-Constantin Mierla [Sat, 1 Jul 2017 05:55:26 +0000 (07:55 +0200)]
app_lua: safety check for kemi func params used in log message

- incresed size for local buffers

3 years agoapp_jsdt: safety check for kemi func params used in log message
Daniel-Constantin Mierla [Sat, 1 Jul 2017 05:54:18 +0000 (07:54 +0200)]
app_jsdt: safety check for kemi func params used in log message

- incresed size for local buffers

3 years agocore: mem - updated defines for sys malloc and mem error log messages
Daniel-Constantin Mierla [Sat, 1 Jul 2017 05:50:10 +0000 (07:50 +0200)]
core: mem - updated defines for sys malloc and mem error log messages

3 years agoMakefile.defs: compile with system malloc for pkg if MEMPKG=sys
Daniel-Constantin Mierla [Sat, 1 Jul 2017 05:48:04 +0000 (07:48 +0200)]
Makefile.defs: compile with system malloc for pkg if MEMPKG=sys

- if MEMDBGSYS=1, the use a debug variant for system malloc

3 years agomodules: readme files regenerated - http_client ... [skip ci]
Kamailio Dev [Fri, 30 Jun 2017 13:31:22 +0000 (15:31 +0200)]
modules: readme files regenerated - http_client ... [skip ci]

3 years agohttp_client: updated docs for http_client_query()
Daniel-Constantin Mierla [Fri, 30 Jun 2017 13:17:46 +0000 (15:17 +0200)]
http_client: updated docs for http_client_query()

3 years agohttp_client: allow providing headers to http_client_query()
Daniel-Constantin Mierla [Fri, 30 Jun 2017 13:06:24 +0000 (15:06 +0200)]
http_client: allow providing headers to http_client_query()

- lost from removed http_query() in utils

3 years agohttp_client: move to next field before freeing item in fixup function
Daniel-Constantin Mierla [Fri, 30 Jun 2017 12:15:55 +0000 (14:15 +0200)]
http_client: move to next field before freeing item in fixup function

3 years agocall_control: free pkg memory in case of errors when parsing params
Daniel-Constantin Mierla [Fri, 30 Jun 2017 12:02:20 +0000 (14:02 +0200)]
call_control: free pkg memory in case of errors when parsing params

3 years agocall_obj: free current element in case of alloc failure to its field
Daniel-Constantin Mierla [Fri, 30 Jun 2017 11:46:21 +0000 (13:46 +0200)]
call_obj: free current element in case of alloc failure to its field

3 years agowebsocket: use sizeof over the type of the pointer to be allocated
Daniel-Constantin Mierla [Fri, 30 Jun 2017 11:36:26 +0000 (13:36 +0200)]
websocket: use sizeof over the type of the pointer to be allocated

3 years agodomain: use same condition to alloc and free local variable
Daniel-Constantin Mierla [Fri, 30 Jun 2017 11:32:18 +0000 (13:32 +0200)]
domain: use same condition to alloc and free local variable

3 years agodb_mysql Look for MariaDB as well as MySQL
Olle E. Johansson [Fri, 30 Jun 2017 09:00:35 +0000 (11:00 +0200)]
db_mysql Look for MariaDB as well as MySQL

3 years agocore: parse fline - cast number to char for print to avoid compile warning
Daniel-Constantin Mierla [Fri, 30 Jun 2017 08:30:51 +0000 (10:30 +0200)]
core: parse fline - cast number to char for print to avoid compile warning

3 years agocore: dns cache - catch unknown record type to avoid compile warnings
Daniel-Constantin Mierla [Fri, 30 Jun 2017 08:11:50 +0000 (10:11 +0200)]
core: dns cache - catch unknown record type to avoid compile warnings

3 years agokamctl: kamdbctl - proper use of DBPORT for postgres
Daniel-Constantin Mierla [Fri, 30 Jun 2017 06:38:11 +0000 (08:38 +0200)]
kamctl: kamdbctl - proper use of DBPORT for postgres

3 years agokeepalive: removed duplicated typedef definition
Daniel-Constantin Mierla [Thu, 29 Jun 2017 07:33:19 +0000 (09:33 +0200)]
keepalive: removed duplicated typedef definition

3 years agomodules: readme files regenerated - permissions ... [skip ci]
Kamailio Dev [Thu, 29 Jun 2017 07:31:37 +0000 (09:31 +0200)]
modules: readme files regenerated - permissions ... [skip ci]

3 years agopermissions: documented load_backends parameter
Daniel-Constantin Mierla [Thu, 29 Jun 2017 07:27:33 +0000 (09:27 +0200)]
permissions: documented load_backends parameter