sip-router
6 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.

6 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

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

6 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

6 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>

6 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

6 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

6 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

6 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

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

6 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

6 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

6 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

6 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

6 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

6 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

6 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>

6 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

6 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

6 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

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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

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

6 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

6 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

6 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

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

6 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

6 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

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

6 years agoxhttp: wrong variable was used for checking memory allocation
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:41:00 +0000 (21:41 +0200)]
xhttp: wrong variable was used for checking memory allocation

6 years agoxlog: clean exit at startup in case on error looking up facility
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:40:15 +0000 (21:40 +0200)]
xlog: clean exit at startup in case on error looking up facility

6 years agocore: proper destroy of tcp connection at shutdown
Daniel-Constantin Mierla [Mon, 21 Apr 2014 19:39:07 +0000 (21:39 +0200)]
core: proper destroy of tcp connection at shutdown

- don't access connection fields after freeing structure

6 years agomodules/sdpops: added sdp_transport(pv) function
Juha Heinanen [Mon, 21 Apr 2014 16:24:30 +0000 (19:24 +0300)]
modules/sdpops: added sdp_transport(pv) function

6 years agocore: safety check accessing variables in dbg message during fixup operation
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:57:09 +0000 (17:57 +0200)]
core: safety check accessing variables in dbg message during fixup operation

6 years agocore: link regex before replacement field allocation can fail
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:56:01 +0000 (17:56 +0200)]
core: link regex before replacement field allocation can fail

- regex will be freed properly if there was an error for replacement

6 years agocore: check if proto is not null before setting it
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:54:26 +0000 (17:54 +0200)]
core: check if proto is not null before setting it

- coherent checking across no_naptr_srv_sip_resolvehost()

6 years agocore: safety check for freeing either pkg or shm values for var, when applicable
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:52:53 +0000 (17:52 +0200)]
core: safety check for freeing either pkg or shm values for var, when applicable

- just an improvement to avoid doing both operations by mistake

6 years agocore: safety checks for pointer in dbg message printed inside dns cache
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:52:07 +0000 (17:52 +0200)]
core: safety checks for pointer in dbg message printed inside dns cache

6 years agocore: free allocated memory in case of failing to get more for modparams
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:50:53 +0000 (17:50 +0200)]
core: free allocated memory in case of failing to get more for modparams

- keep shutdown at startup error clean

6 years agocore: safety check when declaring a cfg structure with empty content
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:50:09 +0000 (17:50 +0200)]
core: safety check when declaring a cfg structure with empty content

6 years agocore: free line_buf in case of error building via
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:48:16 +0000 (17:48 +0200)]
core: free line_buf in case of error building via

- free buf in a very unlikely error converting src_ip to str in static
  buffer
- coherent checking of msg pointer in the function

6 years agosrutils/tmrec: reset pointer after free to avoid double deallocation
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:46:36 +0000 (17:46 +0200)]
srutils/tmrec: reset pointer after free to avoid double deallocation

6 years agodb_text: fixed access after free and proper size for allocated memory
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:45:52 +0000 (17:45 +0200)]
db_text: fixed access after free and proper size for allocated memory

6 years agocall_control: replaced dynamic str* a local variable
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:44:34 +0000 (17:44 +0200)]
call_control: replaced dynamic str* a local variable

- it was freed afterwards and could leak in case of error hanling

6 years agoavpops: initialize local variable to avoid warning on db ops function
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:43:47 +0000 (17:43 +0200)]
avpops: initialize local variable to avoid warning on db ops function

6 years agoacc: avoid memleak at startup when failing to initialize a custome accounting engine
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:43:00 +0000 (17:43 +0200)]
acc: avoid memleak at startup when failing to initialize a custome accounting  engine

6 years agotls: avoid leaking duplicated file name on re-iteration
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:42:04 +0000 (17:42 +0200)]
tls: avoid leaking duplicated file name on re-iteration

- reset file name pointer to avoid double free in case of error handling

6 years agomem: remove trailing ; to allow using as single instruction in conditinal blocks
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:40:27 +0000 (17:40 +0200)]
mem: remove trailing ; to allow using as single instruction in conditinal blocks

- this is for system malloc with extra debug for private memory

6 years agobenchmark: avoid memory leaks when dealing with invalid mi commands
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:39:50 +0000 (17:39 +0200)]
benchmark: avoid memory leaks when dealing with invalid mi commands

6 years agoauth_diameter: avoid double free in case of error and don't access freed pointer
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:38:19 +0000 (17:38 +0200)]
auth_diameter: avoid double free in case of error and don't access freed pointer

6 years agodb_mysql: reset prev_token to avoid double free in case of url parse error
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:36:01 +0000 (17:36 +0200)]
db_mysql: reset prev_token to avoid double free in case of url parse error

- when db api v2 is used (ser modules)

6 years agodb_mysql: remove line accessing freed result
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:35:39 +0000 (17:35 +0200)]
db_mysql: remove line accessing freed result

6 years agodebugger: check for define of PKG_MEMORY to execute pkg checks
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:34:24 +0000 (17:34 +0200)]
debugger: check for define of PKG_MEMORY to execute pkg checks

- allow compilation with system malloc for private memory

6 years agortpengine: chef for SHM_MEM define for kamailio embedded mode
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:33:33 +0000 (17:33 +0200)]
rtpengine: chef for SHM_MEM define for kamailio embedded mode

- allow compilation with system malloc for private memory

6 years agotm: release re for t_check_status(pv)
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:30:40 +0000 (17:30 +0200)]
tm: release re for t_check_status(pv)

- the canse when parameter is a variable and it contains a bad regex

6 years agotm: fixed typo in previous commit related to name of struct contact variable
Daniel-Constantin Mierla [Mon, 21 Apr 2014 15:29:15 +0000 (17:29 +0200)]
tm: fixed typo in previous commit related to name of struct contact variable

6 years agomem: DBG_SYS_MALLOC can be set to get verbose mem ops with system allocator
Daniel-Constantin Mierla [Mon, 21 Apr 2014 12:08:10 +0000 (14:08 +0200)]
mem: DBG_SYS_MALLOC can be set to get verbose mem ops with system allocator

- PKG_MEMORY has to be undefined in Makefile.defs

6 years agomodules/tmx: fixed typo in $T_branch README listing
Juha Heinanen [Mon, 21 Apr 2014 15:35:30 +0000 (18:35 +0300)]
modules/tmx: fixed typo in $T_branch README listing

6 years agomodules/tmx: replaced $T_reply_flags with $T_branch(flags)
Juha Heinanen [Mon, 21 Apr 2014 15:31:30 +0000 (18:31 +0300)]
modules/tmx: replaced $T_reply_flags with $T_branch(flags)

6 years agomodules/tmx: removed unused function
Juha Heinanen [Mon, 21 Apr 2014 14:34:33 +0000 (17:34 +0300)]
modules/tmx: removed unused function

6 years agotm: free struct contacts in case of error retrieving r-uri in t_load_contacts()
Daniel-Constantin Mierla [Mon, 21 Apr 2014 09:12:23 +0000 (11:12 +0200)]
tm: free struct contacts in case of error retrieving r-uri in t_load_contacts()

6 years agocore: fix some #includes to be posix compliant
Timo Teräs [Mon, 21 Apr 2014 07:57:11 +0000 (10:57 +0300)]
core: fix some #includes to be posix compliant

sys/poll.h and sys/fcntl.h are GNUisms and might not exist on
strictly posix compliant systems. This fixes to use the posix
specified standard locations of these headers.

E.g musl c-library will give warnings on using these non-standard
glibc 'internal' headers.

6 years agomodules/tmx: added $T_reply_flags pv and fixed bug in t_reuse_branch()
Juha Heinanen [Sun, 20 Apr 2014 12:17:22 +0000 (15:17 +0300)]
modules/tmx: added $T_reply_flags pv and fixed bug in t_reuse_branch()

6 years agomodules/tmx: added new function t_reuse_branch()
Juha Heinanen [Sun, 20 Apr 2014 06:53:33 +0000 (09:53 +0300)]
modules/tmx: added new function t_reuse_branch()

6 years agomodules/sipt: refactored pseudovars to be of the form $sipt(header[.field])
Torrey Searle [Sat, 19 Apr 2014 09:16:24 +0000 (11:16 +0200)]
modules/sipt:  refactored pseudovars to be of the form $sipt(header[.field])

6 years agojson|jsonrpc-c: fix detection of json-c lib
Victor Seva [Sat, 19 Apr 2014 09:06:48 +0000 (11:06 +0200)]
json|jsonrpc-c: fix detection of json-c lib

6 years agousrloc: fixed c&p error for variable name in ul_rpc_add()
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:35:57 +0000 (00:35 +0200)]
usrloc: fixed c&p error for variable name in ul_rpc_add()

6 years agotmx: check if t is null or undefined for returning branch index
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:35:00 +0000 (00:35 +0200)]
tmx: check if t is null or undefined for returning branch index

6 years agotls: test if conection is still active for peer verification
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:34:23 +0000 (00:34 +0200)]
tls: test if conection is still active for peer verification

6 years agotextops: use local variable to copute the offset in buffer for hdr ops helper function
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:32:17 +0000 (00:32 +0200)]
textops: use local variable to copute the offset in buffer for hdr ops helper function

- when a prefix was given (e.g., append_uri_hf()), it could have led to
  usage of invalid value

6 years agorr: coherent check for optional user part of advertised rr
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:31:23 +0000 (00:31 +0200)]
rr: coherent check for optional user part of advertised rr

6 years agoregistrar: test returned value for socket when socket flag is set and xavp is used...
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:30:02 +0000 (00:30 +0200)]
registrar: test returned value for socket when socket flag is set and xavp is used to hold it

6 years agopv: return error if shm is not initialized when $shv() is used
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:28:56 +0000 (00:28 +0200)]
pv: return error if shm is not initialized when $shv() is used

6 years agomsilo: check to be sure len is positive before trying to copy string
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:27:54 +0000 (00:27 +0200)]
msilo: check to be sure len is positive before trying to copy string

6 years agomqueue: use static var to return pointer to dynamic queue name
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:26:53 +0000 (00:26 +0200)]
mqueue: use static var to return pointer to dynamic queue name

6 years agodialplan: fixed typo in define for guarding .h file
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:25:21 +0000 (00:25 +0200)]
dialplan: fixed typo in define for guarding .h file

- init local variable to avoid warning

6 years agodialog: detect the param value type for setting by routing block
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:24:16 +0000 (00:24 +0200)]
dialog: detect the param value type for setting by routing block

6 years agoctl: free allocated pointer in case of error
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:22:52 +0000 (00:22 +0200)]
ctl: free allocated pointer in case of error

6 years agoparser/contact: cleaned log messages and safety check for invalid iterator call
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:21:50 +0000 (00:21 +0200)]
parser/contact: cleaned log messages and safety check for invalid iterator call

6 years agocore: safety check for finding select final node
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:21:09 +0000 (00:21 +0200)]
core: safety check for finding select final node

6 years agocore: print rdata pointer and wrap null condition around it in dbg message
Daniel-Constantin Mierla [Fri, 18 Apr 2014 22:20:19 +0000 (00:20 +0200)]
core: print rdata pointer and wrap null condition around it in dbg message

6 years agouac: safe initialization of vars and debug message for uac_replace_to()
Daniel-Constantin Mierla [Fri, 18 Apr 2014 17:01:22 +0000 (19:01 +0200)]
uac: safe initialization of vars and debug message for uac_replace_to()

6 years agotextops: init s field of uri str structure for proper evaluation
Daniel-Constantin Mierla [Fri, 18 Apr 2014 16:51:33 +0000 (18:51 +0200)]
textops: init s field of uri str structure for proper evaluation

- otherwise can get uninitialized to last if block of
  get_uri_and_skip_until_params()

6 years agotextopsx: init local variable to avoid testing invalid value
Daniel-Constantin Mierla [Fri, 18 Apr 2014 16:38:53 +0000 (18:38 +0200)]
textopsx: init local variable to avoid testing invalid value

6 years agocore: added some safety checks for cfg framework pointers
Daniel-Constantin Mierla [Fri, 18 Apr 2014 16:11:38 +0000 (18:11 +0200)]
core: added some safety checks for cfg framework pointers

- avoid dereferencing null in corner cases

6 years agopkg/kamailio/deb: use libjson-c-dev when possible.
Victor Seva [Fri, 18 Apr 2014 20:15:31 +0000 (22:15 +0200)]
pkg/kamailio/deb: use libjson-c-dev when possible.