sip-router
4 years agopv: added section ids in the docs
Daniel-Constantin Mierla [Wed, 26 Jul 2017 10:00:20 +0000 (12:00 +0200)]
pv: added section ids in the docs

4 years agomodules: readme files regenerated - dialplan ... [skip ci]
Kamailio Dev [Wed, 26 Jul 2017 07:31:32 +0000 (09:31 +0200)]
modules: readme files regenerated - dialplan ... [skip ci]

4 years agodialplan: documentation for append_branch parameter
Daniel-Constantin Mierla [Wed, 26 Jul 2017 07:24:59 +0000 (09:24 +0200)]
dialplan: documentation for append_branch parameter

4 years agodialplan: added append_branch parameter
Daniel-Constantin Mierla [Wed, 26 Jul 2017 07:20:52 +0000 (09:20 +0200)]
dialplan: added append_branch parameter

- control if the module should do append branch if r-uri or r-uri
  username are changed inside failure route
- default value is 1 (append branch - preserves compatibility)

4 years agomodules: readme files regenerated - dialplan ... [skip ci]
Kamailio Dev [Tue, 25 Jul 2017 17:46:22 +0000 (19:46 +0200)]
modules: readme files regenerated - dialplan ... [skip ci]

4 years agodialplan: added documentation for dp_match() and dp_translate()
Daniel-Constantin Mierla [Tue, 25 Jul 2017 17:40:34 +0000 (19:40 +0200)]
dialplan: added documentation for dp_match() and dp_translate()

4 years agodialplan: added dp_match() and dp_replace() functions
Daniel-Constantin Mierla [Tue, 25 Jul 2017 17:06:05 +0000 (19:06 +0200)]
dialplan: added dp_match() and dp_replace() functions

- alternatives to dp_translate() with dedicated required parameters
  (avoiding second parameter of two variables separated by '/')
- dp_match(dpid, inval)
- dp_replace(dpid, inval, outvar)
- dpid can be interger or variable
- inval can be a static or dynamic (with vars) string
- outvar has to be a writable variable

4 years agocore: added helper fixup for int and str dynamic parameters
Daniel-Constantin Mierla [Tue, 25 Jul 2017 17:00:46 +0000 (19:00 +0200)]
core: added helper fixup for int and str dynamic parameters

4 years agodialplan: increased the size for dialplan attributes to 256
Daniel-Constantin Mierla [Tue, 25 Jul 2017 12:36:51 +0000 (14:36 +0200)]
dialplan: increased the size for dialplan attributes to 256

4 years agomodules: readme files regenerated - sipcapture ... [skip ci]
Kamailio Dev [Tue, 25 Jul 2017 13:01:20 +0000 (15:01 +0200)]
modules: readme files regenerated - sipcapture ... [skip ci]

4 years agomodules/sipcapture: improve nonsip_hook documentation
Mikko Lehto [Tue, 25 Jul 2017 12:53:52 +0000 (15:53 +0300)]
modules/sipcapture: improve nonsip_hook documentation

4 years agomodules/sipcapture: fix (param_export_t).name typo
Mikko Lehto [Tue, 25 Jul 2017 12:48:10 +0000 (15:48 +0300)]
modules/sipcapture: fix (param_export_t).name typo

4 years agopv: xavp related functions exported to kemi framework
Daniel-Constantin Mierla [Tue, 25 Jul 2017 12:05:17 +0000 (14:05 +0200)]
pv: xavp related functions exported to kemi framework

4 years agomodules: readme files regenerated - pv ... [skip ci]
Kamailio Dev [Tue, 25 Jul 2017 12:01:22 +0000 (14:01 +0200)]
modules: readme files regenerated - pv ... [skip ci]

4 years agopv: notes about dynamic parameters for xavp to var funtions
Daniel-Constantin Mierla [Tue, 25 Jul 2017 11:49:05 +0000 (13:49 +0200)]
pv: notes about dynamic parameters for xavp to var funtions

4 years agopv: support for dynamic params for var to xavp functions
Daniel-Constantin Mierla [Tue, 25 Jul 2017 11:45:28 +0000 (13:45 +0200)]
pv: support for dynamic params for var to xavp functions

4 years agodialplan: catch error case from macro used inside dp_trans_fixup()
Daniel-Constantin Mierla [Tue, 25 Jul 2017 08:54:20 +0000 (10:54 +0200)]
dialplan: catch error case from macro used inside dp_trans_fixup()

4 years agotsilo: coherent locking in ts_append
Federico Cabiddu [Mon, 24 Jul 2017 13:16:21 +0000 (15:16 +0200)]
tsilo: coherent locking in ts_append

4 years agoapp_perl: free on error cases for modf execution
Daniel-Constantin Mierla [Mon, 24 Jul 2017 11:24:49 +0000 (13:24 +0200)]
app_perl: free on error cases for modf execution

4 years agoxmlrpc: handle return codes
Daniel-Constantin Mierla [Mon, 24 Jul 2017 11:00:44 +0000 (13:00 +0200)]
xmlrpc: handle return codes

4 years agoxcap_client: safety check for namespace variable
Daniel-Constantin Mierla [Mon, 24 Jul 2017 10:22:00 +0000 (12:22 +0200)]
xcap_client: safety check for namespace variable

4 years agoxcap_client: removed unused api function get_elem()
Daniel-Constantin Mierla [Mon, 24 Jul 2017 10:15:55 +0000 (12:15 +0200)]
xcap_client: removed unused api function get_elem()

4 years agoxcap_client: handle return code for strchr()
Daniel-Constantin Mierla [Mon, 24 Jul 2017 10:15:09 +0000 (12:15 +0200)]
xcap_client: handle return code for strchr()

4 years agopresence_xml: fixed misleading error message
Daniel-Constantin Mierla [Mon, 24 Jul 2017 10:14:18 +0000 (12:14 +0200)]
presence_xml: fixed misleading error message

4 years agostun: link attribute when calling stun_parse_body() with an existing list
Daniel-Constantin Mierla [Mon, 24 Jul 2017 09:56:57 +0000 (11:56 +0200)]
stun: link attribute when calling stun_parse_body() with an existing list

4 years agostatsd: simplified error handling inside statsd_connect()
Daniel-Constantin Mierla [Mon, 24 Jul 2017 09:44:21 +0000 (11:44 +0200)]
statsd: simplified error handling inside statsd_connect()

4 years agostatistics: free vars in case of error in fixup function
Daniel-Constantin Mierla [Mon, 24 Jul 2017 09:38:51 +0000 (11:38 +0200)]
statistics: free vars in case of error in fixup function

4 years agosst: add 0 after memcpy
Daniel-Constantin Mierla [Mon, 24 Jul 2017 06:26:38 +0000 (08:26 +0200)]
sst: add 0 after memcpy

4 years agouid_uri_db: safer check for accessing to header
Daniel-Constantin Mierla [Mon, 24 Jul 2017 06:22:24 +0000 (08:22 +0200)]
uid_uri_db: safer check for accessing to header

4 years agotm: refactored error handling for eval_uac_routing()
Daniel-Constantin Mierla [Sun, 23 Jul 2017 08:08:47 +0000 (10:08 +0200)]
tm: refactored error handling for eval_uac_routing()

4 years agopresence_conference: free xml array in case of error
Daniel-Constantin Mierla [Sun, 23 Jul 2017 07:58:16 +0000 (09:58 +0200)]
presence_conference: free xml array in case of error

4 years agomsilo: reorganized tests to free db_res and build of extra headers
Daniel-Constantin Mierla [Sun, 23 Jul 2017 07:42:21 +0000 (09:42 +0200)]
msilo: reorganized tests to free db_res and build of extra headers

4 years agomediaproxy: handle return pointer values
Daniel-Constantin Mierla [Sun, 23 Jul 2017 07:01:07 +0000 (09:01 +0200)]
mediaproxy: handle return pointer values

4 years agojson: remove use of deprecated macro is_error()
Daniel-Constantin Mierla [Sun, 23 Jul 2017 06:59:43 +0000 (08:59 +0200)]
json: remove use of deprecated macro is_error()

4 years agomemcached: handle error cases and alloc enough for null termination
Daniel-Constantin Mierla [Sat, 22 Jul 2017 06:35:01 +0000 (08:35 +0200)]
memcached: handle error cases and alloc enough for null termination

4 years agonat_traversal: handle return values for errors
Daniel-Constantin Mierla [Sat, 22 Jul 2017 06:34:01 +0000 (08:34 +0200)]
nat_traversal: handle return values for errors

4 years agopdt: reorder checks to avoid null access
Daniel-Constantin Mierla [Sat, 22 Jul 2017 06:33:22 +0000 (08:33 +0200)]
pdt: reorder checks to avoid null access

4 years agoxhttp: proper check for return of add lump rpl
Daniel-Constantin Mierla [Fri, 21 Jul 2017 11:51:36 +0000 (13:51 +0200)]
xhttp: proper check for return of add lump rpl

4 years agoxmlops: removed dead code return
Daniel-Constantin Mierla [Fri, 21 Jul 2017 11:51:19 +0000 (13:51 +0200)]
xmlops: removed dead code return

4 years agoxcap_server: proper test of retun code for add lump rpl
Daniel-Constantin Mierla [Fri, 21 Jul 2017 11:50:07 +0000 (13:50 +0200)]
xcap_server: proper test of retun code for add lump rpl

4 years agocore: cfg ctx - removed unused variable
Daniel-Constantin Mierla [Fri, 21 Jul 2017 08:27:57 +0000 (10:27 +0200)]
core: cfg ctx - removed unused variable

4 years agocfg_rpc: hanlde return code inside cfg.reset rpc command
Daniel-Constantin Mierla [Fri, 21 Jul 2017 08:11:07 +0000 (10:11 +0200)]
cfg_rpc: hanlde return code inside cfg.reset rpc command

4 years agospeeddial: simplified access to db_res and the free of it
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:57:39 +0000 (08:57 +0200)]
speeddial: simplified access to db_res and the free of it

4 years agosqlops: free allocated pv list in case of error inside fixup_sql_pvquery()
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:56:58 +0000 (08:56 +0200)]
sqlops: free allocated pv list in case of error inside fixup_sql_pvquery()

4 years agodialplan: free allocated vars in case of errors
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:56:10 +0000 (08:56 +0200)]
dialplan: free allocated vars in case of errors

4 years agodialog: increase puid size for profile to ensure null termination
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:55:04 +0000 (08:55 +0200)]
dialog: increase puid size for profile to ensure null termination

4 years agodebugger: fix orig offset computation inside w_dbg_sip_msg()
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:53:53 +0000 (08:53 +0200)]
debugger: fix orig offset computation inside w_dbg_sip_msg()

4 years agodb_postgres: handle return code for setsockopt()
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:52:44 +0000 (08:52 +0200)]
db_postgres: handle return code for setsockopt()

4 years agodb_cluster: free in case of error
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:52:11 +0000 (08:52 +0200)]
db_cluster: free in case of error

4 years agoavp: removed history, coherent indentation
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:51:26 +0000 (08:51 +0200)]
avp: removed history, coherent indentation

4 years agoapp_python: free buf in case of get exception error
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:45:18 +0000 (08:45 +0200)]
app_python: free buf in case of get exception error

4 years agocore: pvapi - added free_pvname_list()
Daniel-Constantin Mierla [Fri, 21 Jul 2017 06:44:37 +0000 (08:44 +0200)]
core: pvapi - added free_pvname_list()

4 years agoipops: replace return with goto error to release resources
Daniel-Constantin Mierla [Thu, 20 Jul 2017 19:55:34 +0000 (21:55 +0200)]
ipops: replace return with goto error to release resources

4 years agotsilo: check return code for parse_uri()
Daniel-Constantin Mierla [Thu, 20 Jul 2017 18:34:57 +0000 (20:34 +0200)]
tsilo: check return code for parse_uri()

4 years agoapp_python: implemented the read of 5 or 6 kemi str parameters
Daniel-Constantin Mierla [Thu, 20 Jul 2017 14:44:36 +0000 (16:44 +0200)]
app_python: implemented the read of 5 or 6 kemi str parameters

4 years agoalias_db: simplify error handling for db query function
Daniel-Constantin Mierla [Thu, 20 Jul 2017 14:35:15 +0000 (16:35 +0200)]
alias_db: simplify error handling for db query function

4 years agotopos: handle return code for parse_headers()
Daniel-Constantin Mierla [Thu, 20 Jul 2017 14:25:42 +0000 (16:25 +0200)]
topos: handle return code for parse_headers()

4 years agocore: adjustments for cleaner compiler analyzing reports
Daniel-Constantin Mierla [Thu, 20 Jul 2017 11:12:06 +0000 (13:12 +0200)]
core: adjustments for cleaner compiler analyzing reports

4 years agouid_avp_db: better error handling
Daniel-Constantin Mierla [Thu, 20 Jul 2017 07:31:00 +0000 (09:31 +0200)]
uid_avp_db: better error handling

4 years agouid_domain: avoid double free in case of error
Daniel-Constantin Mierla [Thu, 20 Jul 2017 07:30:16 +0000 (09:30 +0200)]
uid_domain: avoid double free in case of error

4 years agoxmpp: close fd in case of write error
Daniel-Constantin Mierla [Thu, 20 Jul 2017 07:29:47 +0000 (09:29 +0200)]
xmpp: close fd in case of write error

4 years agoxprint: safety checks for error cases
Daniel-Constantin Mierla [Thu, 20 Jul 2017 07:28:58 +0000 (09:28 +0200)]
xprint: safety checks for error cases

4 years agoutils: handle error case for xcap auth status to free allocated structs
Daniel-Constantin Mierla [Thu, 20 Jul 2017 07:28:32 +0000 (09:28 +0200)]
utils: handle error case for xcap auth status to free allocated structs

4 years agotls: free temporary buffer when fixing shm path name for config
Daniel-Constantin Mierla [Thu, 20 Jul 2017 07:25:20 +0000 (09:25 +0200)]
tls: free temporary buffer when fixing shm path name for config

4 years agotm: proper location of last rr for strict routing on local requests
Daniel-Constantin Mierla [Thu, 20 Jul 2017 07:24:22 +0000 (09:24 +0200)]
tm: proper location of last rr for strict routing on local requests

4 years agocore: msg translator - switch condition to buf pointer instead of lenght
Daniel-Constantin Mierla [Thu, 20 Jul 2017 07:23:14 +0000 (09:23 +0200)]
core: msg translator - switch condition to buf pointer instead of lenght

- better correlation with returned value from functions

4 years agomodules: readme files regenerated - textops ... [skip ci]
Kamailio Dev [Wed, 19 Jul 2017 14:31:29 +0000 (16:31 +0200)]
modules: readme files regenerated - textops ... [skip ci]

4 years agomodules/textops: msg_apply_changes() comes from textopsx module
Mikko Lehto [Wed, 19 Jul 2017 14:28:16 +0000 (17:28 +0300)]
modules/textops: msg_apply_changes() comes from textopsx module

4 years agocore: dns case - init local proto to UDP if not provided for srv resolve
Daniel-Constantin Mierla [Wed, 19 Jul 2017 12:38:22 +0000 (14:38 +0200)]
core: dns case - init local proto to UDP if not provided for srv resolve

4 years agotm: copy branch flags in the new branch created by the dns failover
Daniel-Constantin Mierla [Wed, 19 Jul 2017 09:12:32 +0000 (11:12 +0200)]
tm: copy branch flags in the new branch created by the dns failover

4 years agopath: handle return code when getting the values for cfg parameters
Daniel-Constantin Mierla [Wed, 19 Jul 2017 09:03:49 +0000 (11:03 +0200)]
path: handle return code when getting the values for cfg parameters

4 years agoapp_sqlang: removed dead code
Daniel-Constantin Mierla [Wed, 19 Jul 2017 08:52:49 +0000 (10:52 +0200)]
app_sqlang: removed dead code

4 years agoapp_jsdt: removed dead code
Daniel-Constantin Mierla [Wed, 19 Jul 2017 08:52:29 +0000 (10:52 +0200)]
app_jsdt: removed dead code

4 years agoauth_ephemeral: use dedicated enum type for auth return codes
Daniel-Constantin Mierla [Tue, 18 Jul 2017 21:24:07 +0000 (23:24 +0200)]
auth_ephemeral: use dedicated enum type for auth return codes

- reorder safety checks not to access msg structure if null

4 years agocore: allow event_route blocks to run ONEVENT_ROUTE|REQUEST_ROUTE functions
Daniel-Constantin Mierla [Tue, 18 Jul 2017 14:44:47 +0000 (16:44 +0200)]
core: allow event_route blocks to run ONEVENT_ROUTE|REQUEST_ROUTE functions

- preserve compatibility with old behaviour that allowed REQUEST_ROUTE
  functions to be used inside event_route

4 years agopkg/kamailio/deb: version set to 5.1.0-dev5
Victor Seva [Tue, 18 Jul 2017 14:40:54 +0000 (16:40 +0200)]
pkg/kamailio/deb: version set to 5.1.0-dev5

4 years agoMakefile.defs: version set to 5.1.0-dev5
Daniel-Constantin Mierla [Tue, 18 Jul 2017 14:07:03 +0000 (16:07 +0200)]
Makefile.defs: version set to 5.1.0-dev5

4 years agoauth_db: use the dedicated return types to avoid mixing values in int vars
Daniel-Constantin Mierla [Tue, 18 Jul 2017 13:59:57 +0000 (15:59 +0200)]
auth_db: use the dedicated return types to avoid mixing values in int vars

4 years agoauth: use the dedicated types for return codes instead of generic int
Daniel-Constantin Mierla [Tue, 18 Jul 2017 13:53:50 +0000 (15:53 +0200)]
auth: use the dedicated types for return codes instead of generic int

4 years agosiputils: log messages for error cases
Daniel-Constantin Mierla [Tue, 18 Jul 2017 13:32:32 +0000 (15:32 +0200)]
siputils: log messages for error cases

4 years agocore: defined EVENT_ROUTE as (REQUEST_ROUTE|ONEVENT_ROUTE)
Daniel-Constantin Mierla [Tue, 18 Jul 2017 13:02:23 +0000 (15:02 +0200)]
core: defined EVENT_ROUTE as (REQUEST_ROUTE|ONEVENT_ROUTE)

- ONEVENT_ROUTE is (1<<9)
- should allow diferentiating between REQUEST_ROUTE and EVENT_ROUTE
  blocks execution

4 years agotm: small cleanups for sane rutime handling
Daniel-Constantin Mierla [Tue, 18 Jul 2017 12:54:23 +0000 (14:54 +0200)]
tm: small cleanups for sane rutime handling

4 years agocore: pt - check to avoid two times closing unneeded sockets
Daniel-Constantin Mierla [Tue, 18 Jul 2017 07:11:12 +0000 (09:11 +0200)]
core: pt - check to avoid two times closing unneeded sockets

4 years agocore: kemi - define the size for printing params signature in help msg
Daniel-Constantin Mierla [Tue, 18 Jul 2017 07:10:11 +0000 (09:10 +0200)]
core: kemi - define the size for printing params signature in help msg

4 years agocore: dns - safety checks for port and proto pointers
Daniel-Constantin Mierla [Tue, 18 Jul 2017 07:09:29 +0000 (09:09 +0200)]
core: dns - safety checks for port and proto pointers

4 years agocore: daemonize - proper chown for pgid file instead of pid file
Daniel-Constantin Mierla [Tue, 18 Jul 2017 07:08:14 +0000 (09:08 +0200)]
core: daemonize - proper chown for pgid file instead of pid file

4 years agocore: cfg ctx - catch condition when there are no changes to be committed
Daniel-Constantin Mierla [Tue, 18 Jul 2017 07:07:18 +0000 (09:07 +0200)]
core: cfg ctx - catch condition when there are no changes to be committed

4 years agocore: locking - rec lock init condition fixed
Daniel-Constantin Mierla [Tue, 18 Jul 2017 06:24:15 +0000 (08:24 +0200)]
core: locking - rec lock init condition fixed

4 years agocore: tcp read - set own handling for ECONNRESET
Daniel-Constantin Mierla [Mon, 17 Jul 2017 14:08:45 +0000 (16:08 +0200)]
core: tcp read - set own handling for ECONNRESET

4 years agocore: added log messages in case of errors
Daniel-Constantin Mierla [Mon, 17 Jul 2017 13:55:38 +0000 (15:55 +0200)]
core: added log messages in case of errors

- safer null string termination for description buffers

4 years agocore: msg translator - unified error handling to simplify freeing allocated memory
Daniel-Constantin Mierla [Mon, 17 Jul 2017 13:54:13 +0000 (15:54 +0200)]
core: msg translator - unified error handling to simplify freeing allocated memory

4 years agocore: handle error case also for socket fd 0
Daniel-Constantin Mierla [Mon, 17 Jul 2017 05:55:36 +0000 (07:55 +0200)]
core: handle error case also for socket fd 0

- avoid fd leak warnings by code analyzer

4 years agoapp_python: proper condition to free srcbuf in exception handling
Daniel-Constantin Mierla [Sun, 16 Jul 2017 09:40:16 +0000 (11:40 +0200)]
app_python: proper condition to free srcbuf in exception handling

4 years agoavpops: few more pkg free in case of errors in fixup functions
Daniel-Constantin Mierla [Sun, 16 Jul 2017 09:29:36 +0000 (11:29 +0200)]
avpops: few more pkg free in case of errors in fixup functions

4 years agoavpops: several pkg free in case of errors in fixup functions
Daniel-Constantin Mierla [Sun, 16 Jul 2017 08:08:06 +0000 (10:08 +0200)]
avpops: several pkg free in case of errors in fixup functions

- cleaner pkg usage summary in case of errors at start up

4 years agomodules: readme files regenerated - sdpops ... [skip ci]
Kamailio Dev [Sun, 16 Jul 2017 07:01:26 +0000 (09:01 +0200)]
modules: readme files regenerated - sdpops ... [skip ci]

4 years agosdpops: more details for sdp_with_transport() docs
Daniel-Constantin Mierla [Sun, 16 Jul 2017 06:55:30 +0000 (08:55 +0200)]
sdpops: more details for sdp_with_transport() docs

4 years agoMerge pull request #1187 from grumvalski/sockets_list_fix
Federico Cabiddu [Sat, 15 Jul 2017 12:50:30 +0000 (14:50 +0200)]
Merge pull request #1187 from grumvalski/sockets_list_fix

core: build reply of core.sockets_list as an array

4 years agocore: dns cache condition for both proto ws and wss
Daniel-Constantin Mierla [Sat, 15 Jul 2017 07:25:44 +0000 (09:25 +0200)]
core: dns cache condition for both proto ws and wss

4 years agoauth_xkeys: use the right size when initializing xkeys list
Daniel-Constantin Mierla [Sat, 15 Jul 2017 07:09:04 +0000 (09:09 +0200)]
auth_xkeys: use the right size when initializing xkeys list