sip-router
5 years agocore: use port 5061 for checking self when uri has transport tls
Daniel-Constantin Mierla [Thu, 15 May 2014 10:48:04 +0000 (12:48 +0200)]
core: use port 5061 for checking self when uri has transport tls

- 5060 was used, failing to match myself condition

5 years agotopoh: match on all ports if none is in the uri for checking self
Daniel-Constantin Mierla [Thu, 15 May 2014 10:46:14 +0000 (12:46 +0200)]
topoh: match on all ports if none is in the uri for checking self

- forcing default 5060 can fail for multi-listen case and tls

5 years agokamcmd: proper size for memset, based on malloc
Daniel-Constantin Mierla [Wed, 14 May 2014 21:37:54 +0000 (23:37 +0200)]
kamcmd: proper size for memset, based on malloc

5 years agoparser/sdp: assign stream var only if session is not null
Daniel-Constantin Mierla [Wed, 14 May 2014 21:28:24 +0000 (23:28 +0200)]
parser/sdp: assign stream var only if session is not null

5 years agorls: free item in case of duplicate when trying to add to str list
Daniel-Constantin Mierla [Wed, 14 May 2014 21:19:05 +0000 (23:19 +0200)]
rls: free item in case of duplicate when trying to add to str list

5 years agorls: proper header define guard and check of null returned value
Daniel-Constantin Mierla [Wed, 14 May 2014 21:12:33 +0000 (23:12 +0200)]
rls: proper header define guard and check of null returned value

5 years agoipops: free dns pv structure on invalid pv name
Daniel-Constantin Mierla [Wed, 14 May 2014 21:08:06 +0000 (23:08 +0200)]
ipops: free dns pv structure on invalid pv name

5 years agodb_flatstore: free result before returning null on no more pkg
Daniel-Constantin Mierla [Wed, 14 May 2014 21:03:19 +0000 (23:03 +0200)]
db_flatstore: free result before returning null on no more pkg

- partial allocation when doing an incomplete new connection

5 years agocore: free previous allocated variable if no more pkg to build rve struct
Daniel-Constantin Mierla [Wed, 14 May 2014 20:56:37 +0000 (22:56 +0200)]
core: free previous allocated variable if no more pkg to build rve struct

- cleaner shut down if not enough memory at startup

5 years agopv: proper length for line transformation when handling last line of value
Daniel-Constantin Mierla [Wed, 14 May 2014 20:53:35 +0000 (22:53 +0200)]
pv: proper length for line transformation when handling last line of value

5 years agodispatcher: expand attrs while running rpc command dispatcher.list
Ovidiu Sas [Wed, 14 May 2014 21:00:30 +0000 (17:00 -0400)]
dispatcher: expand attrs while running rpc command dispatcher.list

5 years agodispatcher: fix weight attr comparison
Ovidiu Sas [Wed, 14 May 2014 20:07:24 +0000 (16:07 -0400)]
dispatcher: fix weight attr comparison

5 years agopresence_dialoginfo: get rid of unused variables warning
Daniel-Constantin Mierla [Wed, 14 May 2014 07:58:50 +0000 (09:58 +0200)]
presence_dialoginfo: get rid of unused variables warning

- priority and winning_priority are used in an alternative winning node
  selection which is disabled now
- reported by Jua Heinanen

5 years agodialog: if sending BYE fails at timeout, unref dialog
Daniel-Constantin Mierla [Mon, 12 May 2014 20:54:54 +0000 (22:54 +0200)]
dialog: if sending BYE fails at timeout, unref dialog

- destroy dialog structures

5 years agopkg/kamailio/deb: append pkg-config as Build-Depends
Victor Seva [Mon, 12 May 2014 21:06:09 +0000 (23:06 +0200)]
pkg/kamailio/deb: append pkg-config as Build-Depends

5 years agocnxcc: Added credit vs cost per second check *before* starting the call
Carlos Ruiz Diaz [Mon, 12 May 2014 03:08:43 +0000 (22:08 -0500)]
cnxcc: Added credit vs cost per second check *before* starting the call

5 years agowebsocket: Fix crash in websocket module
Vitaliy Aleksandrov [Thu, 8 May 2014 14:01:02 +0000 (15:01 +0100)]
websocket: Fix crash in websocket module

- Avoid race condition by maintaining a connection reference count
- Fixes FS#406

5 years agomodules/utils: http_query now stores result also in case of 4xx replies
Juha Heinanen [Thu, 8 May 2014 12:24:51 +0000 (15:24 +0300)]
modules/utils: http_query now stores result also in case of 4xx replies

- Applied patch by Mikko Lehto.

5 years agopresence_dialoginfo: interetate through all 'dialog' nodes of xml document
Daniel-Constantin Mierla [Thu, 8 May 2014 06:40:28 +0000 (08:40 +0200)]
presence_dialoginfo: interetate through all 'dialog' nodes of xml document

- PUBLISH request can carry info for many dialogs
- reported and patch by Klaus Feichtinger

5 years agocore/mem: f_malloc - simplified join in realloc
Daniel-Constantin Mierla [Sat, 3 May 2014 21:44:22 +0000 (23:44 +0200)]
core/mem: f_malloc - simplified join in realloc

- restore proper usage counters

5 years agocore/mem: f_malloc - groupped few updates of usage stats in insert free function
Daniel-Constantin Mierla [Sat, 3 May 2014 20:13:16 +0000 (22:13 +0200)]
core/mem: f_malloc - groupped few updates of usage stats in insert free function

5 years agopkg/kamailio/deb: update version to 4.2.0~dev6
Victor Seva [Sat, 3 May 2014 19:50:15 +0000 (21:50 +0200)]
pkg/kamailio/deb: update version to 4.2.0~dev6

5 years agokex: remove debug message added in previous commit
Daniel-Constantin Mierla [Sat, 3 May 2014 19:36:28 +0000 (21:36 +0200)]
kex: remove debug message added in previous commit

5 years agomem/q_malloc: free old pointer if allocation in realloc fails
Daniel-Constantin Mierla [Sat, 3 May 2014 19:06:34 +0000 (21:06 +0200)]
mem/q_malloc: free old pointer if allocation in realloc fails

5 years agomem/f_malloc: free old pointer if allocation in realloc fails
Daniel-Constantin Mierla [Sat, 3 May 2014 19:03:34 +0000 (21:03 +0200)]
mem/f_malloc: free old pointer if allocation in realloc fails

5 years agoMakefile.defs: version set to 4.2.0-dev6
Daniel-Constantin Mierla [Sat, 3 May 2014 18:56:19 +0000 (20:56 +0200)]
Makefile.defs: version set to 4.2.0-dev6

5 years agoMakefile.defs: memory manager set to f_malloc
Daniel-Constantin Mierla [Sat, 3 May 2014 18:52:53 +0000 (20:52 +0200)]
Makefile.defs: memory manager set to f_malloc

5 years agoxmlrpc: removed unused variable in rpc_array_add
Daniel-Constantin Mierla [Sat, 3 May 2014 18:52:06 +0000 (20:52 +0200)]
xmlrpc: removed unused variable in rpc_array_add

- reported by Juha Heinanen

5 years agocore/mem: f_malloc updates for pool type and refactoring of parts
Daniel-Constantin Mierla [Sat, 3 May 2014 18:10:00 +0000 (20:10 +0200)]
core/mem: f_malloc updates for pool type and refactoring of parts

- removed define on statistics, it was always on for the past several
  years - the code is cleaner
- total free fragements is kept in root memory block to avoid computing
  it at runtime by walking hash slots
- attempt to join fragments when a malloc fails to reuse existing
  fragments - should help when mem_join is 0, being very fast up to the
  moment of an out of memory, when does the attempt of joining
- pkg stats updated to use the single event callback at the end of
  malloc, free or realloc operations

5 years agocore/mem: q_malloc updates to set pool type and pkg stats refactoring
Daniel-Constantin Mierla [Sat, 3 May 2014 18:07:41 +0000 (20:07 +0200)]
core/mem: q_malloc updates to set pool type and pkg stats refactoring

- total free fragments are kept in memory root block to avoid computing
  them by walking the hash table
- use single event callback to update per process pkg stats, executed at
  the end of malloc, free or realloc opperations

5 years agokex: use the new pkg update stats event callback
Daniel-Constantin Mierla [Sat, 3 May 2014 18:05:32 +0000 (20:05 +0200)]
kex: use the new pkg update stats event callback

- print total size and total free fragments for each process
- should solve the issue when values of pkg stats were innacurate

5 years agocore/mem: ll_malloc initialization updated to be able to set pool type
Daniel-Constantin Mierla [Sat, 3 May 2014 18:05:12 +0000 (20:05 +0200)]
core/mem: ll_malloc initialization updated to be able to set pool type

5 years agocore/mem: sf_malloc initialization updated to be able to set pool type
Daniel-Constantin Mierla [Sat, 3 May 2014 18:04:34 +0000 (20:04 +0200)]
core/mem: sf_malloc initialization updated to be able to set pool type

5 years agocore: repaced the two pkg update event callbacks with one
Daniel-Constantin Mierla [Sat, 3 May 2014 18:02:47 +0000 (20:02 +0200)]
core: repaced the two pkg update event callbacks with one

- simplified usage as can be executed at the end of memory operations
  (malloc, free, realloc)

5 years agocore/mem: set shm type when initializing shared memory pool
Daniel-Constantin Mierla [Sat, 3 May 2014 18:02:06 +0000 (20:02 +0200)]
core/mem: set shm type when initializing shared memory pool

5 years agopkg/mem: set pkg type when intializing memory pool
Daniel-Constantin Mierla [Sat, 3 May 2014 18:01:23 +0000 (20:01 +0200)]
pkg/mem: set pkg type when intializing memory pool

5 years agocore/mem: define internal types for pkg and shm pools
Daniel-Constantin Mierla [Sat, 3 May 2014 17:57:19 +0000 (19:57 +0200)]
core/mem: define internal types for pkg and shm pools

- to allow easier identification when doing operations over mem block

5 years agoMakefile.defs: compile with debugging symbols when using clang
Daniel-Constantin Mierla [Sat, 3 May 2014 09:45:34 +0000 (11:45 +0200)]
Makefile.defs: compile with debugging symbols when using clang

- added -g parameter to be on pair with gcc

5 years agomem/f_malloc: link previous free fragment to speed up join
Daniel-Constantin Mierla [Sat, 3 May 2014 07:18:40 +0000 (09:18 +0200)]
mem/f_malloc: link previous free fragment to speed up join

5 years agomem/f_malloc: check returned pointer for bitmask index
Daniel-Constantin Mierla [Fri, 2 May 2014 21:58:12 +0000 (23:58 +0200)]
mem/f_malloc: check returned pointer for bitmask index

- if null, reset slot and search on bigger chunks slots

5 years agomodules/sdpops: turned two sdp_with_ice() INFO messages to DBG messages
Juha Heinanen [Sat, 3 May 2014 14:30:26 +0000 (17:30 +0300)]
modules/sdpops: turned two sdp_with_ice() INFO messages to DBG messages

5 years agodialog: copy dlg var value locally on get operation
Daniel-Constantin Mierla [Fri, 2 May 2014 19:50:14 +0000 (21:50 +0200)]
dialog: copy dlg var value locally on get operation

- reference to shared memory exposes risk on accessing an invalid
  pointer if anothe process updates it
- reported by Dragos Oancea

5 years agomodules/ims_registrar_scscf: fix to remove subscriptions when UE explicitly deregisters
Richard Good [Fri, 2 May 2014 10:15:53 +0000 (12:15 +0200)]
modules/ims_registrar_scscf: fix to remove subscriptions when UE explicitly deregisters

5 years agomodules/ims_registrar_scscf: Fix to not send notifies to UEs that explicitly deregister
Richard Good [Fri, 2 May 2014 10:15:05 +0000 (12:15 +0200)]
modules/ims_registrar_scscf: Fix to not send notifies to UEs that explicitly deregister

5 years agomodules/ims_registrar_scscf: added mod_param ue_unsubscribe_on_dereg
Richard Good [Fri, 2 May 2014 10:14:00 +0000 (12:14 +0200)]
modules/ims_registrar_scscf: added mod_param ue_unsubscribe_on_dereg
New mod param ue_unsubscribe_on_dereg: for UEs that do no send UNSUBSCRIBE for reg event when deregistering

5 years agomodules/ims_qos: switch flow descriptors. point of reference from NW persepcitve...
Jason Penton [Thu, 1 May 2014 07:09:49 +0000 (09:09 +0200)]
modules/ims_qos: switch flow descriptors. point of reference from NW persepcitve and not UE

5 years agocore: compute the len for dns srv name
Daniel-Constantin Mierla [Wed, 30 Apr 2014 19:46:55 +0000 (21:46 +0200)]
core: compute the len for dns srv name

- fixes dns srv for cache, reported by Rob Eijgenraam, FS#426

5 years agomodules/ims_qos: port in flow control media sub component is clipped becuase of lack...
Jason Penton [Wed, 30 Apr 2014 08:43:58 +0000 (10:43 +0200)]
modules/ims_qos: port in flow control media sub component is clipped becuase of lack of space in buffer for nul terminator

5 years agopipelimit: if db url or table name are empty, skip loading pipes from db
Daniel-Constantin Mierla [Tue, 29 Apr 2014 21:02:08 +0000 (23:02 +0200)]
pipelimit: if db url or table name are empty, skip loading pipes from db

5 years agopipelimit: docs updated with hash_size parameter and pl_check() changes
Daniel-Constantin Mierla [Tue, 29 Apr 2014 20:52:38 +0000 (22:52 +0200)]
pipelimit: docs updated with hash_size parameter and pl_check() changes

5 years agopipelimit: added hash_size parameter
Daniel-Constantin Mierla [Tue, 29 Apr 2014 20:43:27 +0000 (22:43 +0200)]
pipelimit: added hash_size parameter

- can be used to set the number of slots for the internal hash table,
  which is computed as 2^hash_size (aka 1<<hash_size)
- default is 6 (2^6 = 64 slots)

5 years agopipelimit: added pl_check(pipeid, alg, limit)
Daniel-Constantin Mierla [Tue, 29 Apr 2014 20:35:46 +0000 (22:35 +0200)]
pipelimit: added pl_check(pipeid, alg, limit)

- when alg and limit parameters are given, pl_check() creates the pipe
  if it doesn't exists
- if exists, then no change is done to existing pipe (alg and limit are
  not changed)

5 years agopipelimit: moved log messages out of lock
Daniel-Constantin Mierla [Tue, 29 Apr 2014 19:59:53 +0000 (21:59 +0200)]
pipelimit: moved log messages out of lock

- free allocated cell if the algorithm is invalid

5 years agortmier: reset avps and xavp lists after route blocks execution
Daniel-Constantin Mierla [Tue, 29 Apr 2014 18:02:19 +0000 (20:02 +0200)]
rtmier: reset avps and xavp lists after route blocks execution

- avoid leaks if someone is using avp/xavp with rtimer - there is a fake
  message used there, thus not the normal sip message routing that
  resets avps/xavps

5 years agotextopsx: msg_apply_changes() returns error if record route was added
Daniel-Constantin Mierla [Mon, 28 Apr 2014 22:12:16 +0000 (00:12 +0200)]
textopsx: msg_apply_changes() returns error if record route was added

5 years agocore: new internal msg flag added - FL_RR_ADDED
Daniel-Constantin Mierla [Mon, 28 Apr 2014 22:05:16 +0000 (00:05 +0200)]
core: new internal msg flag added - FL_RR_ADDED

- marks a sip request when record route is added

5 years agorr: use internal msg flags to mark a request with record route added
Daniel-Constantin Mierla [Mon, 28 Apr 2014 22:01:53 +0000 (00:01 +0200)]
rr: use internal msg flags to mark a request with record route added

5 years agoparser: add internal flag FL_BODY_MULTIPART
Victor Seva [Fri, 21 Mar 2014 20:52:03 +0000 (21:52 +0100)]
parser: add internal flag FL_BODY_MULTIPART

This will be set if the body has been converted to multipart/mixed
or a new part has been appended to it. This will trigger the core
to check and fix the boundaries of the body.

5 years agoacc: no request is needed for setting end time on dialog termination
Daniel-Constantin Mierla [Mon, 28 Apr 2014 11:51:56 +0000 (13:51 +0200)]
acc: no request is needed for setting end time on dialog termination

- callback function cdr_on_end() doesn't use it at all
- reported by Eduardo Lejarreta, FS#256

5 years agomodules/sdpops: added sdp_with_ice() function for checking if sdp
Juha Heinanen [Mon, 28 Apr 2014 09:15:54 +0000 (12:15 +0300)]
modules/sdpops: added sdp_with_ice() function for checking if sdp
  contains ICE candidate attribute(s)

5 years agomodules/pv: use just a comma as header delimiter
Juha Heinanen [Mon, 28 Apr 2014 09:08:42 +0000 (12:08 +0300)]
modules/pv: use just a comma as header delimiter

5 years agopipelimit: run timer at 1000ms
Daniel-Constantin Mierla [Mon, 28 Apr 2014 07:51:42 +0000 (09:51 +0200)]
pipelimit: run timer at 1000ms

- proper execution on timer_interval
- reported by Julia <juliabo@gmail.com>

5 years agocnxcc: fixed deadlock when call gets terminated under certain conditions
Carlos Ruiz Diaz [Mon, 28 Apr 2014 02:22:49 +0000 (21:22 -0500)]
cnxcc: fixed deadlock when call gets terminated under certain conditions

- fixed some indentation problems introduced by Eclipse IDE

5 years agodrouting: removed old contraint on route index
Daniel-Constantin Mierla [Thu, 24 Apr 2014 16:02:34 +0000 (18:02 +0200)]
drouting: removed old contraint on route index

5 years agoUpdated example configurations for IMS:
Carsten Bock [Thu, 24 Apr 2014 10:04:41 +0000 (12:04 +0200)]
Updated example configurations for IMS:
- use NAPTR query (comment from Franz Edler & Andrea Meroni on sr-users)
- Rx (P-CSCF) is now asynchronous

5 years agodispatcher: refactored rpc command dispatcher.list to give proper xmlrpc output
Daniel-Constantin Mierla [Wed, 23 Apr 2014 21:09:20 +0000 (23:09 +0200)]
dispatcher: refactored rpc command dispatcher.list to give proper xmlrpc output

- sets and destinations within sets are printed as an array of
  structures

5 years agoxhttp_rpc: added handling for specifier '['
Daniel-Constantin Mierla [Wed, 23 Apr 2014 21:07:21 +0000 (23:07 +0200)]
xhttp_rpc: added handling for specifier '['

- add array into rpc result
- new rpc api member aliased to rpc_struct_add (needs update for proper
  array value insertion)

5 years agoxmlrpc: implemented specifier '[' for array
Daniel-Constantin Mierla [Wed, 23 Apr 2014 21:04:53 +0000 (23:04 +0200)]
xmlrpc: implemented specifier '[' for array

- it is only for add operations (no scan)
- implemented new rpc member array_add

5 years agoctl: init binrpc callbacks in mod init and implement '[' specifier
Daniel-Constantin Mierla [Wed, 23 Apr 2014 21:03:10 +0000 (23:03 +0200)]
ctl: init binrpc callbacks in mod init and implement '[' specifier

- '[' allows adding an array
- implemented rpc api member array_add

5 years agoctl: fifo server implementation was lacking adding struct values
Daniel-Constantin Mierla [Wed, 23 Apr 2014 21:01:07 +0000 (23:01 +0200)]
ctl: fifo server implementation was lacking adding struct values

- specifier '{' was not handled for adding values
- implemented adding array with '[' specifier
- array_add aliased to rpc_struct_add for the moment

5 years agocore: new rpc api to add values in an array
Daniel-Constantin Mierla [Wed, 23 Apr 2014 20:59:22 +0000 (22:59 +0200)]
core: new rpc api to add values in an array

- memeber named array_add

5 years agotm: reset local lock reply status after functions that do unlock
Daniel-Constantin Mierla [Wed, 23 Apr 2014 20:12:48 +0000 (22:12 +0200)]
tm: reset local lock reply status after functions that do unlock

5 years agomodules/rtpengine: documented 'force_relay' ICE flag value
Juha Heinanen [Wed, 23 Apr 2014 13:45:49 +0000 (16:45 +0300)]
modules/rtpengine: documented 'force_relay' ICE flag value

5 years agortpengine: support ICE=force_relay flag
Juha Heinanen [Wed, 23 Apr 2014 13:33:13 +0000 (09:33 -0400)]
rtpengine: support ICE=force_relay flag

author: Juha Heinanen <jh@tutpro.com>

5 years agohtable: set RET_ARRAY flag for rpc commands returning more than one value
Elena-Ramona Modroiu [Wed, 23 Apr 2014 07:53:41 +0000 (09:53 +0200)]
htable: set RET_ARRAY flag for rpc commands returning more than one value

- fix failure in xmlrpc parsing

5 years agosercmd: refactored reading the rest from socket on reply too long
Daniel-Constantin Mierla [Tue, 22 Apr 2014 18:51:31 +0000 (20:51 +0200)]
sercmd: refactored reading the rest from socket on reply too long

- patch by by Savolainen Dmitri, FS#422

5 years agomtree: shift values for reload count and time from temporary structure
Daniel-Constantin Mierla [Tue, 22 Apr 2014 15:19:43 +0000 (17:19 +0200)]
mtree: shift values for reload count and time from temporary structure

5 years agomtree: store reload count and timestamp for trees
Daniel-Constantin Mierla [Tue, 22 Apr 2014 15:11:52 +0000 (17:11 +0200)]
mtree: store reload count and timestamp for trees

- print these details via mi/rpc summary command
- count is not stored when reload many tables from one table (cannot
  easily get reference to the previous loaded tree structure)

5 years agomtree: return 404 if mtree is not found for rpc mtree.summary
Daniel-Constantin Mierla [Tue, 22 Apr 2014 14:58:58 +0000 (16:58 +0200)]
mtree: return 404 if mtree is not found for rpc mtree.summary

5 years agoxmlrpc: don't generate internal xmlrpc reply for optional parameter read
Daniel-Constantin Mierla [Tue, 22 Apr 2014 14:41:14 +0000 (16:41 +0200)]
xmlrpc: don't generate internal xmlrpc reply for optional parameter read

5 years agoxmlrpc: fixed optional parameter read handling
Daniel-Constantin Mierla [Tue, 22 Apr 2014 14:29:51 +0000 (16:29 +0200)]
xmlrpc: fixed optional parameter read handling

5 years agomtree: docs updated for mtree.summary
Daniel-Constantin Mierla [Tue, 22 Apr 2014 14:07:28 +0000 (16:07 +0200)]
mtree: docs updated for mtree.summary

5 years agomtree: rpc mtree.summary can take as parameter the name of the tree
Daniel-Constantin Mierla [Tue, 22 Apr 2014 14:06:32 +0000 (16:06 +0200)]
mtree: rpc mtree.summary can take as parameter the name of the tree

5 years agomtree: rpc mtree.summary returns an array to comply with xmlrpc format
Daniel-Constantin Mierla [Tue, 22 Apr 2014 13:56:30 +0000 (15:56 +0200)]
mtree: rpc mtree.summary returns an array to comply with xmlrpc format

5 years agoxmlrpc: keep pkg for sip message related ops
Daniel-Constantin Mierla [Tue, 22 Apr 2014 11:01:41 +0000 (13:01 +0200)]
xmlrpc: keep pkg for sip message related ops

5 years agoxmlrpc: added guardian define for http.h and fixed usability by defaulting to system...
Daniel-Constantin Mierla [Tue, 22 Apr 2014 10:35:40 +0000 (12:35 +0200)]
xmlrpc: added guardian define for http.h and fixed usability by defaulting to system malloc

- with pkg the module is barely usable due to large overhead of xml tags

5 years agosctp: enclose pre-init static function in between ifdef USE_SCTP
Daniel-Constantin Mierla [Tue, 22 Apr 2014 08:19:02 +0000 (10:19 +0200)]
sctp: enclose pre-init static function in between ifdef USE_SCTP

- it is not used otherwise and some compilers can throw warnings
- reported by Juha Heinanen

5 years agoavpops: switched from initialize struct with {0} to memset
Daniel-Constantin Mierla [Tue, 22 Apr 2014 08:12:21 +0000 (10:12 +0200)]
avpops: switched from initialize struct with {0} to memset

- apparently gcc doesn't like it although it should be the standard
- clang is ok with it
- reported by Juha Heinanen

5 years agopkg/kamailio/deb: update changelog to 4.2.0~dev5
Victor Seva [Mon, 21 Apr 2014 20:53:15 +0000 (22:53 +0200)]
pkg/kamailio/deb: update changelog to 4.2.0~dev5

5 years agoMakefile.defs: version set to 4.2.0-dev5
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:59:38 +0000 (21:59 +0200)]
Makefile.defs: version set to 4.2.0-dev5

5 years agoexec: free local variable if there is no more memory in next attempt
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:53:27 +0000 (21:53 +0200)]
exec: free local variable if there is no more memory in next attempt

5 years agohtable: init allocated memory after checking parameter
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:52:16 +0000 (21:52 +0200)]
htable: init allocated memory after checking parameter

- avoid useless operation and extra check for leak

5 years agomi_rpc: don't access fields in structure after free in mi_rpc_async_close()
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:50:17 +0000 (21:50 +0200)]
mi_rpc: don't access fields in structure after free in mi_rpc_async_close()

5 years agonathelper: free local variable if getting anchor for contact header fails
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:49:27 +0000 (21:49 +0200)]
nathelper: free local variable if getting anchor for contact header fails

5 years agorr: free forgotten allocated local variable trans in case of error
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:47:06 +0000 (21:47 +0200)]
rr: free forgotten allocated local variable trans in case of error

5 years agosipcapture: free proper db_url field and destroy capture mode data list
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:45:46 +0000 (21:45 +0200)]
sipcapture: free proper db_url field and destroy capture mode data list

5 years agopv: removed mistaken pkg_malloc() left for $cnt()
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:44:42 +0000 (21:44 +0200)]
pv: removed mistaken pkg_malloc() left for $cnt()

5 years agotextops: cleanup on error parsing methods at startup
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:43:59 +0000 (21:43 +0200)]
textops: cleanup on error parsing methods at startup

5 years agotls: free the file path clone when all went ok
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:43:05 +0000 (21:43 +0200)]
tls: free the file path clone when all went ok

5 years agotm: clean contacts in case of failure in t_load_contacts()
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:41:59 +0000 (21:41 +0200)]
tm: clean contacts in case of failure in t_load_contacts()