sip-router
4 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]

4 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

4 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

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

4 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

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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

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

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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

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

4 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

4 years agopermissions: new parameter load_backends
Daniel-Constantin Mierla [Thu, 29 Jun 2017 07:21:22 +0000 (09:21 +0200)]
permissions: new parameter load_backends

- control what backends should be loaded
  - 1 - address table
  - 2 - trusted table
  - 4 - allow file
  - 8 - deny file
- it can be a combination (sum) of the options to load many backends
- default value 0xffff (load all backends)

4 years ago.github: added pull request template
Daniel-Constantin Mierla [Wed, 28 Jun 2017 15:22:34 +0000 (17:22 +0200)]
.github: added pull request template

4 years agoutils/db_berkeley: access variable after null pointer check
Ilya Shipitsin [Wed, 28 Jun 2017 14:45:54 +0000 (16:45 +0200)]
utils/db_berkeley: access variable after null pointer check

4 years agotls: updated tls version selection for libssl 1.1.0 api
Daniel-Constantin Mierla [Wed, 28 Jun 2017 09:41:15 +0000 (11:41 +0200)]
tls: updated tls version selection for libssl 1.1.0 api

- fixes compile warnings for deprecated TLSXY_method() functions

4 years agotls: dynamic locks not needed for openssl v1.1.0+
Daniel-Constantin Mierla [Wed, 28 Jun 2017 08:26:43 +0000 (10:26 +0200)]
tls: dynamic locks not needed for openssl v1.1.0+

- openssl v1.1.0 is thread safe
- fixes the compile warnings for libssl 1.1.0

4 years agokazoo: add json.count transformation
lazedo [Tue, 27 Jun 2017 22:01:37 +0000 (23:01 +0100)]
kazoo: add json.count transformation

4 years agokazoo: add $kzRK to accdess routing key of the payload
lazedo [Tue, 27 Jun 2017 22:00:43 +0000 (23:00 +0100)]
kazoo: add $kzRK to accdess routing key of the payload

4 years agomodules: readme files regenerated - path ... [skip ci]
Kamailio Dev [Tue, 27 Jun 2017 14:46:21 +0000 (16:46 +0200)]
modules: readme files regenerated - path ... [skip ci]

4 years agopath: fixed the name of the parameter in enable_r2 example
Daniel-Constantin Mierla [Tue, 27 Jun 2017 14:42:53 +0000 (16:42 +0200)]
path: fixed the name of the parameter in enable_r2 example

4 years agomodules: readme files regenerated - path ... [skip ci]
Kamailio Dev [Tue, 27 Jun 2017 14:31:28 +0000 (16:31 +0200)]
modules: readme files regenerated - path ... [skip ci]

4 years agopv: new variables - $RAu and $RAut
Daniel-Constantin Mierla [Tue, 27 Jun 2017 14:15:43 +0000 (16:15 +0200)]
pv: new variables - $RAu and $RAut

- $RAu - URI format for local socket where the SIP message was received,
  without trasport parameter for UDP, using the advertised address if available
- $RAut - URI format for local socket where the SIP message was received,
  always with transport parameter, using the advertised address if available

4 years agocore: parser - get_rcv_socket_uri() with option to use advertised address
Daniel-Constantin Mierla [Tue, 27 Jun 2017 14:14:52 +0000 (16:14 +0200)]
core: parser - get_rcv_socket_uri() with option to use advertised address

4 years agopv: $RAp returns also the int value for advertised port when available
Daniel-Constantin Mierla [Tue, 27 Jun 2017 14:00:08 +0000 (16:00 +0200)]
pv: $RAp returns also the int value for advertised port when available

4 years agopv: new variables - $Ru and $Rut
Daniel-Constantin Mierla [Tue, 27 Jun 2017 13:54:55 +0000 (15:54 +0200)]
pv: new variables - $Ru and $Rut

- $Ru - URI format for local socket where the SIP message was received,
  without trasport parameter for UDP
- $Rut - URI format for local socket where the SIP message was received,
  always with transport parameter

4 years agocore: parser - helper function to return URI format for local rcv socket
Daniel-Constantin Mierla [Tue, 27 Jun 2017 13:53:49 +0000 (15:53 +0200)]
core: parser - helper function to return URI format for local rcv socket

4 years agopath: fix for second path insert pointer
Daniel-Constantin Mierla [Tue, 27 Jun 2017 13:53:20 +0000 (15:53 +0200)]
path: fix for second path insert pointer

4 years agopath: documentation for enable_r2 and received_format parameters
Daniel-Constantin Mierla [Tue, 27 Jun 2017 13:52:54 +0000 (15:52 +0200)]
path: documentation for enable_r2 and received_format parameters

4 years agorr: small formatting adjustments to doc examples
Daniel-Constantin Mierla [Tue, 27 Jun 2017 13:09:18 +0000 (15:09 +0200)]
rr: small formatting adjustments to doc examples

4 years agopath: option to add two path headers and use alias like received value
Daniel-Constantin Mierla [Tue, 27 Jun 2017 13:04:31 +0000 (15:04 +0200)]
path: option to add two path headers and use alias like received value

- enable_r2 - add two path headers, one for incoming socket and one for
  outgoing socket
- received_format - parameter to control if received value should be
  in sip uri (as so far) or in contact-alias param format

4 years agocore: remove inline from implementation of functions declared without it
Daniel-Constantin Mierla [Tue, 27 Jun 2017 13:02:30 +0000 (15:02 +0200)]
core: remove inline from implementation of functions declared without it

4 years agocore: mem/fm - replaced old log macros
Daniel-Constantin Mierla [Tue, 27 Jun 2017 07:50:00 +0000 (09:50 +0200)]
core: mem/fm - replaced old log macros

4 years agocorex: added $cfg(route) - return name of routing block for crt action
Daniel-Constantin Mierla [Mon, 26 Jun 2017 06:21:43 +0000 (08:21 +0200)]
corex: added $cfg(route) - return name of routing block for crt action

- aliased $cfg(file) to $cfg(name)

4 years agocore: added function to return route block name from crt action
Daniel-Constantin Mierla [Mon, 26 Jun 2017 06:20:45 +0000 (08:20 +0200)]
core: added function to return route block name from crt action

- renamed the function that returns cfg file name from crt action

4 years agomodules: readme files regenerated - jsonrpcs ... [skip ci]
Kamailio Dev [Sun, 25 Jun 2017 17:16:17 +0000 (19:16 +0200)]
modules: readme files regenerated - jsonrpcs ... [skip ci]

4 years agoMerge branch 'mslehto/issue1161'
Mikko Lehto [Sun, 25 Jun 2017 17:13:35 +0000 (20:13 +0300)]
Merge branch 'mslehto/issue1161'

4 years agomodules/jsonrpcs: add missing apostrophe to example
Mikko Lehto [Sun, 25 Jun 2017 16:07:06 +0000 (19:07 +0300)]
modules/jsonrpcs: add missing apostrophe to example

4 years agomodules: readme files regenerated - topoh ... [skip ci]
Kamailio Dev [Sun, 25 Jun 2017 08:16:40 +0000 (10:16 +0200)]
modules: readme files regenerated - topoh ... [skip ci]

4 years agotopoh: documented event_callback parameter
Daniel-Constantin Mierla [Sun, 25 Jun 2017 08:04:53 +0000 (10:04 +0200)]
topoh: documented event_callback parameter

4 years agotopoh: documented uri_prefix_checks parameter
Daniel-Constantin Mierla [Sun, 25 Jun 2017 08:00:01 +0000 (10:00 +0200)]
topoh: documented uri_prefix_checks parameter

4 years agotopoh: coherent whitespacing and indentation
Daniel-Constantin Mierla [Sun, 25 Jun 2017 07:54:09 +0000 (09:54 +0200)]
topoh: coherent whitespacing and indentation

4 years agotopoh: option to disable uri prefix checks
Daniel-Constantin Mierla [Sun, 25 Jun 2017 07:48:26 +0000 (09:48 +0200)]
topoh: option to disable uri prefix checks

- some devices do not copy the exact URI as received in headers
  (Contact, Record-Route) - they can add default port or mix parameters
- reported by GH #1165

4 years agocore/socket_info: use internal str2int() instead of strtol()
Mikko Lehto [Sat, 24 Jun 2017 09:26:30 +0000 (12:26 +0300)]
core/socket_info: use internal str2int() instead of strtol()

- strtol() works only for null terminated strings
- fix for issue GH #1161

4 years agopv: coherent whitespacing and indentation for pv time code
Daniel-Constantin Mierla [Sat, 24 Jun 2017 05:16:47 +0000 (07:16 +0200)]
pv: coherent whitespacing and indentation for pv time code

4 years agohtable: removed useless mode param from ht_cell_value_add()
Daniel-Constantin Mierla [Sat, 24 Jun 2017 05:10:48 +0000 (07:10 +0200)]
htable: removed useless mode param from ht_cell_value_add()

- it was used only once with mode=1

4 years agohtable: map $shtrecord() inner names over integer ids
Daniel-Constantin Mierla [Sat, 24 Jun 2017 05:06:03 +0000 (07:06 +0200)]
htable: map $shtrecord() inner names over integer ids

- avoid string comparison at runtime

4 years agokazoo: use hardcoded max size of routing key
lazedo [Fri, 23 Jun 2017 20:18:13 +0000 (21:18 +0100)]
kazoo: use hardcoded max size of routing key

4 years agokazoo: max size of routing key
lazedo [Fri, 23 Jun 2017 20:09:54 +0000 (21:09 +0100)]
kazoo: max size of routing key

4 years agoMerge pull request #1163 from snen/presence_subcribe_delete_error
Daniel-Constantin Mierla [Fri, 23 Jun 2017 17:12:38 +0000 (19:12 +0200)]
Merge pull request #1163 from snen/presence_subcribe_delete_error

presence: subsription double delete fix

4 years agohtable: do not call expired event route on get/add operations
Daniel-Constantin Mierla [Fri, 23 Jun 2017 16:19:37 +0000 (18:19 +0200)]
htable: do not call expired event route on get/add operations

- have consistent behaviour with set operation
- avoid accessing the same (expired) item twice, second after being
  removed if the item is accessed in the event route
- reported by GH #1152

4 years agopresence: subsription double delete fix 1163/head
Dmitri Savolainen [Fri, 23 Jun 2017 15:57:00 +0000 (18:57 +0300)]
presence: subsription double delete fix

- if timeout_rm_subs parameter set to "1" and NOTIFY timeout about expired subsription

4 years agomodules: readme files regenerated - xhttp ... [skip ci]
Kamailio Dev [Fri, 23 Jun 2017 11:16:24 +0000 (13:16 +0200)]
modules: readme files regenerated - xhttp ... [skip ci]

4 years agoxhttp: fixed the docbook format
Daniel-Constantin Mierla [Fri, 23 Jun 2017 11:11:25 +0000 (13:11 +0200)]
xhttp: fixed the docbook format

4 years agoxhttp_rpc: removed unused static constants
Corey Farrell [Thu, 22 Jun 2017 20:09:56 +0000 (22:09 +0200)]
xhttp_rpc: removed unused static constants

4 years agoxhttp_pi: removed unused static constants
Corey Farrell [Thu, 22 Jun 2017 20:08:52 +0000 (22:08 +0200)]
xhttp_pi: removed unused static constants

4 years agoims_auth: removed empty get_ha1() static function
Corey Farrell [Thu, 22 Jun 2017 20:07:47 +0000 (22:07 +0200)]
ims_auth: removed empty get_ha1() static function

4 years agocarrierroute: undefine code related to mi commands
Corey Farrell [Thu, 22 Jun 2017 20:05:36 +0000 (22:05 +0200)]
carrierroute: undefine code related to mi commands

- fixes compiler warnings for unused static symbols

4 years agoMerge pull request #1162 from SipSeb/master
Daniel-Constantin Mierla [Thu, 22 Jun 2017 20:02:42 +0000 (22:02 +0200)]
Merge pull request #1162 from SipSeb/master

app_lua: add "NOTICE" loglevel to sr.log

4 years agoapp_lua: add "NOTICE" loglevel to sr.log 1162/head
Sebastian Damm [Thu, 22 Jun 2017 14:22:49 +0000 (16:22 +0200)]
app_lua: add "NOTICE" loglevel to sr.log

4 years agopv: $siz - return source ip, with enclosing square brackets for ipv6
Daniel-Constantin Mierla [Thu, 22 Jun 2017 06:45:36 +0000 (08:45 +0200)]
pv: $siz - return source ip, with enclosing square brackets for ipv6

4 years agocore: updated log macros for parse rpid
Daniel-Constantin Mierla [Wed, 21 Jun 2017 21:58:11 +0000 (23:58 +0200)]
core: updated log macros for parse rpid

4 years agomodules: readme files regenerated - pike ... [skip ci]
Kamailio Dev [Wed, 21 Jun 2017 18:46:26 +0000 (20:46 +0200)]
modules: readme files regenerated - pike ... [skip ci]

4 years agocore: parser - fix comment typo [skip ci]
Mikko Lehto [Wed, 21 Jun 2017 17:04:47 +0000 (20:04 +0300)]
core: parser - fix comment typo [skip ci]

4 years agomodules/dispatcher: comment typo [skip ci]
Mikko Lehto [Wed, 21 Jun 2017 17:03:28 +0000 (20:03 +0300)]
modules/dispatcher: comment typo [skip ci]

4 years agomodules/pike: fix documentation typo [skip ci]
Mikko Lehto [Wed, 14 Jun 2017 08:26:48 +0000 (11:26 +0300)]
modules/pike: fix documentation typo [skip ci]

4 years agomodules: fix common typo [skip ci]
Mikko Lehto [Fri, 2 Jun 2017 01:11:45 +0000 (04:11 +0300)]
modules: fix common typo [skip ci]

4 years agoexamples, modules: fix common typo [skip ci]
Mikko Lehto [Fri, 2 Jun 2017 00:36:51 +0000 (03:36 +0300)]
examples, modules: fix common typo [skip ci]

4 years agoMerge pull request #1158 from kamailio/pv-received-adv-address
Daniel-Constantin Mierla [Tue, 20 Jun 2017 16:54:12 +0000 (18:54 +0200)]
Merge pull request #1158 from kamailio/pv-received-adv-address

pv: add received ip/port pvars for advertised ip/port

4 years agopv: add received ip/port pvars for advertised ip/port 1158/head
lazedo [Tue, 20 Jun 2017 14:24:09 +0000 (15:24 +0100)]
pv: add received ip/port pvars for advertised ip/port

adds $RAi , $RAp
if advertise is not set, defaults to reveived ip/port

4 years agocore: faked msg - functions to get next fmsg with clear branches
Daniel-Constantin Mierla [Tue, 20 Jun 2017 14:00:00 +0000 (16:00 +0200)]
core: faked msg - functions to get next fmsg with clear branches

4 years agoMerge pull request #1157 from eloycoto/evapi
Daniel-Constantin Mierla [Tue, 20 Jun 2017 13:42:34 +0000 (15:42 +0200)]
Merge pull request #1157 from eloycoto/evapi

evapi: Improved error message

4 years agoMerge pull request #1156 from adubovikov/master
Daniel-Constantin Mierla [Tue, 20 Jun 2017 13:41:50 +0000 (15:41 +0200)]
Merge pull request #1156 from adubovikov/master

modules/topoh: fixed log's level.

4 years agoevapi: Improved error message 1157/head
Eloy Coto [Tue, 20 Jun 2017 13:03:29 +0000 (14:03 +0100)]
evapi: Improved error message

Signed-off-by: Eloy Coto <eloy.coto@gmail.com>