sip-router
4 years agoMerge pull request #337 from doublec/textops_null_dereference
Daniel-Constantin Mierla [Wed, 23 Sep 2015 12:41:07 +0000 (14:41 +0200)]
Merge pull request #337 from doublec/textops_null_dereference

textops: prevent null dereference on tr_txt_eval_re error

4 years agoMerge pull request #336 from doublec/tsilo_null_ptr_dereference
Federico Cabiddu [Wed, 23 Sep 2015 12:22:32 +0000 (14:22 +0200)]
Merge pull request #336 from doublec/tsilo_null_ptr_dereference

tsilo: Call LM_DBG with correct transaction information

4 years agoMerge pull request #335 from doublec/tsilo_pointer_comparison
Federico Cabiddu [Wed, 23 Sep 2015 12:08:10 +0000 (14:08 +0200)]
Merge pull request #335 from doublec/tsilo_pointer_comparison

tsilo: Fix pointer comparison in ts_set_tm_callbacks

4 years agomem: f_malloc - don't use references to pointers of nxt_free field
Daniel-Constantin Mierla [Wed, 23 Sep 2015 11:56:20 +0000 (13:56 +0200)]
mem: f_malloc - don't use references to pointers of nxt_free field

4 years agotsilo: Call LM_DBG with correct transaction information 336/head
Chris Double [Wed, 23 Sep 2015 09:26:39 +0000 (21:26 +1200)]
tsilo: Call LM_DBG with correct transaction information

- Use cb_ptr in ts_onreply LM_DBG call as the ptr variable
  is NULL at that call point and cb_ptr contains the
  transaction information being looked for.

4 years agotm: t_suspend() skip suspending if a final response was sent out for transaction...
Daniel-Constantin Mierla [Wed, 23 Sep 2015 11:03:15 +0000 (13:03 +0200)]
tm: t_suspend() skip suspending if a final response was sent out for transaction already

4 years agotsilo: ts_append_to() check if transation is active before adding new branches
Daniel-Constantin Mierla [Wed, 23 Sep 2015 10:59:52 +0000 (12:59 +0200)]
tsilo: ts_append_to() check if transation is active before adding new branches

4 years agotm: more debug info when freeing a transaction
Daniel-Constantin Mierla [Wed, 23 Sep 2015 10:43:41 +0000 (12:43 +0200)]
tm: more debug info when freeing a transaction

- attempt to catch a double free

4 years agomem: proper size printed in log message for init of shm
Daniel-Constantin Mierla [Wed, 23 Sep 2015 10:34:01 +0000 (12:34 +0200)]
mem: proper size printed in log message for init of shm

4 years agoMerge pull request #334 from zxcpoiu/master
Daniel-Constantin Mierla [Wed, 23 Sep 2015 09:29:21 +0000 (11:29 +0200)]
Merge pull request #334 from zxcpoiu/master

tmx: safety check for bad callid header in t_precheck_tran()

4 years agotmx: safety check for bad callid header in t_precheck_tran() 334/head
zxcpoiu [Wed, 23 Sep 2015 09:23:40 +0000 (17:23 +0800)]
tmx: safety check for bad callid header in t_precheck_tran()
- reported by GH#331

4 years agotsilo: Fix pointer comparison in ts_set_tm_callbacks 335/head
Chris Double [Wed, 23 Sep 2015 09:20:27 +0000 (21:20 +1200)]
tsilo: Fix pointer comparison in ts_set_tm_callbacks

- Fix cloned ts_transaction pointer comparison to check for
  NULL rather than less than zero. The latter doesn't make
  sense for an allocated pointer.

4 years agotextops: prevent null dereference on tr_txt_eval_re error 337/head
Chris Double [Wed, 23 Sep 2015 08:48:56 +0000 (20:48 +1200)]
textops: prevent null dereference on tr_txt_eval_re error

- Check for NULL pointer before calling subst_expr_free
  to prevent NULL pointer dereference when there is an
  unknown subtype error.

4 years agotsilo: removed check of use_domain for uri parameter in ts_store()
Daniel-Constantin Mierla [Tue, 22 Sep 2015 23:15:46 +0000 (01:15 +0200)]
tsilo: removed check of use_domain for uri parameter in ts_store()

- ts_append() is using full sip uri and will not match if ts_store()
  with use_domain=0 will store only username

4 years agotsilo: define the stats in .c file and extern in .h file
Daniel-Constantin Mierla [Tue, 22 Sep 2015 21:45:34 +0000 (23:45 +0200)]
tsilo: define the stats in .c file and extern in .h file

- the .h can be included in many .c files, resulting in multiple
  declarations of the stats

4 years agodomain: proper memset of the hash tables used by domain at init time
Daniel-Constantin Mierla [Tue, 22 Sep 2015 21:05:27 +0000 (23:05 +0200)]
domain: proper memset of the hash tables used by domain at init time

- discovered on a report by Juha Heinanen

4 years agotsilo: fixed some wrong white spacing identation
Daniel-Constantin Mierla [Tue, 22 Sep 2015 14:28:49 +0000 (16:28 +0200)]
tsilo: fixed some wrong white spacing identation

4 years agotsilo: update the readme
Daniel-Constantin Mierla [Tue, 22 Sep 2015 14:26:57 +0000 (16:26 +0200)]
tsilo: update the readme

4 years agotsilo: documented optional uri parameter for ts_append_to()
Daniel-Constantin Mierla [Tue, 22 Sep 2015 14:25:59 +0000 (16:25 +0200)]
tsilo: documented optional uri parameter for ts_append_to()

4 years agotsilo: pass uri parameter to registrar lookup_to_dset()
Daniel-Constantin Mierla [Tue, 22 Sep 2015 14:23:01 +0000 (16:23 +0200)]
tsilo: pass uri parameter to registrar lookup_to_dset()

- ts_append_to() can take uri 4th parameter

4 years agotsilo: don't force destination protocol on branches added by t_append_branches
Federico Cabiddu [Tue, 22 Sep 2015 13:53:28 +0000 (15:53 +0200)]
tsilo: don't force destination protocol on branches added by t_append_branches

4 years agocore: tcp - reset connection write flag if io_watch_chg() for pollout fails
Daniel-Constantin Mierla [Tue, 22 Sep 2015 13:22:32 +0000 (15:22 +0200)]
core: tcp - reset connection write flag if io_watch_chg() for pollout fails

- it can loop otherwise in trying to see if write can be done

4 years agodomain: renamed local db_url variable to d_db_url
Daniel-Constantin Mierla [Tue, 22 Sep 2015 10:50:09 +0000 (12:50 +0200)]
domain: renamed local db_url variable to d_db_url

- it is exported as extern and can conflict with other variables with
  same name

4 years agomem: f_malloc - safety init of nxt_free fields in first and last fragments
Daniel-Constantin Mierla [Mon, 21 Sep 2015 19:10:47 +0000 (21:10 +0200)]
mem: f_malloc - safety init of nxt_free fields in first and last fragments

4 years agotsilo: print return error code by lookup_to_dset() in ts_append()
Daniel-Constantin Mierla [Mon, 21 Sep 2015 16:20:24 +0000 (18:20 +0200)]
tsilo: print return error code by lookup_to_dset() in ts_append()

- helps figuring out why it failed

4 years agomem: f_malloc - proper inserting of last free large fragment
Daniel-Constantin Mierla [Mon, 21 Sep 2015 15:01:18 +0000 (17:01 +0200)]
mem: f_malloc - proper inserting of last free large fragment

- reported by Juha Heinanen

4 years agoevapi: debug messages for invalid len and execution of event route
Daniel-Constantin Mierla [Mon, 21 Sep 2015 11:04:56 +0000 (13:04 +0200)]
evapi: debug messages for invalid len and execution of event route

4 years agoapp_perl: renamed the exported structure "_app_perl_exports" to avoid naming conflicts
Federico Cabiddu [Mon, 21 Sep 2015 10:43:39 +0000 (12:43 +0200)]
app_perl: renamed the exported structure "_app_perl_exports" to avoid naming conflicts

- reported by GH#333

4 years agomodules/ims_auth: fixed correct fixup for ims_proxy_challenge and removed old unused...
jaybeepee [Mon, 21 Sep 2015 10:36:04 +0000 (12:36 +0200)]
modules/ims_auth: fixed correct fixup for ims_proxy_challenge and removed old unused fixup

4 years agoims_auth: Fix compilation error after previous commit
Carsten Bock [Mon, 21 Sep 2015 09:11:08 +0000 (11:11 +0200)]
ims_auth: Fix compilation error after previous commit

4 years agoims_auth: Improved reply, if HSS returned Error
Carsten Bock [Mon, 21 Sep 2015 08:29:47 +0000 (10:29 +0200)]
ims_auth: Improved reply, if HSS returned Error

4 years agocore: name of structure exported by a module can be prefixed with module name
Daniel-Constantin Mierla [Sun, 20 Sep 2015 22:16:27 +0000 (00:16 +0200)]
core: name of structure exported by a module can be prefixed with module name

- some modules use the flag for global exporting, which can lead to
  naming conflicts
- related to GH#333

4 years agocnxcc: build fake msg for event route before terminating the dialog
Daniel-Constantin Mierla [Sun, 20 Sep 2015 21:16:35 +0000 (23:16 +0200)]
cnxcc: build fake msg for event route before terminating the dialog

- dialog structure can be deleted in between
- reported by GH#324

4 years agomem: f_malloc - properly set empty slot in free hash
Daniel-Constantin Mierla [Sun, 20 Sep 2015 20:33:57 +0000 (22:33 +0200)]
mem: f_malloc - properly set empty slot in free hash

- reported by Juha Heninanen

4 years agotmx: safety check for bad cseq header in t_precheck_tran()
Daniel-Constantin Mierla [Sun, 20 Sep 2015 16:48:18 +0000 (18:48 +0200)]
tmx: safety check for bad cseq header in t_precheck_tran()

- reported by GH#331

4 years agosctp Documentation - change "sercmd" to "kamcmd"
Olle E. Johansson [Sat, 19 Sep 2015 11:48:42 +0000 (12:48 +0100)]
sctp Documentation - change "sercmd" to "kamcmd"

4 years agotm Change "sercmd" to "kamcmd"
Olle E. Johansson [Sat, 19 Sep 2015 11:47:36 +0000 (12:47 +0100)]
tm Change "sercmd" to "kamcmd"

4 years agomi_rpc Change "sercmd" to "kamcmd" in docs
Olle E. Johansson [Sat, 19 Sep 2015 11:46:06 +0000 (12:46 +0100)]
mi_rpc Change "sercmd" to "kamcmd" in docs

4 years agosrdb1 Check if the module is loaded, so the error message makes sense in case of...
Olle E. Johansson [Sat, 19 Sep 2015 11:43:02 +0000 (12:43 +0100)]
srdb1  Check if the module is loaded, so the error message makes sense in case of missing module

If a module use a default database and it's not loaded, currently
Kamailio complains that the module doesn't implement an API function
instead of actually telling the Kamailian that the module is not loaded.
This patch modifies that behaviour.

4 years agocurl Add information about return value of curl_connect
Olle E. Johansson [Sat, 19 Sep 2015 10:40:34 +0000 (11:40 +0100)]
curl Add information about return value of curl_connect

4 years agocurl Adding docs on the curl_connect function
Olle E. Johansson [Sat, 19 Sep 2015 10:34:39 +0000 (11:34 +0100)]
curl Adding docs on the curl_connect function

These docs needs to be extended, but it is a starting point

4 years agocurl Add documentation for RPC command curl.listcon
Olle E. Johansson [Sat, 19 Sep 2015 09:50:58 +0000 (10:50 +0100)]
curl Add documentation for RPC command curl.listcon

4 years agoAdding the curl module with status "Development"
Olle E. Johansson [Sat, 19 Sep 2015 09:29:52 +0000 (10:29 +0100)]
Adding the curl module with status "Development"

Anyone that wants to help is welcome to help. I've listed a few
todo's in the TODO.txt file. We will have to decide which of these
that we need for release and which that can be done in the future.

4 years agoasync: Fix some error messages
Olle E. Johansson [Mon, 20 Apr 2015 19:11:42 +0000 (21:11 +0200)]
async: Fix some error messages

4 years agoevapi: more debug messages when processing received data
Daniel-Constantin Mierla [Fri, 18 Sep 2015 22:16:22 +0000 (00:16 +0200)]
evapi: more debug messages when processing received data

4 years agotsilo: documented new parameter for t_store()
Daniel-Constantin Mierla [Fri, 18 Sep 2015 21:05:33 +0000 (23:05 +0200)]
tsilo: documented new parameter for t_store()

4 years agotsilot: t_store(...) accepts uri as parameter
Daniel-Constantin Mierla [Fri, 18 Sep 2015 20:59:44 +0000 (22:59 +0200)]
tsilot: t_store(...) accepts uri as parameter

- uri can be explicitely given as parameter instead of taking it from
  r-uri
- can help avoiding: backup r-uri, set it to another uri and then restore
  r-uri from backup

4 years agoutils: Don't leak memory of pkg_realloc returns NULL
Carsten Bock [Fri, 18 Sep 2015 15:25:03 +0000 (17:25 +0200)]
utils: Don't leak memory of pkg_realloc returns NULL

4 years agomem: convert TLSF memory manager to new memory API
Camille Oudot [Fri, 18 Sep 2015 13:16:13 +0000 (15:16 +0200)]
mem: convert TLSF memory manager to new memory API

- run kamailio with `-X tlsf` to manage pkg memory with TLSF
- run kamailio with `-x tlsf` to manage shm memory with TLSF

4 years agotsilo: use current r-uri for ts_store()
Daniel-Constantin Mierla [Fri, 18 Sep 2015 11:36:03 +0000 (13:36 +0200)]
tsilo: use current r-uri for ts_store()

- msg->first_line.u.request.uri is always the incoming r-uri (never
  updated inside the msg structure)
- if $ru was updated, msg->new_uri is set with the new value
- if incoming r-uri is wanted back after $ru was updated, revert_uri()
  can be used
- if only incoming r-uri is allowed, then the function doesn't work when
  dialing an alias or a short number

4 years agoMerge pull request #330 from athonet-open/fix_cdp_applications_store
ng-voice GmbH [Fri, 18 Sep 2015 10:29:16 +0000 (12:29 +0200)]
Merge pull request #330 from athonet-open/fix_cdp_applications_store

Fix crash on applications memory reservation

4 years agoims_auth: Add option to set destination host for MAR requests
Carsten Bock [Fri, 18 Sep 2015 10:24:59 +0000 (12:24 +0200)]
ims_auth: Add option to set destination host for MAR requests

4 years agocdp: Fix crash on applications memory reservation 330/head
Federico Favaro [Fri, 18 Sep 2015 08:32:52 +0000 (10:32 +0200)]
cdp: Fix crash on applications memory reservation

Fix a crash on applications shared memory allocation
when Diameter CEA contains Auth_Applications or Acct_Applications
AVPs not "embedded" into Vendor_Specific grouped AVP
Before only the memory for applications found on Vendor_Specific
AVP was reserved, but if Acct_Applications or Auth_Applications
not Vendor Specific is found, you need to reserve memory for
the number of Acct_Applications or Auth_Applications AVPs found
multiplied by the number of Supported Vendor ID AVPs found.

4 years agotsilo: regenerated README
Federico Cabiddu [Tue, 15 Sep 2015 07:41:35 +0000 (09:41 +0200)]
tsilo: regenerated README

4 years agotsilo: updated module's documentation
Federico Cabiddu [Tue, 15 Sep 2015 07:19:58 +0000 (09:19 +0200)]
tsilo: updated module's documentation

4 years agotsilo: added module's satistics
Federico Cabiddu [Tue, 15 Sep 2015 07:15:25 +0000 (09:15 +0200)]
tsilo: added module's satistics

4 years agotm: make t_append_branches return the number of added branches
Federico Cabiddu [Mon, 14 Sep 2015 12:27:52 +0000 (12:27 +0000)]
tm: make t_append_branches return the number of added branches

4 years agoevapi: implemented receive buffering per connected client
Daniel-Constantin Mierla [Fri, 18 Sep 2015 08:08:14 +0000 (10:08 +0200)]
evapi: implemented receive buffering per connected client

- incomplete data may be received on tcp, needing to wait to get more
  (only for netstring format)

4 years agohtable: more checks of updateexpire when item is updated
Daniel-Constantin Mierla [Fri, 18 Sep 2015 07:31:58 +0000 (09:31 +0200)]
htable: more checks of updateexpire when item is updated

4 years agoMerge pull request #328 from mslehto/master
Daniel-Constantin Mierla [Fri, 18 Sep 2015 07:20:19 +0000 (09:20 +0200)]
Merge pull request #328 from mslehto/master

modules/path: fixes typo in outbound RFC number

4 years agomodules/path: fixes typo in outbound RFC number 328/head
Mikko Lehto [Thu, 17 Sep 2015 22:00:47 +0000 (01:00 +0300)]
modules/path: fixes typo in outbound RFC number

4 years agoutils: readme updated for http_response_mode
Daniel-Constantin Mierla [Thu, 17 Sep 2015 17:04:49 +0000 (19:04 +0200)]
utils: readme updated for http_response_mode

4 years agoutils: documentation for http_response_mode
Daniel-Constantin Mierla [Thu, 17 Sep 2015 17:04:36 +0000 (19:04 +0200)]
utils: documentation for http_response_mode

4 years agoutils: new parameter http_response_mode to control what response part is returned
Daniel-Constantin Mierla [Thu, 17 Sep 2015 17:00:47 +0000 (19:00 +0200)]
utils: new parameter http_response_mode to control what response part is returned

- if http_response_mode=0, only the first line is returned (like so far)
- if http_response_mode=1, all the response is returned
- default 0

4 years agoutils: regenerated the readme file
Daniel-Constantin Mierla [Thu, 17 Sep 2015 16:53:55 +0000 (18:53 +0200)]
utils: regenerated the readme file

4 years agoutils: documentation for http_response_trim
Daniel-Constantin Mierla [Thu, 17 Sep 2015 16:53:41 +0000 (18:53 +0200)]
utils: documentation for http_response_trim

4 years agoutils: option to tream leading and trailing whitespaces
Daniel-Constantin Mierla [Thu, 17 Sep 2015 16:48:26 +0000 (18:48 +0200)]
utils: option to tream leading and trailing whitespaces

- new parameter http_response_trim to control it; default is 0 - don't
  trimi (backward compatible); set to 1 for enabling trimming
- based on the request of PR GH#321

4 years agoMerge pull request #326 from grumvalski/maa_missing_avps
ng-voice GmbH [Thu, 17 Sep 2015 17:41:42 +0000 (19:41 +0200)]
Merge pull request #326 from grumvalski/maa_missing_avps

ims_auth: fixed crash when receiving a MAA without SIP-Number-Auth-Items

4 years agoparser: Fix parser error when Retry-After is last header
Hugh Waite [Thu, 17 Sep 2015 14:50:48 +0000 (15:50 +0100)]
parser: Fix parser error when Retry-After is last header

- Prevent off-by-one error when CRLF is followed by CRLF

4 years agoRevert "db_postgres: Fix heap use after free error in db_postgres module" (after...
Carsten Bock [Thu, 17 Sep 2015 14:28:59 +0000 (16:28 +0200)]
Revert "db_postgres: Fix heap use after free error in db_postgres module" (after some discussions)

This reverts commit 74c84c7cd52347fcd1c90e75dca239b5f758169b.

4 years agoims_registrar_pcscf: Re-Added the pcscf_unregister-function, aligned with latest...
Carsten Bock [Thu, 17 Sep 2015 12:08:28 +0000 (14:08 +0200)]
ims_registrar_pcscf: Re-Added the pcscf_unregister-function, aligned with latest changes

4 years agotm: warn in case of transaction is not suspended by a continue is attempted
Daniel-Constantin Mierla [Thu, 17 Sep 2015 10:50:55 +0000 (12:50 +0200)]
tm: warn in case of transaction is not suspended by a continue is attempted

4 years agotmx: err to work if resuming suspended transaction fails
Daniel-Constantin Mierla [Thu, 17 Sep 2015 10:48:36 +0000 (12:48 +0200)]
tmx: err to work if resuming suspended transaction fails

- it can be a non-suspended transaction id or after expiration

4 years agomodules/ims_usrloc_pcscf: fixed free of service_routes from pcontact in P-CSCF
jaybeepee [Thu, 17 Sep 2015 09:28:09 +0000 (11:28 +0200)]
modules/ims_usrloc_pcscf: fixed free of service_routes from pcontact in P-CSCF

4 years agocore: cast operator (int) converts hex strings as well
Daniel-Constantin Mierla [Wed, 16 Sep 2015 21:54:02 +0000 (23:54 +0200)]
core: cast operator (int) converts hex strings as well

- in addition to dec string

4 years agotest/travis: build with MEMDBG=0 and MEMDBG=1
Victor Seva [Wed, 16 Sep 2015 16:32:34 +0000 (18:32 +0200)]
test/travis: build with MEMDBG=0 and MEMDBG=1

4 years agomodules/ims_registrar_pcscf: set received host, proto and port when searching for...
jaybeepee [Wed, 16 Sep 2015 09:31:46 +0000 (11:31 +0200)]
modules/ims_registrar_pcscf: set received host, proto and port when searching for pcontact

4 years agoauth_db: more log messages when username checks failed
Daniel-Constantin Mierla [Wed, 16 Sep 2015 09:21:08 +0000 (11:21 +0200)]
auth_db: more log messages when username checks failed

4 years agoims_usrloc_pcscf: do not updated received info should be write once info
jaybeepee [Wed, 16 Sep 2015 09:14:02 +0000 (11:14 +0200)]
ims_usrloc_pcscf: do not updated received info should be write once info
        - also fixes memory corruption after pcontact structure optimised
          to use placement

4 years agomem: f_malloc summary function for mememory degging off mode
Daniel-Constantin Mierla [Tue, 15 Sep 2015 22:52:15 +0000 (00:52 +0200)]
mem: f_malloc summary function for mememory degging off mode

4 years agomem: proper field name for shm malloc unsafe define when memory debugging is off
Daniel-Constantin Mierla [Tue, 15 Sep 2015 22:51:29 +0000 (00:51 +0200)]
mem: proper field name for shm malloc unsafe define when memory debugging is off

- reported by Juha Heinanen

4 years agoipops: fixed wrong location of double quites in example in docs
Daniel-Constantin Mierla [Tue, 15 Sep 2015 17:05:12 +0000 (19:05 +0200)]
ipops: fixed wrong location of double quites in example in docs

- reported by GH#327

4 years agomem: updated prototype for qm_sums when q_malloc is compiled with debug mode off
Daniel-Constantin Mierla [Tue, 15 Sep 2015 12:41:47 +0000 (14:41 +0200)]
mem: updated prototype for qm_sums when q_malloc is compiled with debug mode off

- reported by Juha Heinanen

4 years agohtable.dump: add the type of the value to the result
Daniel-Constantin Mierla [Tue, 15 Sep 2015 11:20:02 +0000 (13:20 +0200)]
htable.dump: add the type of the value to the result

4 years agotextopsx: include : in the value to be parsed as header name inside fixup_hname_param()
Daniel-Constantin Mierla [Tue, 15 Sep 2015 11:09:36 +0000 (13:09 +0200)]
textopsx: include : in the value to be parsed as header name inside fixup_hname_param()

- reported by Bj√∂rn Bylander

4 years agoparse: more log messages in case of errors in parse_hname2_short()
Daniel-Constantin Mierla [Tue, 15 Sep 2015 11:08:53 +0000 (13:08 +0200)]
parse: more log messages in case of errors in parse_hname2_short()

4 years agoims_auth: fixed crash when receiving a MAA without SIP-Number-Auth-Items or SIP-Auth... 326/head
Federico Cabiddu [Tue, 15 Sep 2015 08:51:44 +0000 (10:51 +0200)]
ims_auth: fixed crash when receiving a MAA without SIP-Number-Auth-Items or SIP-Auth-Data-Item

4 years agoMakefile: install-initd-centos target creates run dir
Daniel-Constantin Mierla [Mon, 14 Sep 2015 20:28:57 +0000 (22:28 +0200)]
Makefile: install-initd-centos target creates run dir

4 years agoAdd Rx-Specific-Action AVPs to work with some PCRFs
Carsten Bock [Mon, 14 Sep 2015 19:46:28 +0000 (21:46 +0200)]
Add Rx-Specific-Action AVPs to work with some PCRFs

4 years agomodules/cdp: removed references to old shm management
root [Mon, 14 Sep 2015 15:07:12 +0000 (17:07 +0200)]
modules/cdp: removed references to old shm management

4 years agotm: reset async suspended flag when continuing via failure_route
Daniel-Constantin Mierla [Mon, 14 Sep 2015 10:53:54 +0000 (12:53 +0200)]
tm: reset async suspended flag when continuing via failure_route

- suspended transaction can be resumed automatically on timeout, without
  t_continue(), ending up in failure_route

4 years agotm: test if transaction was suspended before resuming inside t_continue()
Daniel-Constantin Mierla [Mon, 14 Sep 2015 10:45:28 +0000 (12:45 +0200)]
tm: test if transaction was suspended before resuming inside t_continue()

4 years agodialog: mark slot as lock if dialog found in state deleted for spiral detection
Daniel-Constantin Mierla [Mon, 14 Sep 2015 10:05:27 +0000 (12:05 +0200)]
dialog: mark slot as lock if dialog found in state deleted for spiral detection

4 years agoMakefile.defs: version set to 4.4.0-dev4
Daniel-Constantin Mierla [Mon, 14 Sep 2015 08:19:45 +0000 (10:19 +0200)]
Makefile.defs: version set to 4.4.0-dev4

4 years agomem: reintroduced the option to use system malloc if PKG_MALLOC is not defined
Daniel-Constantin Mierla [Mon, 14 Sep 2015 08:17:36 +0000 (10:17 +0200)]
mem: reintroduced the option to use system malloc if PKG_MALLOC is not defined

4 years agoMakefile.defs: build commands updated to support many memory managers
Daniel-Constantin Mierla [Mon, 14 Sep 2015 07:37:03 +0000 (09:37 +0200)]
Makefile.defs: build commands updated to support many memory managers

- following defines can be set:
   - F_MALLOC - compile f_malloc (enabled)
   - Q_MALLOC - compile q_malloc (enabled)
   - DBG_SR_MEMORY - enable debugging mode for all memory mangers
- all memory managers must be in same debugging mode
- MEMDBG=1 turns now DBG_SR_MEMORY on
- MEMMNG is no longer used, many memory managers can be enabled at the
  same time

4 years agocore: new command line options for memory managers selections
Daniel-Constantin Mierla [Mon, 14 Sep 2015 07:33:17 +0000 (09:33 +0200)]
core: new command line options for memory managers selections

- -x name: select the memory manager for shm
- -X name: select the memory manager for pkg
- -f -x is provided but -X is not provided, then pkg uses same memory
  manager as shm
- name can be:
    - fm - fast malloc (f_malloc)
    - qm - quick malloc (q_malloc)
- default memory manager is fm
- other changes: adjustments to init pkg and shm using new memory
  management api

4 years agocore: defines printed in version string adjusted for new memory manager
Daniel-Constantin Mierla [Mon, 14 Sep 2015 07:32:38 +0000 (09:32 +0200)]
core: defines printed in version string adjusted for new memory manager

4 years agomem: prototypes of exporting memory managers implemented in core
Daniel-Constantin Mierla [Mon, 14 Sep 2015 07:32:05 +0000 (09:32 +0200)]
mem: prototypes of exporting memory managers implemented in core

4 years agocore: define to keep default shm memory pool size
Daniel-Constantin Mierla [Mon, 14 Sep 2015 07:31:09 +0000 (09:31 +0200)]
core: define to keep default shm memory pool size