sip-router
7 years agoMakefile: version set to 3.3.0-pre3
Daniel-Constantin Mierla [Thu, 31 May 2012 12:45:41 +0000 (14:45 +0200)]
Makefile: version set to 3.3.0-pre3

7 years agocore/select: fixed @via... without header index
Daniel-Constantin Mierla [Thu, 31 May 2012 12:44:19 +0000 (14:44 +0200)]
core/select: fixed @via... without header index

- reported by Iñaki Baz Castillo, fixes FS#138

7 years agopkg/deb Add Ubuntu 12.04 debian folder
Jon Bonilla [Wed, 30 May 2012 12:38:34 +0000 (14:38 +0200)]
pkg/deb Add Ubuntu 12.04 debian folder

7 years ago- improved URI while publishing user location
Carsten Bock [Wed, 30 May 2012 10:53:03 +0000 (12:53 +0200)]
- improved URI while publishing user location
- extended user-record-data in the XML
Credits go to Gnaneshwar Gatla, InTouch Health

7 years agoMakefile: Add tmrec to standard groups
Jon Bonilla [Wed, 30 May 2012 09:07:51 +0000 (11:07 +0200)]
Makefile: Add tmrec to standard groups

7 years agoplg/deb fix app_mono depends
Jon Bonilla [Wed, 30 May 2012 08:50:55 +0000 (10:50 +0200)]
plg/deb fix app_mono depends

7 years agopkg/deb Add mono module to debian packaging
Jon Bonilla [Wed, 30 May 2012 08:39:38 +0000 (10:39 +0200)]
pkg/deb Add mono module to debian packaging

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Juha Heinanen [Wed, 30 May 2012 08:09:34 +0000 (11:09 +0300)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

7 years agomodules/lcr: fixed bug in freeing rule_id_hash_table
Juha Heinanen [Wed, 30 May 2012 08:07:11 +0000 (11:07 +0300)]
modules/lcr: fixed bug in freeing rule_id_hash_table

- Indexing of rule_id_hash_table went too far by one.

7 years agopkd/deb Remove lua and Add redis to wheezy build
Jon Bonilla [Tue, 29 May 2012 23:44:50 +0000 (01:44 +0200)]
pkd/deb Remove lua and Add redis to wheezy build

7 years agodelete a file which was added by mistake
Klaus Darilion [Tue, 29 May 2012 18:25:36 +0000 (18:25 +0000)]
delete a file which was added by mistake

7 years agoxhttp: regenerate readme after commit c386968d40aeef9c8
Henning Westerholt [Tue, 29 May 2012 16:08:39 +0000 (18:08 +0200)]
xhttp: regenerate readme after commit c386968d40aeef9c8

7 years agoadd tcp_accept_no_cl=yes to xhttp description
Klaus Darilion [Tue, 29 May 2012 15:21:23 +0000 (15:21 +0000)]
add tcp_accept_no_cl=yes to xhttp description

7 years agoregistrar(k): check if realm prefix len is >0
Daniel-Constantin Mierla [Tue, 29 May 2012 09:11:49 +0000 (11:11 +0200)]
registrar(k): check if realm prefix len is >0

7 years agosrdb1/dbschema/sqlite: adjust binary column type to BLOB
Timo Teräs [Tue, 22 May 2012 10:58:16 +0000 (13:58 +0300)]
srdb1/dbschema/sqlite: adjust binary column type to BLOB

The BYTEA was a mistake in first place (copied from postgres xsl).

SQlite needs the type to be BLOB for proper affinity. This is also
what the db_sqlite driver expects.

7 years agosrdb1/schema: sort files used to generate versions
Timo Teräs [Tue, 22 May 2012 10:55:05 +0000 (13:55 +0300)]
srdb1/schema: sort files used to generate versions

This ensures that the versions does not change if just file
ordering in file system changes. At least on some systems the
$(wildcard) function return unsorted results.

7 years agosrdb1/dbschema: regenerated db creation scripts
Daniel-Constantin Mierla [Tue, 22 May 2012 10:41:05 +0000 (12:41 +0200)]
srdb1/dbschema: regenerated db creation scripts

- lcr_rule version update was not taken in consideration
- reported by Timo Teräs

7 years agomodules_k/db_sqlite: make decltype matching case-insensitive
Timo Teräs [Tue, 22 May 2012 10:27:53 +0000 (13:27 +0300)]
modules_k/db_sqlite: make decltype matching case-insensitive

Search for keywords case insensitively instead of using strstr().
SQlite stores decltype as-is, and does the affinity type testing
case insensitively too.

7 years agopkg/kamailio: Added new build and script files for Kamailio 3.3.0 on CentOS 6
Peter Dunkley [Sun, 20 May 2012 00:13:41 +0000 (01:13 +0100)]
pkg/kamailio: Added new build and script files for Kamailio 3.3.0 on CentOS 6

- Based on the Fedora files I created recently
- Directory structured so that multiple CentOS releases can be handled
- The old CentOS .spec file (pkg/kamailio/rpm/kamailio.spec.CenOS) has
  been left untouched.  This file is out-of-date and doesn't work
  properly with kamailio 3.3.0 and CentOS 6 (it should be removed if
  no-one is using it)
- kamailio-build.appl and kamailio.appl are BoxGrinder appliance
  definitions for CentOS 6 build and installation test machines.
- This .spec file builds and pacakges all Kamailio 3.3.0 modules
  (modules/modules_k) that can be built and installed on CentOS 6
  without adding any additional repositories.  This means modules that
  require packages (or versions of packages) not available in the
  standard CentOS 6 repo are not built.
- The following modules are not build:
  - modules/app_mono: Requires mono which is not in the CentOS 6 repo
  - modules/auth_identity: Conflicts with TLS unless statically linked (which
    requires changes to Makefile and is impractical for generic RPM building)
  - modules/db_cassandra: Requires Cassandra and Thrift which are not in the
    CentOS 6 repo
  - modules/geoip: Requires GeoIP which is not in the CentOS 6 repo
  - modules/iptrtpproxy: Needs local copy of iptables source to build
    (impractical for generic RPM building)
  - modules/json: Requires json-c whish is not in the CentOS 6 repo
  - modules/jsonrpc-c: Requires json-c whish is not in the CentOS 6 repo
  - modules/ndb_redis: Requires hiredis which is not in the CentOS 6 repo
  - modules/peering: Requires radiusclient-ng which is not in the CentOS 6
    repo
  - modules_k/acc_radius: Requires radiusclient-ng which is not in the CentOS
    6 repo
  - modules_k/auth_radius: Required radiusclient-ng which is not in the
    CentOS 6 repo
  - modules_k/carrierroute: Requires libconfuse which is not in the CentOS 6
    repo
  - modules_k/db_oracle: Requires Oracle which is not in the CentOS 6 repo
    (and is closed-source)
  - modules_k/memcached: Module compilation appears to require an older
    version of libmemcached-devel than the one in the CentOS 6 repo
  - modules_k/mi_xmlrpc: Requires libxmlrpc-c3 which is not in the CentOS 6
    repo
  - modules_k/misc_radius: Requires radiusclient-ng which is not in the
    CentOS 6 repo
  - modules_k/osp: Requires OSP Toolkit which is not in the CentOS 6 repo

7 years agopkg/kamailio/fedora/fc16: Tweak to the systemd scripts for F16
Peter Dunkley [Sat, 19 May 2012 23:52:08 +0000 (00:52 +0100)]
pkg/kamailio/fedora/fc16: Tweak to the systemd scripts for F16

7 years agopkg/kamailio/fedora/fc16: A couple of tweaks to the BoxGrinder appliance definitions
Peter Dunkley [Sat, 19 May 2012 22:08:40 +0000 (23:08 +0100)]
pkg/kamailio/fedora/fc16: A couple of tweaks to the BoxGrinder appliance definitions

7 years agopkg/kamailio/fedora/fc16: I forgot to update kamailio.spec when I changed the directo...
Peter Dunkley [Fri, 18 May 2012 09:09:40 +0000 (10:09 +0100)]
pkg/kamailio/fedora/fc16: I forgot to update kamailio.spec when I changed the directory from f16 to fc16

7 years agopkg/kamailio/fedora: Reanmed f16 to fc16 to match the release tag in the RPM names
Peter Dunkley [Fri, 18 May 2012 09:01:56 +0000 (10:01 +0100)]
pkg/kamailio/fedora: Reanmed f16 to fc16 to match the release tag in the RPM names

7 years agopkg/kamailio/fedora/f16: Fixed a couple of small issues with kamailio.spec
Peter Dunkley [Fri, 18 May 2012 09:00:05 +0000 (10:00 +0100)]
pkg/kamailio/fedora/f16: Fixed a couple of small issues with kamailio.spec

- Put .fc16 into the release name (so you can tell which distribution
  the RPMs are for)
- Added missing BuildRequires (gcc)

7 years agopkg/kamailio/fedora/f16: Added comments to .appl files to show which packages relate...
Peter Dunkley [Thu, 17 May 2012 23:50:37 +0000 (00:50 +0100)]
pkg/kamailio/fedora/f16: Added comments to .appl files to show which packages relate to which Kamailio components

7 years agopkg/kamailio/fedora/f16: Added a couple of missing packages to kamailio test appliance
Peter Dunkley [Thu, 17 May 2012 23:30:08 +0000 (00:30 +0100)]
pkg/kamailio/fedora/f16: Added a couple of missing packages to kamailio test appliance

7 years agopkg/kamailio/fedora/f16: Improved VM/appliance naming in .appl files
Peter Dunkley [Thu, 17 May 2012 22:19:38 +0000 (23:19 +0100)]
pkg/kamailio/fedora/f16: Improved VM/appliance naming in .appl files

7 years agopkg/kamailio/fedora/f16: Fixed some broken paths in kamailio.spec
Peter Dunkley [Thu, 17 May 2012 22:11:52 +0000 (23:11 +0100)]
pkg/kamailio/fedora/f16: Fixed some broken paths in kamailio.spec

7 years agopkg/kamailio/fedora/f16: Added BoxGrinder appliance definition for a Fedora 16 Kamail...
Peter Dunkley [Thu, 17 May 2012 21:33:06 +0000 (22:33 +0100)]
pkg/kamailio/fedora/f16: Added BoxGrinder appliance definition for a Fedora 16 Kamailio test machine

- BoxGrinder automatically creates up-to-date CentOS/Fedora/RHEL
  appliances to a specified configuration.  See
  http://boxgrinder.org/ for more information.
- This configuration is the minimum required to test F16 Kamailio
  3.3 RPMs.
- To build the appliance:
  1) Install BoxGrinder: "yum install rubygem-boxgrinder-build" on
     Fedora
  2) Run BoxGrinder: "boxgrinder-build kamailio.appl"
- If you run BoxGrinder on a 32-bit host you get a 32-bit appliance.
- If you run BoxGrinder on a 64-bit host you get a 64-bit appliance
  by default.  You can create a 32-bit appliance on a 64-bit host by
  using the command: "setarch i386 boxgrinder-build kamailio.appl"
- WARNING: This is an unsecure (no firewall, default password) and
  minimal appliance.  It is not suitable for actual deployment but
  it does have all of the Kamailio Fedora RPM dependencies installed.

7 years agopkg/kamailio/fedora/f16: Added BoxGrinder appliance definition for a Fedora 16 Kamail...
Peter Dunkley [Thu, 17 May 2012 21:25:47 +0000 (22:25 +0100)]
pkg/kamailio/fedora/f16: Added BoxGrinder appliance definition for a Fedora 16 Kamailio build machine

- BoxGrinder automatically creates up-to-date CentOS/Fedora/RHEL
  appliances to a specified configuration.  See
  http://boxgrinder.org/ for more information.
- This configuration is the minimum required to build F16 Kamailio
  3.3 RPMs.
- To build the appliance:
  1) Install BoxGrinder: "yum install rubygem-boxgrinder-build" on
     Fedora
  2) Run BoxGrinder: "boxgrinder-build kamailio-build.appl"
- If you run BoxGrinder on a 32-bit host you get a 32-bit appliance.
- If you run BoxGrinder on a 64-bit host you get a 64-bit appliance
  by default.  You can create a 32-bit appliance on a 64-bit host by
  using the command: "setarch i386 boxgrinder-build kamailio-build.appl"

7 years agopkg/kamailio/fedora/f16: Updated changelog in kamailio.spec
Peter Dunkley [Thu, 17 May 2012 21:25:04 +0000 (22:25 +0100)]
pkg/kamailio/fedora/f16: Updated changelog in kamailio.spec

7 years agopkg/kamailio/fedora: restructured so that the .spec, .service, .sysconfig files for...
Peter Dunkley [Thu, 17 May 2012 21:08:53 +0000 (22:08 +0100)]
pkg/kamailio/fedora: restructured so that the .spec, .service, .sysconfig files for different Fedora versions can be kept

- Updated the release number in kamailio.spec to pre2

7 years agomodules_k/presence: More fixes to issues in notifier processes
Peter Dunkley [Thu, 17 May 2012 14:40:02 +0000 (15:40 +0100)]
modules_k/presence: More fixes to issues in notifier processes

- Fixes to some small issues/race conditions found during soak and
  load testing.

7 years agomodules_k/presence: Fixes to cleanup functions
Peter Dunkley [Thu, 17 May 2012 14:37:17 +0000 (15:37 +0100)]
modules_k/presence: Fixes to cleanup functions

- The presentity cleanup function now uses fetch_rows
- Fixed a problem with array indexing (only cleaned one row) in the
  active_watchers cleanup function for notifier processes

7 years agomodules_k/pua: Removed some unnecessary checks from pua_db.c
Peter Dunkley [Thu, 17 May 2012 14:32:19 +0000 (15:32 +0100)]
modules_k/pua: Removed some unnecessary checks from pua_db.c

7 years agoMakefile: version set to 3.3.0-pre2
Daniel-Constantin Mierla [Thu, 17 May 2012 06:22:11 +0000 (08:22 +0200)]
Makefile: version set to 3.3.0-pre2

7 years agortpproxy: handle UPDATE in rtpproxy_manage()
Daniel-Constantin Mierla [Thu, 17 May 2012 06:19:10 +0000 (08:19 +0200)]
rtpproxy: handle UPDATE in rtpproxy_manage()

- UPDATE can carry SDB body
- reported by Spencer Thomason

7 years agomodules/lcr: improved reloading speed of lcr_rule_target table
Juha Heinanen [Thu, 17 May 2012 06:07:13 +0000 (09:07 +0300)]
modules/lcr: improved reloading speed of lcr_rule_target table

7 years agoRLS modules compiles on Debian
Carsten Bock [Wed, 16 May 2012 16:23:08 +0000 (18:23 +0200)]
RLS modules compiles on Debian

7 years agoAdd msrp to Standard Group
Carsten Bock [Wed, 16 May 2012 15:45:07 +0000 (17:45 +0200)]
Add msrp to Standard Group

7 years agoAdd kcore Library to Makefile for mqueue
Carsten Bock [Wed, 16 May 2012 14:56:47 +0000 (16:56 +0200)]
Add kcore Library to Makefile for mqueue

7 years agoAdd msrp to Standard Group
Carsten Bock [Wed, 16 May 2012 14:53:41 +0000 (16:53 +0200)]
Add msrp to Standard Group

7 years agoxmlrpc: added support for nested structs in RPC reply via XMLRPC
Jason Penton [Tue, 15 May 2012 11:46:35 +0000 (13:46 +0200)]
xmlrpc: added support for nested structs in RPC reply via XMLRPC

7 years agomodules_k/domain: exported domain_attrs_table module var
Juha Heinanen [Tue, 15 May 2012 08:56:22 +0000 (11:56 +0300)]
modules_k/domain:  exported domain_attrs_table module var

- Thanks to Charles Chance for reporting.

7 years agodialog(k): changed log level for a debug message from L_ERR to L_DBG
Daniel-Constantin Mierla [Mon, 14 May 2012 07:48:25 +0000 (09:48 +0200)]
dialog(k): changed log level for a debug message from L_ERR to L_DBG

7 years agomodules_k/presence: Fixed various issues with the notifier process found during soak...
Peter Dunkley [Sun, 13 May 2012 00:28:37 +0000 (01:28 +0100)]
modules_k/presence: Fixed various issues with the notifier process found during soak testing

7 years agomodules_k/presence: Use non-pooled connections (where supported) when using notifier...
Peter Dunkley [Sun, 13 May 2012 00:23:09 +0000 (01:23 +0100)]
modules_k/presence: Use non-pooled connections (where supported) when using notifier processes

- This helps with databases (such as PostgreSQL which is the only one that
  currently supports specifying non-pooled connections) that create a server
  process per client connection.

7 years agomodules_k/pua: Tidied up the error handling in the SUBSCRIBE callback function
Peter Dunkley [Sun, 13 May 2012 00:20:19 +0000 (01:20 +0100)]
modules_k/pua: Tidied up the error handling in the SUBSCRIBE callback function

- Also sorted out a mistake in the use of (start|end)_transaction

7 years agomodules_k/pua: Use non-pooled connections in db only mode (where supported)
Peter Dunkley [Sun, 13 May 2012 00:17:56 +0000 (01:17 +0100)]
modules_k/pua: Use non-pooled connections in db only mode (where supported)

- This helps with databases (such as PostgreSQL, which is the only one that
  currently supports specifying non-pooled connections) that create a server
  process per client connection.

7 years agomodules_k/rls: Use non-pooled connections when in DB only mode (where supported)
Peter Dunkley [Sun, 13 May 2012 00:13:36 +0000 (01:13 +0100)]
modules_k/rls: Use non-pooled connections when in DB only mode (where supported)

- This helps with databases (such as PostgreSQL which is the only one that
  currently supports specifying non-pooled connections) that create a server
  process per client connection.
- Fixed a couple of (end|abort)_transaction cases where dbmode was not checked.

7 years agokamailio.cfg: simplified route[AUTH]
Daniel-Constantin Mierla [Thu, 10 May 2012 11:05:29 +0000 (13:05 +0200)]
kamailio.cfg: simplified route[AUTH]

- use auth_check(...) function which is combining www/proxy_auth()
  internally based on typical scenario provided by default cfg

7 years agoauth_db(k): multi-domain fixes for auth_check(...)
Daniel-Constantin Mierla [Thu, 10 May 2012 11:04:09 +0000 (13:04 +0200)]
auth_db(k): multi-domain fixes for auth_check(...)

- check domain parts in from/to based on use_domain parameter

7 years agomodules_k/presence: Fixed some issues to do with the notifier processes
Peter Dunkley [Wed, 9 May 2012 12:59:23 +0000 (13:59 +0100)]
modules_k/presence: Fixed some issues to do with the notifier processes

- Removal of expired presentities (on a timer) didn't work right
- Removal of old presentities after "closed" NOTIFY didn't work in all cases
- When the same subscriber was logged in twice only one client got certain
  notifications.

7 years agomodules_k/pua: Added (start|end|abort)_transaction calls (when in DB only mode and...
Peter Dunkley [Wed, 9 May 2012 12:55:01 +0000 (13:55 +0100)]
modules_k/pua: Added (start|end|abort)_transaction calls (when in DB only mode and where supported)

- Helps with some multi-server/process race hazards

7 years agomodules/dialplan: dp_translate documentation improvement
Juha Heinanen [Wed, 9 May 2012 07:22:17 +0000 (10:22 +0300)]
modules/dialplan: dp_translate documentation improvement

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Juha Heinanen [Wed, 9 May 2012 04:44:58 +0000 (07:44 +0300)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

Forgot to pull before commit.

7 years agomodules_k/auth_radius: fixed typo in README
Juha Heinanen [Wed, 9 May 2012 04:42:14 +0000 (07:42 +0300)]
modules_k/auth_radius:  fixed typo in README

- Fixed authorization return code for authorization failed.  It should
  be 2 instead of 3.  Reported by Ricardo Martinez.

7 years agokamctl: added 'address' command
Daniel-Constantin Mierla [Tue, 8 May 2012 17:35:29 +0000 (19:35 +0200)]
kamctl: added 'address' command

- handle records for address table of permissions module

7 years agopkg/kamailio/fedora: removed unused variable
Peter Dunkley [Tue, 8 May 2012 16:08:50 +0000 (17:08 +0100)]
pkg/kamailio/fedora: removed unused variable

7 years agomodules_k/presence: Dedicated notifier processes
Peter Dunkley [Tue, 8 May 2012 15:47:07 +0000 (16:47 +0100)]
modules_k/presence: Dedicated notifier processes

- This fixes a bug in presence where, when subs_db_mode is database
  only, under high loads with lots of presentity changes you can get
  several different NOTIFY requests sent with the same CSeq.
- The dedicated notifier processes only work when in database only
  mode.
- The dedicated notifier processes are enabled (with one notifier
  process) by default when in database only mode.
- You can disable the dedicated notifier processes by setting the
  "notifier_processes" modparam to 0.
- The notifier processes are executed on a timer and deal with a
  small amount of the outstanding notifications each time they run.
  By default (changeable through the "waitn_time" modparam) all
  dialogs are processed every five seconds.  This means it will take
  between 0 and five seconds (on average 2.5 seconds) between a
  presentity or dialog update occurring and a NOTIFY request being
  sent.

7 years agomodules_k/rls: Tidied up some of the DB query stuff in RLS
Peter Dunkley [Tue, 8 May 2012 15:42:22 +0000 (16:42 +0100)]
modules_k/rls: Tidied up some of the DB query stuff in RLS

7 years agopkg/kamailio/fedora: Updated Fedora pkg files to use systemd instead of SysV init
Peter Dunkley [Mon, 7 May 2012 23:00:48 +0000 (00:00 +0100)]
pkg/kamailio/fedora: Updated Fedora pkg files to use systemd instead of SysV init

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Carsten Bock [Mon, 7 May 2012 09:57:38 +0000 (11:57 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

7 years agoBugfix: Ommit Username in uri, if AOR is empty.
Carsten Bock [Mon, 7 May 2012 09:56:03 +0000 (11:56 +0200)]
Bugfix: Ommit Username in uri, if AOR is empty.
- Thanks to Gnaneshwar Gatla for reporting.

7 years agopkg/kamailio/fedora: Created .spec for building Kamailio on Fedora
Peter Dunkley [Mon, 7 May 2012 01:51:36 +0000 (02:51 +0100)]
pkg/kamailio/fedora: Created .spec for building Kamailio on Fedora

- Also updated pkg/kamailio/fedora/kamailio.init and added
  pkg/kamailio/fedora/kamailio.default.
- Tested/developed on Fedora 16 x86_64 - but should work on other architectures.
- The spec file builds all Kamailio 3.3.0 modules (modules/modules_k) except:
    - modules/auth_identity: Conflicts with TLS unless statically linked (which
      requires changes to Makefile and is impractical for generic RPM building).
    - modules/db_cassandra: Requires Thrift which is not in the F16 repo.
    - modules/iptrtpproxy: Needs local copy of iptables source to build
      (impractical for generic RPM building).
    - modules_k/db_oracle: Requires Oracle which is not in the F16 repo
      (and is closed-source).
    - modules_k/memcached: Module compilation appears to require an older
      version of libmemcached-devel than the one in the F16 repo.
    - modules_k/mi_xmlrpc: The F16 repo contains an unsupported version of
      libxmlrpc-c3, and there is an compilation error due to the module code
      using an unknown type ('TString').
    - modules_k/osp: Requires OSP Toolkit which is not in the F16 repo.
- I plan to update this .spec in a couple of weeks when Fedora 17 is released. I
  will add modules/db_cassandra and modules_k/osp if Fedora 17 contains the
  right versions of Thrift and OSP Toolkit.

7 years agomodules_k/purple: Updated to compile on Fedora 16
Peter Dunkley [Sun, 6 May 2012 17:40:35 +0000 (18:40 +0100)]
modules_k/purple: Updated to compile on Fedora 16

- Updated Makefile to use pkg-config so that it selects the correct
  libraries/versions.
- Added missing include for glib.h to a few files.  Not sure why this is
  needed now when it wasn't before - but a quick search has shown it should
  continue to work with older glib versions too.

7 years agomodules_k/auth_identity: Updated to compile on Fedora 16
Peter Dunkley [Sun, 6 May 2012 17:37:01 +0000 (18:37 +0100)]
modules_k/auth_identity: Updated to compile on Fedora 16

- auth_http.c and auth_identity.c include a header file that does not exist
  in the libcurl 7.21.7 RPMS.  A quick search around online has indicated
  that this include shouldn't have been needed anyway.

7 years agomodules_k/rls: Added checks for NULL results from DB queries
Peter Dunkley [Fri, 4 May 2012 17:21:47 +0000 (18:21 +0100)]
modules_k/rls: Added checks for NULL results from DB queries

7 years agomodules_k/pua: Fixed memory leak and added checks for NULL results being returned...
Peter Dunkley [Fri, 4 May 2012 17:18:58 +0000 (18:18 +0100)]
modules_k/pua: Fixed memory leak and added checks for NULL results being returned from database queries

7 years agolib/srdb1: Changed OP_NEQ to use ANSI standard <>
Peter Dunkley [Fri, 4 May 2012 17:14:06 +0000 (18:14 +0100)]
lib/srdb1: Changed OP_NEQ to use ANSI standard <>

- OP_NEQ was "!=" which works with many, but not all, SQL databases.
- One database this doesn't work with is PostgreSQL.
- <> is the standard and all databases should support it.

7 years agolib/srdb1/schema: Fixed typo in description field for extra_headers in silo.xml
Peter Dunkley [Fri, 4 May 2012 17:12:33 +0000 (18:12 +0100)]
lib/srdb1/schema: Fixed typo in description field for extra_headers in silo.xml

- Fix by Hugh Waite @ Crocodile RCS

7 years agokamailio.cfg: set version to 3.3 in the top comments
Daniel-Constantin Mierla [Fri, 4 May 2012 14:35:40 +0000 (16:35 +0200)]
kamailio.cfg: set version to 3.3 in the top comments

- GRUU is disabled via registrar modparam to be coherent with the logi
  in config, as GRUU would require lookup for requests within dialog

7 years agousrloc(k): set ruid for contacts added via MI command
Daniel-Constantin Mierla [Fri, 4 May 2012 14:35:04 +0000 (16:35 +0200)]
usrloc(k): set ruid for contacts added via MI command

7 years agokamctl: avoid including .ctlbase many times
Daniel-Constantin Mierla [Fri, 4 May 2012 14:13:06 +0000 (16:13 +0200)]
kamctl: avoid including .ctlbase many times

- resulted in duplicated help output
- added shortcuts for uptime and stats
- aliased mi to fifo command

7 years agodialog(k): remove second useless search of dlg by callid
Daniel-Constantin Mierla [Fri, 4 May 2012 11:58:04 +0000 (13:58 +0200)]
dialog(k): remove second useless search of dlg by callid

- a second search was performed using to-tag as part of the hashing
  function, but it was never used to build the hash id

7 years agomodules_k/presence Removed unused refresh_watcher() function
Anca Vamanu [Fri, 4 May 2012 09:17:56 +0000 (12:17 +0300)]
modules_k/presence Removed unused refresh_watcher() function

7 years agomodules_k/presence Fixed refresh_watcher function
Anca Vamanu [Fri, 4 May 2012 08:57:27 +0000 (11:57 +0300)]
modules_k/presence Fixed refresh_watcher function

7 years agomodules_k/dialog Fixed 2 macros for dialog state with same value
Anca Vamanu [Fri, 4 May 2012 08:45:05 +0000 (11:45 +0300)]
modules_k/dialog Fixed 2 macros for dialog state with same value

7 years agomsilo(k): avoid potential pkg_malloc(0) if no extra hdrs are available
Daniel-Constantin Mierla [Thu, 3 May 2012 10:15:49 +0000 (12:15 +0200)]
msilo(k): avoid potential pkg_malloc(0) if no extra hdrs are available

7 years agomodules_k/rls: Tidied up the use of (start|end|abort)_transaction
Peter Dunkley [Wed, 2 May 2012 16:55:50 +0000 (17:55 +0100)]
modules_k/rls: Tidied up the use of (start|end|abort)_transaction

7 years agomodules_k/rls: Updated module documentation
Peter Dunkley [Wed, 2 May 2012 16:48:47 +0000 (17:48 +0100)]
modules_k/rls: Updated module documentation

7 years agomodules/db_postgres: Retries are disabled within transactions
Peter Dunkley [Wed, 2 May 2012 16:43:14 +0000 (17:43 +0100)]
modules/db_postgres: Retries are disabled within transactions

- You don't want automatic retries in the database when inside a
  transaction (that is after an SQL BEGIN).  This is because if the
  database connection fails the outstanding operations will be rolled
  back.  If you automatically connect and retry the failed operation
  it will be acting on a database table/rows that are in a different
  state from which it expects.
- This change disables retries on any SQL operations between a
  start_transaction and an (end|abort)_transaction.
- Other database operations are unaffected.

7 years agomodules/db_postgres: Fixed bug in insert/delete/update operations where success is...
Peter Dunkley [Wed, 2 May 2012 16:40:29 +0000 (17:40 +0100)]
modules/db_postgres: Fixed bug in insert/delete/update operations where success is returned when there are some errors

- Some PostgreSQL errors are only identified when the store_result()
  function is called.  Even if store_result() returns < 0 (indicating
  an error has occurred) the insert/delete/update functions can still
  return success.

7 years agomodules_k/presence Fixed wrong cseq and wrong expires bugs
Anca Vamanu [Wed, 2 May 2012 15:42:55 +0000 (18:42 +0300)]
modules_k/presence Fixed wrong cseq and wrong expires bugs

1. Wrong cseq bug: happened in subs_db_mode!= DB_ONLY when generating
Notify with expires=0 that was not triggered by a received Subscribe

2. Problem with expires raported in Notify message. There was a static
buffer used twice when building the extra headers for Notify leading to
expires parameter value always having last digits '70' (the value of
Max-Forwards).

7 years agocore: log message about dlflags from modules was made notice instead of warning
Daniel-Constantin Mierla [Wed, 2 May 2012 12:21:23 +0000 (14:21 +0200)]
core: log message about dlflags from modules was made notice instead of warning

7 years agoMakefile: version set to 3.3.0-pre1
Daniel-Constantin Mierla [Tue, 1 May 2012 22:37:51 +0000 (00:37 +0200)]
Makefile: version set to 3.3.0-pre1

- pre-release phase reflected in verson string

7 years agodialog(k): readme updated with latest params and functions
Daniel-Constantin Mierla [Tue, 1 May 2012 22:36:14 +0000 (00:36 +0200)]
dialog(k): readme updated with latest params and functions

- documented params ka_timer and ka_interval as well as function
  dlg_set_property(...)

7 years agomodules_k/rls: Fixed broken SQL query in RLS
Peter Dunkley [Tue, 1 May 2012 13:22:27 +0000 (14:22 +0100)]
modules_k/rls: Fixed broken SQL query in RLS

- Fix by Hugh Waite @ Crocodile RCS

7 years agocore: Made subst diagnostic message at startup INFO instead of ERR
Peter Dunkley [Tue, 1 May 2012 13:20:51 +0000 (14:20 +0100)]
core: Made subst diagnostic message at startup INFO instead of ERR

7 years agolib/srdb1/schema/lcr_rule.xml: upgraded version number
Juha Heinanen [Mon, 30 Apr 2012 20:24:19 +0000 (23:24 +0300)]
lib/srdb1/schema/lcr_rule.xml: upgraded version number

- When request_uri column was added, version number was not incremented
  in schema.

7 years agodialog(k): propagate internal flags from context to dlg structure
Daniel-Constantin Mierla [Sun, 29 Apr 2012 13:33:18 +0000 (15:33 +0200)]
dialog(k): propagate internal flags from context to dlg structure

- moved condition on DLG_STATE_CONFIRMED in request handling, as it is
  set for ACK processing - related to keep-alive initialization for dlg

7 years agoregistrar(k): realm prefix initialized to NULL instead of empty string
Daniel-Constantin Mierla [Sun, 29 Apr 2012 13:30:28 +0000 (15:30 +0200)]
registrar(k): realm prefix initialized to NULL instead of empty string

- it refers inside a cfg structure and might be the reason for sigbus on
  solaris/sparc
- anyhow, it avoids an strlen() over empty string, behaviour being the
  same as before

7 years agopkg/gentoo: Added ebuild v3.2.3
Claudio Furrer [Thu, 26 Apr 2012 21:52:31 +0000 (18:52 -0300)]
pkg/gentoo: Added ebuild v3.2.3

7 years agoacc: Improve grammar and stress non-existence of CDR database storage.
Timo Reimann [Wed, 25 Apr 2012 22:54:25 +0000 (00:54 +0200)]
acc: Improve grammar and stress non-existence of CDR database storage.

7 years agomodules/sipcapture: Fixed crash in case contact was "*"
Marius Zbihlei [Wed, 25 Apr 2012 11:54:31 +0000 (14:54 +0300)]
modules/sipcapture: Fixed crash in case contact was "*"
(cherry picked from commit 11ca33836fdd33d7c3d36c4f1acc6c6782edfb5d)

7 years agomodules_k/presence Safety check for malformed Subscribe
Anca Vamanu [Wed, 25 Apr 2012 11:55:54 +0000 (14:55 +0300)]
modules_k/presence Safety check for malformed Subscribe

Subscribe with header 'Contact: *' caused crash in presence.

7 years agomodules_k/rls: Updated to use new (start|end|abort)_transaction DB APIs instead of...
Peter Dunkley [Tue, 24 Apr 2012 09:58:22 +0000 (10:58 +0100)]
modules_k/rls: Updated to use new (start|end|abort)_transaction DB APIs instead of the original db_(begin|commit|rollback)

7 years agomodules/db_postgres: Added implementation of (start|end|abort)_transaction DB APIs
Peter Dunkley [Tue, 24 Apr 2012 09:53:24 +0000 (10:53 +0100)]
modules/db_postgres: Added implementation of (start|end|abort)_transaction DB APIs

7 years agolib/srdb1: Converted db_(begin|end|rollback) to proper DB API functions
Peter Dunkley [Tue, 24 Apr 2012 09:48:39 +0000 (10:48 +0100)]
lib/srdb1: Converted db_(begin|end|rollback) to proper DB API functions

7 years agomsilo(k): updated table version value to match db schema
Daniel-Constantin Mierla [Tue, 24 Apr 2012 08:19:34 +0000 (10:19 +0200)]
msilo(k): updated table version value to match db schema