sip-router
8 years agosdpops: use PV cache to lookup the parameter
Daniel-Constantin Mierla [Fri, 8 Jun 2012 20:47:21 +0000 (22:47 +0200)]
sdpops: use PV cache to lookup the parameter

- parsing PV names at runtime is a memory leak risk as PVs support
  dynamic names and allocate memory for them (applies for AVPs as well)
- don't add an avps with a string value pointing to NULL in case SDP is
  missing - potential risk of seg fault in very strict OSes as later
  there is a memcpy() to clone the value. Return -2 if there is no SDP

8 years agomqueue: use received sip msg if availabe instead of faked one
Daniel-Constantin Mierla [Fri, 8 Jun 2012 20:32:00 +0000 (22:32 +0200)]
mqueue: use received sip msg if availabe instead of faked one

- fake msg has meaningless attributes which may give different results
  to PVs than people expect when processing a real sip message

8 years agomodules/xmlrpc: got rid of unused variable
Juha Heinanen [Fri, 8 Jun 2012 20:15:46 +0000 (23:15 +0300)]
modules/xmlrpc: got rid of unused variable

8 years agomsg_translator.c: got rid of compiler warning
Juha Heinanen [Fri, 8 Jun 2012 20:10:43 +0000 (23:10 +0300)]
msg_translator.c: got rid of compiler warning

- Many more to go before 3.3 release.

8 years agopkg/deb Add lua to wheezy builds
Jon Bonilla [Fri, 8 Jun 2012 09:10:23 +0000 (11:10 +0200)]
pkg/deb Add lua to wheezy builds

Lua is back to wheezy thanks to Juha and Daniel

8 years agomodules/app_lua/Makefile: temporary fix for Debian Wheezy
Juha Heinanen [Thu, 7 Jun 2012 09:55:27 +0000 (12:55 +0300)]
modules/app_lua/Makefile:  temporary fix for Debian Wheezy

8 years agomodules_k/registrar Fixed memory leak in reg_fetch_contacts()
Anca Vamanu [Wed, 6 Jun 2012 12:49:57 +0000 (15:49 +0300)]
modules_k/registrar Fixed memory leak in reg_fetch_contacts()

8 years agosiputils: fix for is_gruu()
Daniel-Constantin Mierla [Tue, 5 Jun 2012 21:40:53 +0000 (23:40 +0200)]
siputils: fix for is_gruu()

- improper return code check resulted in wrong gruu detection when there
  was no uri parameter
- reported by Juha Heinanen, closes FS#235

8 years agomodules_k/path: Use single-quotes around received
Andreas Granig [Tue, 5 Jun 2012 12:31:04 +0000 (14:31 +0200)]
modules_k/path: Use single-quotes around received

For full RFC3261 compliance, use single-quoted "received" param
instead of double-quoted one.

8 years agoparser: Also support single-quoted URI params.
Andreas Granig [Tue, 5 Jun 2012 12:29:13 +0000 (14:29 +0200)]
parser: Also support single-quoted URI params.

RFC3261 only allows single-quoted params (no double-quoted
ones), however better support both.

8 years agopkg/kamailio/(centos|fedora): Tidied up a couple of issues in the BoxGrinder appliances
Peter Dunkley [Mon, 4 Jun 2012 14:31:36 +0000 (15:31 +0100)]
pkg/kamailio/(centos|fedora): Tidied up a couple of issues in the BoxGrinder appliances

8 years agopkg/kamailio/fedora: Updated .spec file to fix issue where some directories were...
Peter Dunkley [Mon, 4 Jun 2012 14:30:21 +0000 (15:30 +0100)]
pkg/kamailio/fedora: Updated .spec file to fix issue where some directories were left on uninstall

- Just needed a few %dir lines in the right place so that RPM knows
  to delete all of the Kamilio directories on uninstall.

8 years agoutils/kamctl: kamctl.sqlite not installed, kamctl.pgsql is installed (as kamctl.sqlit...
Peter Dunkley [Mon, 4 Jun 2012 11:58:56 +0000 (12:58 +0100)]
utils/kamctl: kamctl.sqlite not installed, kamctl.pgsql is installed (as kamctl.sqlite) instead

8 years agodispatcher(k): improved debug message
Daniel-Constantin Mierla [Mon, 4 Jun 2012 10:28:09 +0000 (12:28 +0200)]
dispatcher(k): improved debug message

- when hashing due to alg 7, print the string to be hased as well as the
  hash code for it

8 years agoapp_lua: explicit link against libm only of no pkg-config or lua-config is found
Daniel-Constantin Mierla [Mon, 4 Jun 2012 09:54:09 +0000 (11:54 +0200)]
app_lua: explicit link against libm only of no pkg-config or lua-config is found

- otherwise it appears two times in the libs linking string

8 years agoregistrar(k): moved realm prefix as first field in cfg registrar struct
Daniel-Constantin Mierla [Mon, 4 Jun 2012 09:40:11 +0000 (11:40 +0200)]
registrar(k): moved realm prefix as first field in cfg registrar struct

- added debug message to print the realm prefix

8 years agopkg/deb Remove mono build from Squeeze
Jon Bonilla [Mon, 4 Jun 2012 08:19:00 +0000 (10:19 +0200)]
pkg/deb Remove mono build from Squeeze

The module depends on Mono2.0 which is not
available in Squeeze.

8 years agopkg/kamialio/(centos|fedora): Tidied up some stuff in the Boxgrinder appliances
Peter Dunkley [Sat, 2 Jun 2012 20:40:13 +0000 (21:40 +0100)]
pkg/kamialio/(centos|fedora): Tidied up some stuff in the Boxgrinder appliances

8 years agopkg/kamailio/fedora/16: Updated .spec to require redhat-rpm-config for building
Peter Dunkley [Sat, 2 Jun 2012 19:25:38 +0000 (20:25 +0100)]
pkg/kamailio/fedora/16: Updated .spec to require redhat-rpm-config for building

- This is needed to get debuginfo RPMs to build automatically

8 years agopkg/kamailio/fedora/16: Updated Boxgrinder build appliance to install redhat-rpm...
Peter Dunkley [Sat, 2 Jun 2012 19:23:51 +0000 (20:23 +0100)]
pkg/kamailio/fedora/16: Updated Boxgrinder build appliance to install redhat-rpm-config

- This is needed to get debuginfo RPMs to build automatically

8 years agopkg/kamailio/centos/6: Updated Boxgrinder build appliance to install redhat-rpm-config
Peter Dunkley [Sat, 2 Jun 2012 19:22:50 +0000 (20:22 +0100)]
pkg/kamailio/centos/6: Updated Boxgrinder build appliance to install redhat-rpm-config

- This is needed to get debuginfo RPMs to build automatically

8 years agopkg/kamailio/fedora: Improvements to service script and .spec
Peter Dunkley [Fri, 1 Jun 2012 23:48:29 +0000 (00:48 +0100)]
pkg/kamailio/fedora: Improvements to service script and .spec

- systemd service script now deletes PID file and restarts Kamailio
  automatically if it fails due to an unhandled signal.
- Updated .spec to call "systemctl --system daemon-reload" after uninstall

8 years agopkg/kamailio/fedora: Changed directory structure a little and tweaked .spec for Fedora 17
Peter Dunkley [Fri, 1 Jun 2012 22:09:41 +0000 (23:09 +0100)]
pkg/kamailio/fedora: Changed directory structure a little and tweaked .spec for Fedora 17

8 years agomodules_k/presence: Fixed presence hard-state implementation
Peter Dunkley [Fri, 1 Jun 2012 10:50:17 +0000 (11:50 +0100)]
modules_k/presence: Fixed presence hard-state implementation

- Removed modparams added when I did this originally
- Hard-state is still "publish"ed to the presentity table (with expiry
  of -1)
- Removed exported function for updating hard-state presentity and
  added a new type to pres_refresh_watchers instead (also updated
  refreshWatchers MI command)
- Hard-state presentity now fetched using the event->get_pidf_doc()
  function instead of directly from the database
- Also fixed two bugs (from my notifier work) found during testing:
  - query_db_notify() sends NOTIFY requests immediately (instead of
    through notifier tasks)
  - segmentation fault in update_pw_dialogs_dbonlymode() when there
    are no matching dialogs

8 years agomodules_k/presence_xml: pidf-manipulation now fetched using event->get_pidf_doc()
Peter Dunkley [Fri, 1 Jun 2012 10:48:29 +0000 (11:48 +0100)]
modules_k/presence_xml: pidf-manipulation now fetched using event->get_pidf_doc()

- Part of the fix to the way presence hard-state works.
- Removed the, now unused, pidf_manipulation modparam

8 years agomodules_k/permissions: allow_trusted() doesn't work for HTTP requests
Peter Dunkley [Fri, 1 Jun 2012 10:37:21 +0000 (11:37 +0100)]
modules_k/permissions: allow_trusted() doesn't work for HTTP requests

- This is because HTTP requests don't have From: headers.
- Fixed by only checking From-URIs for SIP requests.

8 years agonathelper(k): remove maddr param in fix_nated_contact()
Daniel-Constantin Mierla [Fri, 1 Jun 2012 09:34:20 +0000 (11:34 +0200)]
nathelper(k): remove maddr param in fix_nated_contact()

- if maddr exists, it makes no sense anymore if the contact uri is
  changed by the proxy
- reported by Morten Isaksen

8 years agocore: Via parser allows generic parameters without value separated by white spaces...
Daniel-Constantin Mierla [Fri, 1 Jun 2012 07:06:33 +0000 (09:06 +0200)]
core: Via parser allows generic parameters without value separated by white spaces and semicolon

- reported by Iñaki Baz Castillo, closes FS#127

8 years agopkg/kamailio/centos/6: Replaced kamailio.spec with symbolic link to ../../fedora...
Peter Dunkley [Thu, 31 May 2012 22:11:21 +0000 (23:11 +0100)]
pkg/kamailio/centos/6: Replaced kamailio.spec with symbolic link to ../../fedora/fc16/kamailio.spec

8 years agopkg/kamailio/fedora/fc16: Updated .spec file to work for both Fedora 16 and CentOS 6
Peter Dunkley [Thu, 31 May 2012 22:10:23 +0000 (23:10 +0100)]
pkg/kamailio/fedora/fc16: Updated .spec file to work for both Fedora 16 and CentOS 6

- Also updated release number to pre3

8 years agousrloc(k): fix detection of usrloc callbacks
Daniel-Constantin Mierla [Thu, 31 May 2012 21:39:03 +0000 (23:39 +0200)]
usrloc(k): fix detection of usrloc callbacks

- proper check of ul callback types
- harmless, just a bit of performance gain, however, the code was
  mistaken

8 years agoapp_lua: don't use variable for lua version detection
Daniel-Constantin Mierla [Thu, 31 May 2012 20:22:19 +0000 (22:22 +0200)]
app_lua: don't use variable for lua version detection

- trying to see if this makes it work on debian wheezy, as the make
  command is re-exeuting in infinite loop of implicit rule

8 years agousrloc(k): option to check if contact DB UPDATE was successful
Daniel-Constantin Mierla [Thu, 31 May 2012 17:15:52 +0000 (19:15 +0200)]
usrloc(k): option to check if contact DB UPDATE was successful

- use DB API affected_rows() when available to detect if the DB UPDATE
  operation for a contact was successful, if not, do an INSERT instead
- behaviour controlled by parameter db_check_update, default is 0 (no
  check for affected rows and no insert -- backward compatible)
- closes items FS#41 and FS#226

8 years agoapp_lua: set libm dependency before internal SER_LIBS var
Daniel-Constantin Mierla [Thu, 31 May 2012 14:34:50 +0000 (16:34 +0200)]
app_lua: set libm dependency before internal SER_LIBS var

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

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

8 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

8 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

8 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

8 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

8 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

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

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

8 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

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

8 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

8 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

8 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

8 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

8 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

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

8 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

8 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

8 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

8 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

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

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

8 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

8 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

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

8 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

8 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

8 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

8 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

8 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

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

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

8 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

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

8 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

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

8 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

8 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

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

8 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

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

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

8 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

8 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

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

8 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

8 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

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

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

8 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

8 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

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

8 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

8 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

8 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

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

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

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