sip-router
3 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()

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

3 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

3 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

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

3 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

3 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

3 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

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

3 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

3 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

3 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

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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

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

3 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

3 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

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

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

3 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

3 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

3 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

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

3 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

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

3 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

3 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

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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

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

3 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

3 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

3 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

3 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

3 years agospeeddial: add missing break when handling blob db result type
Daniel-Constantin Mierla [Sat, 15 Jul 2017 07:05:18 +0000 (09:05 +0200)]
speeddial: add missing break when handling blob db result type

3 years agocore: build reply of core.sockets_list as an array 1187/head
grumvalski [Fri, 14 Jul 2017 13:53:41 +0000 (15:53 +0200)]
core: build reply of core.sockets_list as an array

3 years agocnxcc: safety check for credit data search return value
Daniel-Constantin Mierla [Sat, 15 Jul 2017 07:01:38 +0000 (09:01 +0200)]
cnxcc: safety check for credit data search return value

3 years agodb_sqlite: free con in case of error at open time
Daniel-Constantin Mierla [Sat, 15 Jul 2017 06:56:04 +0000 (08:56 +0200)]
db_sqlite: free con in case of error at open time

3 years agoapp_python: several free of allocated vars in case of errors
Daniel-Constantin Mierla [Sat, 15 Jul 2017 06:41:09 +0000 (08:41 +0200)]
app_python: several free of allocated vars in case of errors

3 years agoapp_lua: safer alloc size for hdr operations
Daniel-Constantin Mierla [Fri, 14 Jul 2017 12:40:15 +0000 (14:40 +0200)]
app_lua: safer alloc size for hdr operations

3 years agocfg_rpc: cast void* for set-int to avoid compiler warnings in reset command
Daniel-Constantin Mierla [Fri, 14 Jul 2017 12:33:36 +0000 (14:33 +0200)]
cfg_rpc: cast void* for set-int to avoid compiler warnings in reset command

3 years agocore: cfg ctx - formatting for cfg reset
Daniel-Constantin Mierla [Fri, 14 Jul 2017 12:32:14 +0000 (14:32 +0200)]
core: cfg ctx - formatting for cfg reset

3 years agopdb: avoid unaligned pointer address
Daniel-Constantin Mierla [Fri, 14 Jul 2017 12:25:57 +0000 (14:25 +0200)]
pdb: avoid unaligned pointer address

3 years agocore: set its own id for EVENT_ROUTE
Daniel-Constantin Mierla [Fri, 14 Jul 2017 12:11:14 +0000 (14:11 +0200)]
core: set its own id for EVENT_ROUTE

- having it as alias to REQURST_ROUTE can hide execution of undexpected
  script callbacks

3 years agopua_dialoginfo: fixed condition in mod init checking avp names
Daniel-Constantin Mierla [Fri, 14 Jul 2017 06:21:40 +0000 (08:21 +0200)]
pua_dialoginfo: fixed condition in mod init checking avp names

3 years agohtable: improve some error logs
Ovidiu Sas [Thu, 13 Jul 2017 22:23:43 +0000 (18:23 -0400)]
htable: improve some error logs

3 years agorls: updated CONT_COPYDB() macro definition to use ;
Daniel-Constantin Mierla [Thu, 13 Jul 2017 15:32:14 +0000 (17:32 +0200)]
rls: updated CONT_COPYDB() macro definition to use ;

- the ; is added when using the macro
- otherwise potential unexpected error by usage in expressions

3 years agopua: updates for CONT_COPY() macro
Daniel-Constantin Mierla [Thu, 13 Jul 2017 15:29:35 +0000 (17:29 +0200)]
pua: updates for CONT_COPY() macro

3 years agopresence_xml: ensure that node name lenght is at least 9
Daniel-Constantin Mierla [Thu, 13 Jul 2017 15:19:33 +0000 (17:19 +0200)]
presence_xml: ensure that node name lenght is at least 9

- needs to accomodate 'provide-xyz' inside get_final_notify_body()

3 years agopresence_xml: safety check for lenght of node name in xml transformations
Daniel-Constantin Mierla [Thu, 13 Jul 2017 15:13:46 +0000 (17:13 +0200)]
presence_xml: safety check for lenght of node name in xml transformations

3 years agopresence: wrap error macro in do {} while(0), safety checks
Daniel-Constantin Mierla [Thu, 13 Jul 2017 14:50:05 +0000 (16:50 +0200)]
presence: wrap error macro in do {} while(0), safety checks

- free ws_list pointer when sphere is enabled
- copy macros not ended with ; in definition -- done it when using

3 years agondb_redis: do not free pointers in the array in pv name parse function
Daniel-Constantin Mierla [Thu, 13 Jul 2017 07:32:24 +0000 (09:32 +0200)]
ndb_redis: do not free pointers in the array in pv name parse function

- restore last char in cmd in case of error for redisc_exec()

3 years agolib/srdb1: db_table_version() can handle DB1_BIGINT and DB1_DOUBLE values
Daniel-Constantin Mierla [Thu, 13 Jul 2017 07:03:54 +0000 (09:03 +0200)]
lib/srdb1: db_table_version() can handle DB1_BIGINT and DB1_DOUBLE values

- in case of views or other database engine, the type for version value
  can be different that DB1_INT. If it is a number, cast it to int
- extracted from GH #1186 by Emmanuel Schmidbauer
  <emmanuel@getweave.com>

3 years agodb_postgres: safety checks for new constraint structures
Daniel-Constantin Mierla [Thu, 13 Jul 2017 06:53:39 +0000 (08:53 +0200)]
db_postgres: safety checks for new constraint structures

- bits of code formating

3 years agodb_postgres: added missing break for INT8OID results
Daniel-Constantin Mierla [Thu, 13 Jul 2017 06:49:51 +0000 (08:49 +0200)]
db_postgres: added missing break for INT8OID results

- instead of DB1_BIGINT, the result type ended to be DB1_DOUBLE