10 years agomodules: several small doxygen bug fixes
Henning Westerholt [Sun, 4 Sep 2011 20:13:23 +0000 (22:13 +0200)]
modules: several small doxygen bug fixes

10 years agosctp: update the cfg before handling notifications
Andrei Pelinescu-Onciul [Fri, 2 Sep 2011 08:22:35 +0000 (10:22 +0200)]
sctp: update the cfg before handling notifications

Update the local config immediately after successfully reading
a message (before processing notifications, since some of the
notifications processing makes use of cfg values).

10 years agomodules_k/sqlops: small bug fix to sqlops_get_value
pd [Thu, 1 Sep 2011 09:26:05 +0000 (10:26 +0100)]
modules_k/sqlops: small bug fix to sqlops_get_value

10 years ago- fixed throttling (do not override values when adjust_timeout())
Tomas Mandys [Wed, 31 Aug 2011 20:02:45 +0000 (22:02 +0200)]
- fixed throttling (do not override values when adjust_timeout())

10 years agoapp_lua: fixed copy-and-paste error in loadin registrar API
Daniel-Constantin Mierla [Wed, 31 Aug 2011 21:49:14 +0000 (23:49 +0200)]
app_lua: fixed copy-and-paste error in loadin registrar API

- patch by Hugh Waite

10 years agousrloc(k): request a db connection per child
Daniel-Constantin Mierla [Wed, 31 Aug 2011 07:38:28 +0000 (09:38 +0200)]
usrloc(k): request a db connection per child

- avoid sharing the connection between processes
- reported by MÉSZÁROS Mihály

10 years agomodules_k/dialog: Show error message and return from function
Timo Reimann [Mon, 29 Aug 2011 16:09:51 +0000 (18:09 +0200)]
modules_k/dialog: Show error message and return from function
prematurely if trying to remove a non-existing dialog variable.

- Fixes a segfaulting bug.

10 years agomodules/mtree: removed unused variable.
Juha Heinanen [Sun, 28 Aug 2011 12:36:56 +0000 (15:36 +0300)]
modules/mtree: removed unused variable.

10 years agomodules_k/dialog: Remove old parameter "del" from interface
Timo Reimann [Sat, 27 Aug 2011 00:41:51 +0000 (02:41 +0200)]
modules_k/dialog: Remove old parameter "del" from interface

10 years agomodules_k/dialog: Improve error handling during dialog creation.
Timo Reimann [Fri, 26 Aug 2011 23:32:49 +0000 (01:32 +0200)]
modules_k/dialog: Improve error handling during dialog creation.

- Set current dialog only after all other setup work succeeded.
  (Eliminates call to profile_cleanup() and guarantees that dialog
  profiling does not yield to segfault if dialog creation fails
  for certain reasons.)
- During error handling, refrain from decrementing the reference
  counter for dialog linking if this is a spiraled request
  (because positive spiral detection skips the linkage code path).

10 years agomodules_k/dialog: Simplify and refactor parts of reference counter
Timo Reimann [Thu, 25 Aug 2011 13:17:48 +0000 (15:17 +0200)]
modules_k/dialog: Simplify and refactor parts of reference counter

- Remove special handling for dialogs in the "deleted" state to
  allow accessing such dialogs (e.g., from the configuration
  Besides making the code easier to understand, this also fixes a
  bug where the reference counter would be decremented after
  detecting a spiral (dlg_handlers.c) even though get_dlg() does
  not increment it for "deleted" dialogs.
- Adapt interfaces for lookup_dlg() and get_dlg() accordingly,
  i.e., remove "del" parameter and update in-code documentation.
- Replace direct increments on a dialog structure's ref variable
  by calls to ref_dlg_unsafe().
- Move {un}ref_dlg_unsafe() definitions towards the head of the
  file to make declaration available earlier.
- Improve store_dlg_in_tm():
    * Return and evaluate result code.
    * Replace second register call by passing unreference_dialog()
      as release function to the first register call.
- Document various places in the code dealing with reference

10 years agomodule: sipcapture: Changed SQL schema for partitioning table.
Alexandr Dubovikov [Fri, 26 Aug 2011 15:18:21 +0000 (17:18 +0200)]
module: sipcapture: Changed SQL schema for partitioning table.

     Bug fix: mySQL doesn't support DAYOFWEEK rushing. Changed to
     RANGE condition: TO_DAYS and UNIX_TIMESTAMP. The last one, only for mySQL => 5.1.58
     The two crontab scripts are in example directory.

10 years agocore:mem: short status dumping
Daniel-Constantin Mierla [Fri, 26 Aug 2011 07:32:51 +0000 (09:32 +0200)]
core:mem: short status dumping

- patch by Andrade Ricardo, on Aug 1, 2011

10 years agomodules_k/dialog: Provide in-code documentation for tricky part in
Timo Reimann [Thu, 25 Aug 2011 11:19:13 +0000 (13:19 +0200)]
modules_k/dialog: Provide in-code documentation for tricky part in

10 years agomodules_k/dialog: Add reference count to list of items returned
Timo Reimann [Tue, 23 Aug 2011 13:36:45 +0000 (15:36 +0200)]
modules_k/dialog: Add reference count to list of items returned
via RPC.

10 years agoMakefile: version set to pre-release
Daniel-Constantin Mierla [Tue, 23 Aug 2011 12:15:38 +0000 (14:15 +0200)]
Makefile: version set to pre-release

- development cycle for 3.2.0 ended

10 years agomodules_k/auth_db: Fix error in docs.
Timo Reimann [Tue, 23 Aug 2011 09:05:59 +0000 (11:05 +0200)]
modules_k/auth_db: Fix error in docs.

10 years agojson, jsonrpc-c: use pkg-config to locate the libs
Daniel-Constantin Mierla [Mon, 22 Aug 2011 22:27:33 +0000 (00:27 +0200)]
json, jsonrpc-c: use pkg-config to locate the libs

- if available, use pkg-config tool to locate json and event libs

10 years agoapp_lua: fixed assignments for Makefile vars
Daniel-Constantin Mierla [Mon, 22 Aug 2011 22:27:10 +0000 (00:27 +0200)]
app_lua: fixed assignments for Makefile vars

10 years agoMakefile: devel version increased
Daniel-Constantin Mierla [Mon, 22 Aug 2011 21:56:01 +0000 (23:56 +0200)]
Makefile: devel version increased

10 years agoMakefile: json modules added to excluded list
Daniel-Constantin Mierla [Mon, 22 Aug 2011 21:55:14 +0000 (23:55 +0200)]
Makefile: json modules added to excluded list

- they depend on json-c library

10 years agosipcapture: fixed compilation on mac os x
Daniel-Constantin Mierla [Mon, 22 Aug 2011 21:45:44 +0000 (23:45 +0200)]
sipcapture: fixed compilation on mac os x

- added missing include files
- wrapped label error around linux os defines since it is used only
  there and throws warning on other systems

10 years agosiptrace: wrap SCTP values within USE_SCTP
Daniel-Constantin Mierla [Mon, 22 Aug 2011 21:36:53 +0000 (23:36 +0200)]
siptrace: wrap SCTP values within USE_SCTP

- make the module compile on no SCTP support OS
- fixed some compile warnings

10 years agoMerge branch 'master' of ssh://
Matthew Williams [Mon, 22 Aug 2011 21:11:39 +0000 (16:11 -0500)]
Merge branch 'master' of ssh://

10 years agoAdded json module, providing a simple json parser.
Matthew Williams [Mon, 22 Aug 2011 21:10:29 +0000 (16:10 -0500)]
Added json module, providing a simple json parser.

10 years agoAdded jsonrpc-c module, providing a client interface to json-rpc services
Matthew Williams [Mon, 22 Aug 2011 21:09:01 +0000 (16:09 -0500)]
Added jsonrpc-c module, providing a client interface to json-rpc services
over netstrings.

10 years agotm: fix retransmission disabled case
Andrei Pelinescu-Onciul [Mon, 22 Aug 2011 18:02:02 +0000 (20:02 +0200)]
tm: fix retransmission disabled case

Commit a92001 broke the magic value (-1) used when retransmissions
were supposed to be disabled.

Reported-by: Peter Dunkley peter.dunkley crocodile-rcs com
10 years agosiptrace: added support for HEP encapuslation. Disabled DB's check in the duplicate...
Alexandr Dubovikov [Mon, 22 Aug 2011 11:28:56 +0000 (13:28 +0200)]
siptrace: added support for HEP encapuslation. Disabled DB's check in the duplicate mode.

10 years agosipcapture: sip capture module. Homer Project. The module has support for: 1) HEP...
Alexandr Dubovikov [Mon, 22 Aug 2011 11:23:05 +0000 (13:23 +0200)]
sipcapture: sip capture module. Homer Project. The module has support for: 1) HEP encapsulation 2) IPIP encapsulation 3) Mirroring port.

10 years agocore: new raw_ipip flag, indicate to cut off the extra IP header in IPIP encapsulation.
Alexandr Dubovikov [Mon, 22 Aug 2011 11:11:01 +0000 (13:11 +0200)]
core: new raw_ipip flag, indicate to cut off the extra IP header in IPIP encapsulation.

10 years agoauth_radius(s): use the update pre_auth
Andrei Pelinescu-Onciul [Mon, 22 Aug 2011 09:45:38 +0000 (11:45 +0200)]
auth_radius(s): use the update pre_auth

Handle the new pre_auth returns.

10 years agoMerge remote branch 'remotes/origin/tma0/iptrtpproxy-v2'
Andrei Pelinescu-Onciul [Mon, 22 Aug 2011 09:18:49 +0000 (11:18 +0200)]
Merge remote branch 'remotes/origin/tma0/iptrtpproxy-v2'

* remotes/origin/tma0/iptrtpproxy-v2:
  - fix of recent commit
  - added xtablesmoduledir macro
  - do not apply NAT contact fix of UAS when not usrloc forwarded
  - removed revision history
  oob script fixes
  Log missed calls fix
  Fix for iptables 1.4.8
  - added ser module for new version of iptrtpproxy-v2 - modified oob script to simplify patching with RTPPROXY stuff - rtpproxy control rewritten in script - re-INVITE won't proactively create new RTP session, it's not fully RFC3264 compliant but enable working with non-compliant clients (phones)
  - taken changes from modules_k (missing pre_auth enums handled in switch)

10 years agomodules_k/presence_xml: Adding file missed out on previous commit
pd [Sat, 20 Aug 2011 12:01:42 +0000 (13:01 +0100)]
modules_k/presence_xml: Adding file missed out on previous commit

10 years agosrdb1: fixed compilation on Mac OS X
Daniel-Constantin Mierla [Sat, 20 Aug 2011 11:37:27 +0000 (13:37 +0200)]
srdb1: fixed compilation on Mac OS X

- pvar.h included before changing OS compile flags for time functions

10 years agolib/srdb1: fix typos in db_val2pv_spec comments
Alex Hermann [Sat, 20 Aug 2011 08:30:07 +0000 (10:30 +0200)]
lib/srdb1: fix typos in db_val2pv_spec comments

10 years agomodules_k/auth_db: allow arbitrary PV's in load_credentials
Alex Hermann [Fri, 19 Aug 2011 15:53:23 +0000 (17:53 +0200)]
modules_k/auth_db: allow arbitrary PV's in load_credentials

Instead of just avp's, now every writable PV can be used.

10 years agomodules_k/sqlops: add sql_pvquery(). Query function that stores results in arbitrary...
Alex Hermann [Fri, 19 Aug 2011 11:33:32 +0000 (13:33 +0200)]
modules_k/sqlops: add sql_pvquery(). Query function that stores results in arbitrary PV's

10 years agolib/srdb1: introduce helper to convert db_val to pv_spec
Alex Hermann [Sat, 20 Aug 2011 07:48:00 +0000 (09:48 +0200)]
lib/srdb1: introduce helper to convert db_val to pv_spec

10 years agomodules_k/sqlops: fix typo in sql_parse_param()
Alex Hermann [Fri, 19 Aug 2011 11:10:12 +0000 (13:10 +0200)]
modules_k/sqlops: fix typo in sql_parse_param()

10 years agocore/pvapi: more verbose error logging in parse_pvname_list()
Alex Hermann [Fri, 19 Aug 2011 11:08:54 +0000 (13:08 +0200)]
core/pvapi: more verbose error logging in parse_pvname_list()

10 years agocore/pvapi: allow newline in parse_pvname_list()
Alex Hermann [Fri, 19 Aug 2011 11:07:47 +0000 (13:07 +0200)]
core/pvapi: allow newline in parse_pvname_list()

10 years agocore: add is_in_str macro to ut.h and remove all local definitions
Alex Hermann [Fri, 19 Aug 2011 09:40:57 +0000 (11:40 +0200)]
core: add is_in_str macro to ut.h and remove all local definitions

10 years agosdpops: fixes in some debug messages
Daniel-Constantin Mierla [Sat, 20 Aug 2011 07:23:24 +0000 (09:23 +0200)]
sdpops: fixes in some debug messages

10 years agosdpops: documented the functions for keeping only a set of codecs
Daniel-Constantin Mierla [Sat, 20 Aug 2011 06:33:38 +0000 (08:33 +0200)]
sdpops: documented the functions for keeping only a set of codecs

10 years agosdpops: make delim char a parameter for function to search codec
Daniel-Constantin Mierla [Fri, 19 Aug 2011 12:46:48 +0000 (14:46 +0200)]
sdpops: make delim char a parameter for function to search codec

10 years agosdpops: added functions to keep in SDP only a set of codecs
Daniel-Constantin Mierla [Fri, 19 Aug 2011 12:41:43 +0000 (14:41 +0200)]
sdpops: added functions to keep in SDP only a set of codecs

- sdp_keep_codecs_by_id(idlist) - keep in SDP only the codecs that are
  also in idlist, parameter being a list of codec integer IDs
- sdp_keep_codecs_by_name(list) - keep in SDP only the codecs that are
  also in list, parameter being a list of codec names

10 years agolib/srdb1/schema/mtrees.xml: fixed c&p error reported by Daniel
Juha Heinanen [Sat, 20 Aug 2011 06:48:28 +0000 (09:48 +0300)]
lib/srdb1/schema/mtrees.xml: fixed c&p error reported by Daniel

10 years agolib/srdb1/schema: added schema for mtrees table.
Juha Heinanen [Sat, 20 Aug 2011 05:21:39 +0000 (08:21 +0300)]
lib/srdb1/schema: added schema for mtrees table.

10 years agomodules/app_lua, modules_k/presence_xml: Added support for pres_check_basic() and...
pd [Fri, 19 Aug 2011 14:30:26 +0000 (15:30 +0100)]
modules/app_lua, modules_k/presence_xml: Added support for pres_check_basic() and pres_check_available() to app_lua

10 years agosrdb1: column expires in htable set to type int
Daniel-Constantin Mierla [Fri, 19 Aug 2011 10:23:05 +0000 (12:23 +0200)]
srdb1: column expires in htable set to type int

- it was string, reported by Mészáros Mihály

10 years agomodules/mtree: added new mode to mt_match()
Juha Heinanen [Thu, 18 Aug 2011 17:04:32 +0000 (20:04 +0300)]
modules/mtree: added new mode to mt_match()

- Added mode=2 to mt_match() call that instead of setting value of
  longest matching prefix to a pv, sets values of all matching prefixes to
  an avp so that value of longest matching prefix is in avp index 0.

10 years agomodules_k/sqlops: Move s.sql transformation to sqlops as sql.val and add sql.val...
Alex Hermann [Thu, 18 Aug 2011 16:17:59 +0000 (18:17 +0200)]
modules_k/sqlops: Move s.sql transformation to sqlops as sql.val and add, sql.val.str

s.sql was not really a string transformation as it handled null and integers
too. Move it to sqlops as sql.val (it was not yet in a released version) and
add 2 new transformations.


sql.val: returns a valid SQL value. $null as NULL, int as number, string as
         quoted and escaped string returns a non-null integer ($null becomes 0)
sql.val.str: returns a non-null quoted and escaped string. ($null becomes '')

10 years agomodules/app_lua, modules_k/presence: Added support for the exported function pres_aut...
pd [Thu, 18 Aug 2011 15:47:13 +0000 (16:47 +0100)]
modules/app_lua, modules_k/presence: Added support for the exported function pres_auth_status() to app_lua

10 years agomodules/app_lua, modules/sdpops: Fixed a couple of small issues with sdpops in app_lua
pd [Thu, 18 Aug 2011 15:35:51 +0000 (16:35 +0100)]
modules/app_lua, modules/sdpops: Fixed a couple of small issues with sdpops in app_lua

10 years agomodules_k/textops: Fix backwards incompatibility in re.subst
Alex Hermann [Thu, 18 Aug 2011 14:00:17 +0000 (16:00 +0200)]
modules_k/textops: Fix backwards incompatibility in re.subst

The commit to add pvar suppott to re.subst inadvertently
removed support for embedded linebreaks and tabs in the
regular expression.

10 years agomodules_k/presence_xml: Modified pres_check_activities() to return -2 when part of...
pd [Thu, 18 Aug 2011 14:12:33 +0000 (15:12 +0100)]
modules_k/presence_xml: Modified pres_check_activities() to return -2 when part of the XML tree is not present

- This is needed because some presence UAs (such as pua_usrloc) only
  fill in the basic part of the tree.  This change enables you to
  distinguish between not having a particular activity set (by a client
  that supports that) and not having any activities at all (by clients
  that only support basic presence).

10 years agomodules_k/acc: Fix typo.
Timo Reimann [Thu, 18 Aug 2011 13:04:33 +0000 (15:04 +0200)]
modules_k/acc: Fix typo.

10 years agomodules_k/xcap_server: Do not define xcaps_str_appsexml for the
Timo Reimann [Wed, 17 Aug 2011 16:08:09 +0000 (18:08 +0200)]
modules_k/xcap_server: Do not define xcaps_str_appsexml for the
moment as it seems unused and produces compiler warnings.

10 years agomodules_k/rls: Remove definitions of CONT_COPY{,_1} as they are
Timo Reimann [Wed, 17 Aug 2011 16:05:55 +0000 (18:05 +0200)]
modules_k/rls: Remove definitions of CONT_COPY{,_1} as they are
not used within the module and produce compiler warnings.

10 years agodmq: fixed missing tags in xml docs
Daniel-Constantin Mierla [Thu, 18 Aug 2011 08:46:48 +0000 (10:46 +0200)]
dmq: fixed missing tags in xml docs

- added README to GIT repository

10 years agoacc: new parameter to allow usage of insert delayed
Daniel-Constantin Mierla [Thu, 18 Aug 2011 08:32:37 +0000 (10:32 +0200)]
acc: new parameter to allow usage of insert delayed

- db_insert_mode can be set to 1 in order to use INSERT DELAYED when
  adding the acc records to database

10 years agosrdb1: fixed c&p error related to DB_CAP_INSERT_UPDATE
Daniel-Constantin Mierla [Thu, 18 Aug 2011 08:31:43 +0000 (10:31 +0200)]
srdb1: fixed c&p error related to DB_CAP_INSERT_UPDATE

10 years agomodules/textops: allow pseudovariables in re.subst parameter
Alex Hermann [Thu, 11 Aug 2011 11:19:21 +0000 (13:19 +0200)]
modules/textops: allow pseudovariables in re.subst parameter

10 years agomodules_k/sqlops: new PV $sqlrows return affected rows of previous query
Alex Hermann [Tue, 9 Aug 2011 10:31:48 +0000 (12:31 +0200)]
modules_k/sqlops: new PV $sqlrows return affected rows of previous query

The PV $sqlrows(<con>) returns the number of affected rows of the
previous UPDATE, INSERT or DELETE query on the specified connection.

10 years agomodules/db_mysql: Implement affected_rows for mysql
Alex Hermann [Tue, 9 Aug 2011 09:58:01 +0000 (11:58 +0200)]
modules/db_mysql: Implement affected_rows for mysql

10 years agolib/srdb1: Add support for affected rows.
Alex Hermann [Tue, 9 Aug 2011 09:56:21 +0000 (11:56 +0200)]
lib/srdb1: Add support for affected rows.

affected_rows is the number of rows affected by a query.
Primarily used after UPDATE, INSERT and DELETE queries,
to know how many rows were affected.

10 years agomodules/db_mysql: Don't call mysql_next_results if there aren't any results left
Alex Hermann [Tue, 9 Aug 2011 09:54:05 +0000 (11:54 +0200)]
modules/db_mysql: Don't call mysql_next_results if there aren't any results left

Calling mysql_next_results looses connection state for the previous result,
making it impossible to use mysql_last_insert_id and mysql_affected_rows

10 years agodb_mysql: renamed some internal functions
Daniel-Constantin Mierla [Wed, 17 Aug 2011 22:35:48 +0000 (00:35 +0200)]
db_mysql: renamed some internal functions

- 'mysql' added in the name of some functions from DB APIv1 to be
  consistent with the rest of them

10 years agodb_mysql: insert delayed implemented for DB API v1
Daniel-Constantin Mierla [Wed, 17 Aug 2011 22:33:51 +0000 (00:33 +0200)]
db_mysql: insert delayed implemented for DB API v1

10 years agosrdb1: insert delayed support in DB API v1
Daniel-Constantin Mierla [Wed, 17 Aug 2011 22:30:59 +0000 (00:30 +0200)]
srdb1: insert delayed support in DB API v1

- new field in DB API struct for insert delayed implementations
- sql insert command wrapped to allow 'delayed' flag
- DB_CAP_INSERT_DELAYED flag added to show db insert delayed capability

10 years agomodules_k/dispatcher: removed recently added modparams and added event_routes
pd [Wed, 17 Aug 2011 16:00:51 +0000 (17:00 +0100)]
modules_k/dispatcher: removed recently added modparams and added event_routes

- As per Daniel's suggestion, the module now uses libkcore/faked_msg and
  instead of parameters to specify routes when a destination goes up/down
  the module now calls the event_route[dispatcher:dst-up] and

10 years agomodules_k/dialog: Prefix get_valid_msg() function name with "dlg_"
Timo Reimann [Wed, 17 Aug 2011 15:25:14 +0000 (17:25 +0200)]
modules_k/dialog: Prefix get_valid_msg() function name with "dlg_"
and turn static inline to enable usage when the dialog module is
not linked in.

- modules_k/pua_dialoginfo: Use changed function name.

10 years agomodules_k/presence, modules_k/presence_xml: Added new exported functions to enable...
pd [Wed, 17 Aug 2011 14:01:26 +0000 (15:01 +0100)]
modules_k/presence, modules_k/presence_xml: Added new exported functions to enable the online status of a user to be checked

- Exported two new API functions from presence (get_presentity() and
  free_presentity()). These functions are used by the new exported

- Added two new exported functions to presence_xml. pres_check_basic()
  enables you to find out whether a users basic status matches the
  string you provide. pres_check_activities() enables you to find out
  whether any of a users listed activities matches the string you

  pres_check_basic() effectively lets you tell whether a user is
  online or offline (based on presence). pres_check_activities()
  lets you see what a user is currently doing (for example, is the
  user too busy to take a call?).

  The results from these exported functions can be used to make
  routing decisions. For example, you can choose not to route calls
  to users who are away or busy.

10 years agomodules_k/dialog When hash_size was smaller then 1, consider this as a value(1 =...
Marius Zbihlei [Wed, 17 Aug 2011 12:00:00 +0000 (15:00 +0300)]
modules_k/dialog When hash_size was smaller then 1, consider this as a value(1 == 2^0)

The 1<<(n-1) check for the power of two smaller than the given number doesn't work for n == 0 (undefined behavior),
so values of dlg_hash_size smaller than 1 where not checked correctly.

10 years agomodules_k/uac In case uuid was not found in the case of remore registration, do not...
Marius Zbihlei [Wed, 17 Aug 2011 11:44:52 +0000 (14:44 +0300)]
modules_k/uac In case uuid was not found in the case of remore registration, do not crash when jumping to label

10 years agoAdapt multiple modules relying on the dialog module to latest
Timo Reimann [Wed, 17 Aug 2011 11:35:53 +0000 (13:35 +0200)]
Adapt multiple modules relying on the dialog module to latest
dialog changes.

- modules_k/nat_traversal: Register for DLGCB_CONFIRMED_NA
  (formerly called DLGCB_CONFIRMED; see commit e1068cb0ab4 for
- modules_k/pua_dialoginfo:
    * In __dialog_cbtest(), make sure that valid SIP message is
    * In __dialog_cbtest(), print details for callback on
    * In __dialog_created(), register to DLGCB_CONFIRMED_NA in
      normal case and additionally to DLGCB_CONFIRMED_NA in debug
      case (PUA_DIALOGINFO_DEBUG enabled).
- modules_k/sst:
    * Use reply message from dialog callback parameters in
    * Register to DLGCB_CONFIRMED_NA instead of DLGCB_CONFIRMED.

10 years agomodules_k/dialog: Provider helper get_valid_msg() to retrieve
Timo Reimann [Wed, 17 Aug 2011 11:12:24 +0000 (13:12 +0200)]
modules_k/dialog: Provider helper get_valid_msg() to retrieve
valid SIP message from given dialog callback parameter structure.
(Useful due to interface change committed in c02155941.)

10 years agomodules_k/presence : Added parameter to allow disabling of sending an initial empty...
Marius Zbihlei [Thu, 23 Jun 2011 08:42:53 +0000 (11:42 +0300)]
modules_k/presence : Added parameter to allow disabling of sending an initial empty NOTIFY by presence, as this confused some CPEs

Default is enabled, so behavior is left the existing one. Sending of the NOTIFY (carrying the initial/default state) is left now to the application.

10 years agomodules/db_mysql: Add function declaration to prevent compiler
Timo Reimann [Wed, 17 Aug 2011 09:33:55 +0000 (11:33 +0200)]
modules/db_mysql: Add function declaration to prevent compiler

- Define db_mysql_alloc_buffer(void) in km_dbase.h.

10 years agocore: added test if SREV_NET_DGRAM_IN callback is set
Daniel-Constantin Mierla [Wed, 17 Aug 2011 09:29:41 +0000 (11:29 +0200)]
core: added test if SREV_NET_DGRAM_IN callback is set

- patch by Alexandr Dubovikov

10 years agomodules_k/dialog: Remove superfluous node check.
Timo Reimann [Wed, 17 Aug 2011 09:19:38 +0000 (11:19 +0200)]
modules_k/dialog: Remove superfluous node check.

10 years agomodules_k/dialog: Add DLGCB_CONFIRMED_NA callback and make
Timo Reimann [Wed, 17 Aug 2011 09:04:40 +0000 (11:04 +0200)]
modules_k/dialog: Add DLGCB_CONFIRMED_NA callback and make
DLGCB_CONFIRM fit accordingly.

- Add DLGCB_CONFIRMED_NA callback which is triggered on reception
  of a 200 OK message (setup-concluding ACK message still
- Execute DGLCB_CONFIRMED on reception of a setup-concluding ACK
- Extend documentation and clarify that DLGCB_REQ_WITHIN does not
  fire on DLGCB_CONFIRMED. (This is for consistency reasons as BYE
  requests have their own callback (DLGCB_TERMINATED) as well.
  Users who wish to track both setup-concluding ACK and other
  sequential requests must register for both callbacks types now.)
- Closes Flyspray issue #143.

10 years agomodules_k/dialog: Clear dialog and dialog variable tables after
Timo Reimann [Wed, 17 Aug 2011 07:58:38 +0000 (09:58 +0200)]
modules_k/dialog: Clear dialog and dialog variable tables after
loading dialogs from database into memory if DB_MODE_SHUTDOWN is

- Closes Flyspray issue #126 ('3.x dialog module: dialogs stay in
  database when in "shutdown only" mode').

10 years agosiptrace: several fixes to extra headers management
Daniel-Constantin Mierla [Tue, 16 Aug 2011 20:06:35 +0000 (22:06 +0200)]
siptrace: several fixes to extra headers management

- use pkg for memory needs instead of standard malloc/free
- declare variables at beginning of functions for better C compliancy
- free allocated pointer in case of a later error

10 years agosiptrace: support to use sip_trace() in onsend_route
Daniel-Constantin Mierla [Tue, 16 Aug 2011 15:59:30 +0000 (17:59 +0200)]
siptrace: support to use sip_trace() in onsend_route

10 years agoutils: Add database creation scripts for dialog variable table
Timo Reimann [Tue, 16 Aug 2011 18:33:06 +0000 (20:33 +0200)]
utils: Add database creation scripts for dialog variable table

10 years agomodules_k/acc: Fix typos.
Timo Reimann [Tue, 16 Aug 2011 17:58:12 +0000 (19:58 +0200)]
modules_k/acc: Fix typos.

10 years agoMerge branch 'master' into treimann/acc-cdr
Timo Reimann [Tue, 16 Aug 2011 17:44:41 +0000 (19:44 +0200)]
Merge branch 'master' into treimann/acc-cdr

* master:
  modules_k/dialog: In docs, fix indention of example to "detect_spirals".
  modules/app_lua, modules/sdpops: Exported sdpops:sdp_with_media() to app_lua
  modules_k/dispatcher: Added new feature that enables routes to be run when destinations fail/recover
  tmx: fixed mix-up between $T(id_index) and $T(id_label)

10 years agomodules_k/dialog: In docs, fix indention of example to
Timo Reimann [Tue, 16 Aug 2011 16:12:58 +0000 (18:12 +0200)]
modules_k/dialog: In docs, fix indention of example to

10 years agomodules/app_lua, modules/sdpops: Exported sdpops:sdp_with_media() to app_lua
pd [Tue, 16 Aug 2011 13:39:41 +0000 (14:39 +0100)]
modules/app_lua, modules/sdpops: Exported sdpops:sdp_with_media() to app_lua

- Also fixed a bug relating to logging levels within app_lua (sr.log())
- Feature added by Hugh Waite at Crocodile RCS

10 years agomodules_k/dispatcher: Added new feature that enables routes to be run when destinatio...
pd [Tue, 16 Aug 2011 10:24:44 +0000 (11:24 +0100)]
modules_k/dispatcher: Added new feature that enables routes to be run when destinations fail/recover

- Two new exported parameters ds_dst_unavailable_route and
  ds_dst_available_route allow you to specify routes to run when
  a destination is marked PROBING and unmarked PROBING respectively.

  This is useful for integration with NMC and alarms equipment as
  these routes can be used to trigger/log these status changes.

10 years agotmx: fixed mix-up between $T(id_index) and $T(id_label)
Daniel-Constantin Mierla [Tue, 16 Aug 2011 10:21:14 +0000 (12:21 +0200)]
tmx: fixed mix-up between $T(id_index) and $T(id_label)

- patch by Martin Hoffmann

10 years agoMerge branch 'master' into treimann/acc-cdr
Timo Reimann [Mon, 15 Aug 2011 12:58:20 +0000 (14:58 +0200)]
Merge branch 'master' into treimann/acc-cdr

* master: (76 commits)
  core: new core event for received datagrams
  Added documentation to the DMQ module
  htable: docs updated with db_expires parameter
  htable: control load/save of expires value from db via parameter
  srdb1: updated the definition of siptrace table to include time_us column
  modules_k/siptrace: Add time to x-headers
  modules_k/siptrace: Add column time_us
  modules_k/siptrace: Add "x-headers" feature
  modules_k/siptrace: Add trace_to_database configuration parameter
  modules_k/siptrace: separately store to db and/or send duplicate
  pua_xmpp: fixes to SIP-XMPP presence status translations
  Expose terminate_dlg through C API
  Expose terminate_dlg through C API
  Added terminate_dlg description
  Expose terminate_dlg through C API
  modules_k/dialog: Fix a bug that would cause a segfault when caller bind address information could not be retrieved from database and "dlg_list" was fifo-issued.
  modules_k/dialog: Improve dialog timer list handling.
  modules/tm, modules_k/pua: Fix for concurrency issue in PUA module
  tm: keep internal retr. intervals in ms
  lib/srdb1/schema: forgot to increase version number of pua table


10 years agocore: new core event for received datagrams
Daniel-Constantin Mierla [Sun, 14 Aug 2011 20:59:53 +0000 (22:59 +0200)]
core: new core event for received datagrams

- event type defined as SREV_NET_DGRAM_IN
- allow modules to get a callback when a udp datagram is received
- offers the possibility to handle different content sent via datagram,
  such as HEP from Homer project, without invading the core with new

10 years agoMerge branch 'mariusbucur/dmq'
Marius Bucur [Sun, 14 Aug 2011 02:20:16 +0000 (19:20 -0700)]
Merge branch 'mariusbucur/dmq'

10 years agoAdded documentation to the DMQ module
unknown [Sun, 14 Aug 2011 02:02:31 +0000 (19:02 -0700)]
Added documentation to the DMQ module

10 years agohtable: docs updated with db_expires parameter
Daniel-Constantin Mierla [Sat, 13 Aug 2011 22:18:40 +0000 (00:18 +0200)]
htable: docs updated with db_expires parameter

10 years agohtable: control load/save of expires value from db via parameter
Daniel-Constantin Mierla [Sat, 13 Aug 2011 22:04:25 +0000 (00:04 +0200)]
htable: control load/save of expires value from db via parameter

- db_expires - a new paramter to control if the expires of the items in
  the hash table should be loaded/saved to database
- default is 0 - do not load/save expires value - backward
  compatibility, since there might be hash tables loaded form database
  but without expires
- if the hash table definition does not have an auto-expires, even
  if db_expires=1, the expires column is not selected since it is not

10 years agosrdb1: updated the definition of siptrace table to include time_us column
Daniel-Constantin Mierla [Sat, 13 Aug 2011 21:37:10 +0000 (23:37 +0200)]
srdb1: updated the definition of siptrace table to include time_us column

- regenerated scripts to create the database schema based on latest xml
  schema definition

10 years agomodules_k/siptrace: Add time to x-headers
Tristan Bruns [Fri, 5 Aug 2011 07:30:53 +0000 (09:30 +0200)]
modules_k/siptrace: Add time to x-headers

Signed-off-by: Tristan Bruns <>
Signed-off-by: Daniel-Constantin Mierla <>