sip-router
8 years agodoxygen: fix a bunch of errors in parser, db_mysql and xmlrpc modules
Henning Westerholt [Mon, 12 Sep 2011 19:29:26 +0000 (21:29 +0200)]
doxygen: fix a bunch of errors in parser, db_mysql and xmlrpc modules

8 years agomodules/auth: mark credentials after verifying realm, not only after authentication...
Alex Hermann [Mon, 12 Sep 2011 09:25:26 +0000 (11:25 +0200)]
modules/auth: mark credentials after verifying realm, not only after authentication succeeded

Make $Au backwards compatible with 1.x. In 1.x $Au would be set to the credentials
username@domain for matching realm, not only for successfull authentication.

8 years agolib/srdb1: eleminate string copy in db_val2pv_spec()
Alex Hermann [Tue, 6 Sep 2011 08:18:10 +0000 (10:18 +0200)]
lib/srdb1: eleminate string copy in db_val2pv_spec()

After fixing a memory leak, i now realize pv_set_spec_value() always makes
a string copy too, so this one can be removed safely.

8 years agomodules_k/nathelper: fix add_contact_alias() for contacts without angle brackets <>
Alex Hermann [Tue, 6 Sep 2011 12:44:25 +0000 (14:44 +0200)]
modules_k/nathelper: fix add_contact_alias() for contacts without angle brackets <>

When adding the brackets and the alias, the function suffered from the
infamous problem that the same part of a message can only be changed once.
Inserting 3 lumps created an offset problem resulting in the alias
parameter being added outside the brackets. This patch converts it to
adding just 2 non-overlapping lumps by combining the closing > with the
alias parameter.

8 years agodispatcher(k): typo in ds_next_dst() dstid avp handling
Daniel-Constantin Mierla [Mon, 12 Sep 2011 10:52:33 +0000 (12:52 +0200)]
dispatcher(k): typo in ds_next_dst() dstid avp handling

- fixes wrong condition in finding dstid avp
- patch by Bogdan Pintea

8 years agomodules_k/dialog: Do not log an ERROR level message when
Timo Reimann [Mon, 12 Sep 2011 09:20:55 +0000 (11:20 +0200)]
modules_k/dialog: Do not log an ERROR level message when
attempting to delete a non-existing dialog variable, thereby
bringing dialog variable behavior more in line with AVP behavior.

Credits to Anca Vamanu (anca.vamanu@1and1.ro).

8 years agomodules_k/dialog: Remove unused parameter "new" from prototype and
Timo Reimann [Fri, 9 Sep 2011 11:34:10 +0000 (13:34 +0200)]
modules_k/dialog: Remove unused parameter "new" from prototype and
calls to set_dlg_variable_unsafe().

Credits to Anca Vamanu (anca.vamanu@1und1.ro).

8 years agoMakefile: version set to 3.2.0-pre2
Daniel-Constantin Mierla [Fri, 9 Sep 2011 08:25:31 +0000 (10:25 +0200)]
Makefile: version set to 3.2.0-pre2

8 years agoxcap_client: use curl-config to get include and lib compile flags
Daniel-Constantin Mierla [Fri, 9 Sep 2011 08:25:02 +0000 (10:25 +0200)]
xcap_client: use curl-config to get include and lib compile flags

8 years agoxcap_server: use xml2-config to get include and libs compile flags
Daniel-Constantin Mierla [Fri, 9 Sep 2011 08:08:33 +0000 (10:08 +0200)]
xcap_server: use xml2-config to get include and libs compile flags

8 years agokamctl: regenerated sql scripts from latest db schema
Daniel-Constantin Mierla [Thu, 8 Sep 2011 14:05:42 +0000 (16:05 +0200)]
kamctl: regenerated sql scripts from latest db schema

8 years agoxcap_server: ability to insert new nodes in xcap docs
Daniel-Constantin Mierla [Thu, 8 Sep 2011 14:02:49 +0000 (16:02 +0200)]
xcap_server: ability to insert new nodes in xcap docs

- xpath cannot do it alone when the selected node is missing
- reported by Laura Testi - credits for testing and further patching

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Daniel-Constantin Mierla [Thu, 8 Sep 2011 13:58:37 +0000 (15:58 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  lib/srdb1/schema/pr_xcap.xml: made doc_uri size match XCAP_MAX_URI_SIZE

8 years agolib/srdb1/schema/pr_xcap.xml: made doc_uri size match XCAP_MAX_URI_SIZE
Juha Heinanen [Thu, 8 Sep 2011 06:36:34 +0000 (09:36 +0300)]
lib/srdb1/schema/pr_xcap.xml: made doc_uri size match XCAP_MAX_URI_SIZE

8 years agoxcap_server: remove invalid lib dir from Makefile
Daniel-Constantin Mierla [Wed, 7 Sep 2011 19:57:03 +0000 (21:57 +0200)]
xcap_server: remove invalid lib dir from Makefile

8 years agodispatcher(k): fix segfault if dispatcher cannot resolve hostnames
Daniel-Constantin Mierla [Wed, 7 Sep 2011 11:23:07 +0000 (13:23 +0200)]
dispatcher(k): fix segfault if dispatcher cannot resolve hostnames

- applies if the dispatcher module cannot resolve hostnames during
  startup (and tries to shutdown)
- patch by Hugh Waite

8 years agoapp_lua: use pv spec cache
Daniel-Constantin Mierla [Tue, 6 Sep 2011 19:47:45 +0000 (21:47 +0200)]
app_lua: use pv spec cache

- avoid memory leaks when working with PVs that have dynamic name

8 years agocore: caching support for pv spec parsing
Daniel-Constantin Mierla [Tue, 6 Sep 2011 19:44:12 +0000 (21:44 +0200)]
core: caching support for pv spec parsing

- can be used to reduce pkg memory usage by PVs
- solves memory leak of using PVs with dynamic names from embedded
  languages

8 years agodispatcher: just some 80 char long line alignaments
Daniel-Constantin Mierla [Tue, 6 Sep 2011 12:14:01 +0000 (14:14 +0200)]
dispatcher: just some 80 char long line alignaments

8 years agotm: update T msg flags after {branch/failure}_route
Daniel-Constantin Mierla [Tue, 6 Sep 2011 12:12:00 +0000 (14:12 +0200)]
tm: update T msg flags after {branch/failure}_route

- after execution of branch_route or failure_route, set the message
  flags of the temporary request back to transaction request
- 1.x behaviour
- reported and partial patch by Alex Hermann

8 years agopgk: add symlink to kamailio directory for new gentoo ebuild
Henning Westerholt [Mon, 5 Sep 2011 19:50:23 +0000 (21:50 +0200)]
pgk: add symlink to kamailio directory for new gentoo ebuild

8 years agopkg: also remove Makefile.defs.diff from calling files
Henning Westerholt [Mon, 5 Sep 2011 19:46:12 +0000 (21:46 +0200)]
pkg: also remove Makefile.defs.diff from calling files

8 years agopkg: remove Makefile.defs.diff file, which set special daemon name - use the default
Henning Westerholt [Mon, 5 Sep 2011 19:42:03 +0000 (21:42 +0200)]
pkg: remove Makefile.defs.diff file, which set special daemon name - use the default

8 years agopkg: move gentoo ebuild to ser directory, remove obselete 0.8.X ebuild
Henning Westerholt [Mon, 5 Sep 2011 19:33:21 +0000 (21:33 +0200)]
pkg: move gentoo ebuild to ser directory, remove obselete 0.8.X ebuild

8 years agopkg: remove obselete gentoo ebuild, add new generic ebuild from Claudio Furrer (FS...
Henning Westerholt [Mon, 5 Sep 2011 16:17:40 +0000 (18:17 +0200)]
pkg: remove obselete gentoo ebuild, add new generic ebuild from Claudio Furrer (FS#134)

8 years agopkg: fix wrong package name, closes FS#148, reported from Andrew Pogrebennyk
Henning Westerholt [Mon, 5 Sep 2011 16:10:39 +0000 (18:10 +0200)]
pkg: fix wrong package name, closes FS#148, reported from Andrew Pogrebennyk

8 years agolib/srdb1: remove comments on db_val2pv_spec() that resulted from merge error
Alex Hermann [Mon, 5 Sep 2011 15:24:47 +0000 (17:24 +0200)]
lib/srdb1: remove comments on db_val2pv_spec() that resulted from merge error

8 years agomodules_k/sqlops: fix memory leak with string memory in sql_xquery()
Alex Hermann [Mon, 5 Sep 2011 15:08:18 +0000 (17:08 +0200)]
modules_k/sqlops: fix memory leak with string memory in sql_xquery()

8 years agolib/srdb1: Fix memory leak with string memory in db_val2pv_spec()
Alex Hermann [Mon, 5 Sep 2011 14:41:55 +0000 (16:41 +0200)]
lib/srdb1: Fix memory leak with string memory in db_val2pv_spec()

8 years agosrdb1: fix for undeclared INADDR_LOOPBACK on darwin os
Daniel-Constantin Mierla [Mon, 5 Sep 2011 12:14:54 +0000 (14:14 +0200)]
srdb1: fix for undeclared INADDR_LOOPBACK on darwin os

8 years agocore: fix typo in parser.
Sven Knoblich [Mon, 5 Sep 2011 11:35:50 +0000 (13:35 +0200)]
core: fix typo in parser.

- use correct function-name in log message of parse_param.c:parse_contact_class.
  (fixes flyspray-issue 147)

8 years agosrdb1: fix compile warning related to strptime on linux
Daniel-Constantin Mierla [Mon, 5 Sep 2011 11:44:06 +0000 (13:44 +0200)]
srdb1: fix compile warning related to strptime on linux

8 years agorr: remove out commented is_2rr function, not compiled since more than two years
Henning Westerholt [Sun, 4 Sep 2011 20:14:09 +0000 (22:14 +0200)]
rr: remove out commented is_2rr function, not compiled since more than two years

8 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

8 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).

8 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

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

8 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

8 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

8 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.

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

8 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
description.

8 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).

8 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
handling.

- Remove special handling for dialogs in the "deleted" state to
  allow accessing such dialogs (e.g., from the configuration
  script).
  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
  counting.

8 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.

8 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

8 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
dlg_new_dialog().

8 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.

8 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

8 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.

8 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

8 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

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

8 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

8 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

8 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

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

8 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.

8 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.

8 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
8 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.

8 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.

8 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.

8 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.

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

8 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

8 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

8 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

8 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.

8 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

8 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

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

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

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

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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

8 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

8 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.

8 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.int, 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.

Summarizing:

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

8 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

8 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

8 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.

8 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).

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

8 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.

8 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.

8 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

8 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

8 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

8 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

8 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.

8 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

8 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.

8 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
afterwards.