9 years ago.gitingnore: set root path for binary names
Daniel-Constantin Mierla [Mon, 1 Aug 2011 12:33:15 +0000 (14:33 +0200)]
.gitingnore: set root path for binary names

- some directories containing the binary name (e.g., kamailio like in
  utils/kamctl/dbtext/kamailio/...) in path were ignored. Updated
  .gitignore to use /kamailio and /ser which according to manual should
  match on the root folder of GIT tree

9 years agoipops: Added function is_ip_rfc1918(ip) for detecting private IPv4 according to RFC...
Iñaki Baz Castillo [Mon, 1 Aug 2011 10:21:44 +0000 (12:21 +0200)]
ipops: Added function is_ip_rfc1918(ip) for detecting private IPv4 according to RFC 1918.

9 years agolib/srdb1/schema: removed index that included missing columns
Juha Heinanen [Sun, 31 Jul 2011 16:04:43 +0000 (19:04 +0300)]
lib/srdb1/schema: removed index that included missing columns

9 years agocore: removing SQL buffer size stuff from doc/cfg_list/docbook/cfg_core.xml
pd [Fri, 29 Jul 2011 11:19:10 +0000 (12:19 +0100)]
core: removing SQL buffer size stuff from doc/cfg_list/docbook/cfg_core.xml

9 years agomodule_k/xcap_server: Added support HTTP 1.1 pre-conditions (If-Match: and If-None...
pd [Fri, 29 Jul 2011 10:56:14 +0000 (11:56 +0100)]
module_k/xcap_server: Added support HTTP 1.1 pre-conditions (If-Match: and If-None-Match:)

- Also fixed the ETag: header send by xcap_server as it should be a
  quoted-string (RFC 2616 section 3.11 and 14.19).
- If-Match (RFC 2616 section 14.24) and If-None-Match (RFC 2616
  section 14.26) are supported for the DELETE, GET, and PUT HTTP

  This feature is useful as it enables clients to cache large XML
  documents (user-profiles/avatars/resource-lists) and only have to
  download them when they have actually changed (using If-None-Match:)

  If-Match: can help with the race conditions present when you have
  multiple simultaneous logins by helping to prevent clients from
  overwriting changes made by other clients.

9 years agoMerge branch 'master' into pd
pd [Fri, 29 Jul 2011 10:44:56 +0000 (11:44 +0100)]
Merge branch 'master' into pd

* master:
  core: fix all reported doxygen errors in PV and value evaluation code
  tls: restrict visibility of 4 only internal used functions to the module
  tls: two small code cleanups
  tls: fix all doxygen errors, extend existing documentation in touched files

9 years agocore: fix all reported doxygen errors in PV and value evaluation code
Henning Westerholt [Thu, 28 Jul 2011 21:58:00 +0000 (23:58 +0200)]
core: fix all reported doxygen errors in PV and value evaluation code

9 years agotls: restrict visibility of 4 only internal used functions to the module
Henning Westerholt [Thu, 28 Jul 2011 20:29:30 +0000 (22:29 +0200)]
tls: restrict visibility of 4 only internal used functions to the module

9 years agotls: two small code cleanups
Henning Westerholt [Thu, 28 Jul 2011 20:26:24 +0000 (22:26 +0200)]
tls: two small code cleanups

9 years agotls: fix all doxygen errors, extend existing documentation in touched files
Henning Westerholt [Thu, 28 Jul 2011 20:24:11 +0000 (22:24 +0200)]
tls: fix all doxygen errors, extend existing documentation in touched files

9 years agomodules_k/xcap_server: Improved rls_update_subs() example in README
pd [Thu, 28 Jul 2011 14:38:04 +0000 (15:38 +0100)]
modules_k/xcap_server: Improved rls_update_subs() example in README

9 years agomodules_k/rls: Added a new exported function: rls_update_subs()
pd [Thu, 28 Jul 2011 11:41:07 +0000 (12:41 +0100)]
modules_k/rls: Added a new exported function: rls_update_subs()

- This new function can be called from the Kamailio configuration file
  to force the RLS module to refresh its back-end subscriptions.

  This is particularly useful when the resource list has changed (for
  example, a new contact has been added) as it will create a new back-
  end subscriptions when required.

  This means that when you add a new contact in a client the uses RLS
  the added contact can be immediately subscribed to and will get an
  authorisation request.
- Sample usage:

  case "PUT":
    xcaps_put("$var(uri)", "$var(doc_uri)", "$rb");
    if($xcapuri(u=>auid)=~"pres-rules") {
      pres_update_watchers("$var(uri)", "presence");
      pres_refresh_watchers("$var(uri)", "presence", 1);
    } else if ($xcapuri(u=>auid)=~"resource-lists"
               || $xcapuri(u=>auid)=~"rls-services") {
      rls_update_subs("$var(uri)", "presence");

9 years agomodule_k/rls: Added support for resource-list indices.
pd [Thu, 28 Jul 2011 11:35:03 +0000 (12:35 +0100)]
module_k/rls: Added support for resource-list indices.

- That is, support for resource lists that contain references to
  other resource lists.
- This is needed for OMA/RCS compliance.
- Implementation only works with integrated XCAP.

9 years agoMerge branch 'master' into pd
pd [Thu, 28 Jul 2011 11:22:27 +0000 (12:22 +0100)]
Merge branch 'master' into pd

* master:
  textops(k): internal API bind function exported via module interface
  modules_k/xcap_server: increased maximum size of XCAP URI to 255
  doxygen documentation fixes
  core: allow forcing send socket for replies
  alias_db(k): rephrase documentation a bit to make it hopefully better understandable

9 years agotextops(k): internal API bind function exported via module interface
Daniel-Constantin Mierla [Thu, 28 Jul 2011 11:18:11 +0000 (13:18 +0200)]
textops(k): internal API bind function exported via module interface

- internal API was defined but no function to bind it was available in
  the module interface, reported by Timo Klecker
- rename of functions and typedef'ed struct to match the patterns of
  exporting modules internal API

9 years agomodules_k/xcap_server: increased maximum size of XCAP URI to 255
pd [Thu, 28 Jul 2011 11:15:25 +0000 (12:15 +0100)]
modules_k/xcap_server: increased maximum size of XCAP URI to 255

- The current length (127) is insufficient for some XCAP requests
  I have seen - particularly those for avatars (preseImage).

9 years agodoxygen documentation fixes
Henning Westerholt [Wed, 27 Jul 2011 22:22:09 +0000 (00:22 +0200)]
doxygen documentation fixes

9 years agocore: allow forcing send socket for replies
Daniel-Constantin Mierla [Wed, 27 Jul 2011 17:34:35 +0000 (19:34 +0200)]
core: allow forcing send socket for replies

- patch by Marcus Hunger, closes FS#142

9 years agoalias_db(k): rephrase documentation a bit to make it hopefully better understandable
Henning Westerholt [Wed, 27 Jul 2011 15:29:14 +0000 (17:29 +0200)]
alias_db(k): rephrase documentation a bit to make it hopefully better understandable

9 years agosrdb1, modules_k/presence_xml, modules_k/xcap_server: Updated xcap table version...
pd [Wed, 27 Jul 2011 13:44:39 +0000 (14:44 +0100)]
srdb1, modules_k/presence_xml, modules_k/xcap_server: Updated xcap table version from 3 to 4

- Also fixed a merge issue where I copied the PostgreSQL version of
  presence-create.sql over the MySQL one.

9 years agosrdb1: Fixed merge error made in commit 8623eeb1c2762d299cd88e0b7bc8d8fdb8fa2a72
pd [Wed, 27 Jul 2011 12:49:50 +0000 (13:49 +0100)]
srdb1: Fixed merge error made in commit 8623eeb1c2762d299cd88e0b7bc8d8fdb8fa2a72

- When copying utils/kamctl/mysql/siptrace-create.sql from my local SVN I accidently
  copied across utils/kamctl/postgres/siptrace-create.sql.

9 years agosrdb1: Added support for logging of messages > 64k in sip_trace with MySQL
pd [Wed, 27 Jul 2011 11:18:05 +0000 (12:18 +0100)]
srdb1: Added support for logging of messages > 64k in sip_trace with MySQL

- Some SIP requests - especially full-state NOTIFYs for large resource
  losts - can easily exceed 64k.
- This change makes MySQL use the mediumtext type for message contents.
- Feature added by Andrew Miller at Crocodile RCS

9 years agosrdb1, modules_k/xcap_server: Added support for XML documents larger than 64k in...
pd [Wed, 27 Jul 2011 11:13:25 +0000 (12:13 +0100)]
srdb1, modules_k/xcap_server: Added support for XML documents larger than 64k in MySQL

- It is easily possible for some XML documents (particularly resource lists
  used as a Network Address Book) to exceed 64k in size.
- Feature added by Andrew Miller at Crocodile RCS

9 years agocore, srdb1, modules/db_*, modules_k/db_*: Added support for configuring SQL buffer...
pd [Wed, 27 Jul 2011 10:50:20 +0000 (11:50 +0100)]
core, srdb1, modules/db_*, modules_k/db_*: Added support for configuring SQL buffer size and mediumblob/mediumtext in MySQL

- Currently the SQL buffer size is hard-coded to 64k.  This isn't
  enough in some cases.  For example, it is easily possible for
  resource lists (which can be Network Address Books) to be larger
  than 64k.
- The default buffer size is still 64k, but this can be overriden
  with the new "sql_buffer_size" configuration option.
- Support added for mediumblob/mediumtext in MySQL as the blob/text
  types that are currently supported are limited to 64k.
- Feature added by Andrew Miller at Crocodile RCS

9 years agocore: support for receiving requests > 64kb on TCP
pd [Mon, 25 Jul 2011 09:53:10 +0000 (10:53 +0100)]
core: support for receiving requests > 64kb on TCP

- Issue found and fixed by Andrew Miller at Crocodile RCS

9 years agomodules/tm: Added support for requests > 32 kb over TCP
pd [Mon, 25 Jul 2011 09:50:38 +0000 (10:50 +0100)]
modules/tm: Added support for requests > 32 kb over TCP

- Issue found and fixed by Andrew Miller at Crocodile RCS

9 years agomodules_k/pv: Add s.sql transformation to turn PV into suitable SQL value.
Alex Hermann [Thu, 21 Jul 2011 13:24:09 +0000 (15:24 +0200)]
modules_k/pv: Add s.sql transformation to turn PV into suitable SQL value.

This transformation outputs valid SQL values for various PV values:
 - <null> values are output as NULL
 - integers are output as integers
 - everything else is output as quoted and escaped string

$var(null) = $null;
$avp(null) = $null;
$avp(str) = "String with \ illegal \\characters";
$avp(nr) = 12345;
$avp(strnr) = "12345";

xlog("$$rm = $rm = $(rm{s.sql})");
xlog("$$var(null) = $var(null) = $(var(null){s.sql})");
xlog("$$avp(null) = $avp(null) = $(avp(null){s.sql})");
xlog("$$avp(str) = $avp(str) = $(avp(str){s.sql})");
xlog("$$avp(nr) = $avp(nr) = $(avp(nr){s.sql})");
xlog("$$avp(strnr) = $avp(strnr) = $(avp(strnr){s.sql})");

$rm = ACK = 'ACK'
$var(null) = 0 = 0
$avp(null) = <null> = NULL
$avp(str) = String with \ illegal \characters = 'String with \\ illegal \\characters'
$avp(nr) = 12345 = 12345
$avp(strnr) = 12345 = '12345'

9 years agomodules_k/nathelper: Add is_rfc1918(ip_addr) function to test ip_addr for rfc1918addr...
Alex Hermann [Tue, 19 Jul 2011 13:24:11 +0000 (15:24 +0200)]
modules_k/nathelper: Add is_rfc1918(ip_addr) function to test ip_addr for rfc1918addresses.

9 years agomodules_k/uac: Add reg_request_to function
Alex Hermann [Fri, 10 Jun 2011 11:00:20 +0000 (13:00 +0200)]
modules_k/uac: Add reg_request_to function

This function will lookup a local user from the registration table and
prepares mesasage variables so the request can be sent to the remote
user, providing authentiction via uac_auth().

9 years agomodules_k/uac: fix reg_ht_get_byuser when domain is not used.
Alex Hermann [Fri, 3 Jun 2011 14:12:19 +0000 (16:12 +0200)]
modules_k/uac: fix reg_ht_get_byuser when domain is not used.

9 years agocore: Add fixup_pvar_uint helper function
Alex Hermann [Fri, 10 Jun 2011 10:56:11 +0000 (12:56 +0200)]
core: Add fixup_pvar_uint helper function

9 years agomodules_k/uac: Allow all type of PV's for uac auth_*_avp instead of just AVP's
Alex Hermann [Fri, 3 Jun 2011 10:24:12 +0000 (12:24 +0200)]
modules_k/uac: Allow all type of PV's for uac auth_*_avp instead of just AVP's

Keep the parameter names as *_avp to keep backwards compatibility even though the
names make no sense anymore.

9 years agocore: Allow SUBST in include_file and import_file.
Alex Hermann [Thu, 16 Jun 2011 14:01:33 +0000 (16:01 +0200)]
core: Allow SUBST in include_file and import_file.

9 years agodoxygen comment fixes (escapes, missing parameters, syntax errors) all over the place
Henning Westerholt [Fri, 22 Jul 2011 07:23:18 +0000 (09:23 +0200)]
doxygen comment fixes (escapes, missing parameters, syntax errors) all over the place

9 years agoxcap_server(k): Added support for the auid.
pd [Thu, 21 Jul 2011 14:28:42 +0000 (15:28 +0100)]
xcap_server(k): Added support for the auid.

- This update does not perform searches, it just modifies XCAP so that it
  recognises and decodes the search auid correctly and doesn't report an
  error when one arrives.

  The mandatory target and optional domains parameters are decoded into new
  keys within the xcapuri pseudo-variable.

  Unlike other XCAP requests the auid is only
  used within HTTP POSTs - so if using this kamailio.cfg should be updated to
  handle these.

9 years agopua(k): added new modparam check_remote_contact
pd [Thu, 21 Jul 2011 14:04:23 +0000 (15:04 +0100)]
pua(k): added new modparam check_remote_contact

- This defaults to 1 (current behaviour), but when set to 0 means that the pua
  module won't check that the remote contact matches when finding a dialog in
  the hash table.

  This is very important as when the initial SUBSCRIBE is created for an RLS to
  Presence dialog the remote contact will be set to the R-URI of the SUBSCRIBE.
  However, subsequent requests within the dialog need to use the remote contact
  as provided by the far end as the R-URI.

  This meant that re-SUBSCRIBEs from RLS to Presence get treated as new dialog
  forming requests and causes lots of extra entries in the pua and
  active_watchers tables.

9 years agopdt(k): made the "bad parameters" diagnostic in pdt_get_domain INFO
pd [Thu, 21 Jul 2011 14:01:00 +0000 (15:01 +0100)]
pdt(k): made the "bad parameters" diagnostic in pdt_get_domain INFO

- I observed this message a few times while playing around with PDT.  It isn't
  really an error as it occurs when sdomain is NULL and sdomain does not have
  to be set at all.  Changed it to INFO for now.

9 years agodispatcher(k): changed the diagnostic about no sets being defined to debug
pd [Thu, 21 Jul 2011 13:54:34 +0000 (14:54 +0100)]
dispatcher(k): changed the diagnostic about no sets being defined to debug

- This is currently an error.  It's not an error that you don't have any sets,
  it just means you haven't created any yet.

9 years agopua(k): increased the size of pres_id in the database table
pd [Thu, 21 Jul 2011 13:48:10 +0000 (14:48 +0100)]
pua(k): increased the size of pres_id in the database table

- the pua pres_id table field is used as the subsid in rls.  The pres_id
  was originally a 64 character field, but an rls subsid (consisting of
  Call-ID, To tag, and From tag) can easily exceed this.

9 years agopresence(k): removed mistakenly typed } before the previous commit
Daniel-Constantin Mierla [Thu, 21 Jul 2011 06:07:22 +0000 (08:07 +0200)]
presence(k): removed mistakenly typed } before the previous commit

9 years agopresence(k): insert empty string as sender in db if missing
Daniel-Constantin Mierla [Wed, 20 Jul 2011 22:31:49 +0000 (00:31 +0200)]
presence(k): insert empty string as sender in db if missing

- if sender_uri parameter is not given to handle_publish(), insert empty
  string for sender column in presentity table
- the field is used for SLA/BLA
- fixes constraint of non-null value in db table, reported by Roberto

9 years agopresence(k): log message abour not supported event printed as warning
Daniel-Constantin Mierla [Wed, 20 Jul 2011 22:08:42 +0000 (00:08 +0200)]
presence(k): log message abour not supported event printed as warning

9 years agocore, counters mod: fix a bunch of doxygen errors, small whitespace fix
Henning Westerholt [Wed, 20 Jul 2011 22:11:09 +0000 (00:11 +0200)]
core, counters mod: fix a bunch of doxygen errors, small whitespace fix

9 years agokamdbctl: added pipelimit to the list of extra tables to create
Daniel-Constantin Mierla [Wed, 20 Jul 2011 21:42:05 +0000 (23:42 +0200)]
kamdbctl: added pipelimit to the list of extra tables to create

9 years agokamctl: added scripts to create pl_pipes table
Daniel-Constantin Mierla [Wed, 20 Jul 2011 21:38:51 +0000 (23:38 +0200)]
kamctl: added scripts to create pl_pipes table

9 years agosrdb1: added definition of pipelimit module db table
Daniel-Constantin Mierla [Wed, 20 Jul 2011 21:35:01 +0000 (23:35 +0200)]
srdb1: added definition of pipelimit module db table

9 years agocore: small doxygen fix, synchronize a few function definitions with declarations
Henning Westerholt [Wed, 20 Jul 2011 20:49:21 +0000 (22:49 +0200)]
core: small doxygen fix, synchronize a few function definitions with declarations

9 years agocore: doxygen documentation for F_MALLOC memory manager
Henning Westerholt [Wed, 20 Jul 2011 20:36:41 +0000 (22:36 +0200)]
core: doxygen documentation for F_MALLOC memory manager

9 years agocore: remove commented out ROUNDUP macro (2002) and big_hash_idx() (2007)
Henning Westerholt [Wed, 20 Jul 2011 19:34:14 +0000 (21:34 +0200)]
core: remove commented out ROUNDUP macro (2002) and big_hash_idx() (2007)

9 years agofixed issue regarding caching presentity information when in DB_ONLY mode
Marius Bucur [Wed, 20 Jul 2011 17:27:51 +0000 (20:27 +0300)]
fixed issue regarding caching presentity information when in DB_ONLY mode

9 years agoAdd new db option and improve connect mechanism.
Andreas Granig [Wed, 20 Jul 2011 13:54:21 +0000 (15:54 +0200)]
Add new db option and improve connect mechanism.

Add "db" option to "server" parameter to select the redis db number.
Set 1 sec timeout when connecting to redis server.
Perform "PING" to verify newly created redis connection.

9 years agotm: be sure branch PV is set when t_check_trans() is used for reply
Daniel-Constantin Mierla [Tue, 19 Jul 2011 17:41:20 +0000 (19:41 +0200)]
tm: be sure branch PV is set when t_check_trans() is used for reply

- reported by Alex Hermann, FS#117

9 years agomqueue: decrease number of items when size limit is reached
Elena-Ramona Modroiu [Tue, 19 Jul 2011 07:46:35 +0000 (09:46 +0200)]
mqueue: decrease number of items when size limit is reached

- proper counting of intems in the queue
- patch by Denis Chukhryaev

9 years agopv: use suip2a(...) for $snd(..)
Daniel-Constantin Mierla [Mon, 18 Jul 2011 20:37:07 +0000 (22:37 +0200)]
pv: use suip2a(...) for $snd(..)

- fixes FS#140, reported by Klaus Darilion

9 years agocore: new function to get IP address from su structure
Daniel-Constantin Mierla [Mon, 18 Jul 2011 20:34:47 +0000 (22:34 +0200)]
core: new function to get IP address from su structure

- suip2a(...) returns zero-terminated string representation of IPv4/IPv6

9 years agomi_datagram: don't delete unixsock file in cfg check mode
Daniel-Constantin Mierla [Sun, 17 Jul 2011 07:55:13 +0000 (09:55 +0200)]
mi_datagram: don't delete unixsock file in cfg check mode

9 years agomi_fifo: don't delete fifo file in cfg check mode
Daniel-Constantin Mierla [Sun, 17 Jul 2011 07:54:32 +0000 (09:54 +0200)]
mi_fifo: don't delete fifo file in cfg check mode

9 years agoapp_python: provide a clone string to dirname and basename
Daniel-Constantin Mierla [Sat, 16 Jul 2011 22:28:26 +0000 (00:28 +0200)]
app_python: provide a clone string to dirname and basename

- script name value is cloned before execution of dirname and basename
  since they may modify the parameter
- reported by Arnaud Chong, FS#137

9 years agoapp_python: fixed compile warning
Daniel-Constantin Mierla [Sat, 16 Jul 2011 22:17:58 +0000 (00:17 +0200)]
app_python: fixed compile warning

- warning: dereferencing type-punned pointer will break strict-aliasing

9 years agocore: exit if addstr() cannot get pkg memory
Daniel-Constantin Mierla [Sat, 16 Jul 2011 21:24:42 +0000 (23:24 +0200)]
core: exit if addstr() cannot get pkg memory

- if parsing config file has no enough pkg memory do exit(-1) instead of
  returning null pointer, makes no sense to continue and there are no
  safety checks for the return of addstr(), causing crash anyhow

9 years agodb_mysql: fixed build on Solaris
Jason Penton [Sat, 16 Jul 2011 08:13:14 +0000 (10:13 +0200)]
db_mysql: fixed build on Solaris

- Added preporcessor defs to avoid adding macro which breaks compile on Solaris

9 years agocore: adjusted debug message for #!define
Daniel-Constantin Mierla [Fri, 15 Jul 2011 20:55:06 +0000 (22:55 +0200)]
core: adjusted debug message for #!define

9 years agocore: control pv buffer size by core parameters
Daniel-Constantin Mierla [Fri, 15 Jul 2011 19:55:33 +0000 (21:55 +0200)]
core: control pv buffer size by core parameters

- pv_buffer_size - size in bytes for internal PV buffer (default 1024)
- pv_buffer_slots - home many internal PV buffers (default 10)

9 years agocore: reinit PV buffer after config parsing
Daniel-Constantin Mierla [Fri, 15 Jul 2011 14:55:45 +0000 (16:55 +0200)]
core: reinit PV buffer after config parsing

- the size of the buffer may have been updated by parameters

9 years agocore: use PV api buffers for mod fixup
Daniel-Constantin Mierla [Fri, 15 Jul 2011 14:42:21 +0000 (16:42 +0200)]
core: use PV api buffers for mod fixup

- functions to get the values from mod fixup structures use now the
  buffers from PV api

9 years agocore: exported internal static buffer through PV API
Daniel-Constantin Mierla [Fri, 15 Jul 2011 14:35:15 +0000 (16:35 +0200)]
core: exported internal static buffer through PV API

- access to the static buffers used to print dynamic strings with PVs
  can be accessed via PV api

9 years agocore: renamed pvapi_init.h to pvapi.h
Daniel-Constantin Mierla [Fri, 15 Jul 2011 13:43:35 +0000 (15:43 +0200)]
core: renamed pvapi_init.h to pvapi.h

9 years agoMakefile: added ndb_redis in excluded_modules
Daniel-Constantin Mierla [Fri, 15 Jul 2011 13:06:30 +0000 (15:06 +0200)]
Makefile: added ndb_redis in excluded_modules

9 years agomem: small def./decl. fix for a bunch of internal functions, use void argument
Henning Westerholt [Wed, 13 Jul 2011 22:16:38 +0000 (00:16 +0200)]
mem: small def./decl. fix for a bunch of internal functions, use void argument

9 years agomem: initial doxygen documentation for MM, small whitespace changes
Henning Westerholt [Wed, 13 Jul 2011 22:11:48 +0000 (00:11 +0200)]
mem: initial doxygen documentation for MM, small whitespace changes

9 years agokex: some doxygen docs, a few whitespace changes
Henning Westerholt [Wed, 13 Jul 2011 21:49:28 +0000 (23:49 +0200)]
kex: some doxygen docs, a few whitespace changes

9 years agondb_redis: clean up previous redis reply
Daniel-Constantin Mierla [Mon, 11 Jul 2011 11:18:40 +0000 (13:18 +0200)]
ndb_redis: clean up previous redis reply

9 years agondb_redis: added module documentation
Daniel-Constantin Mierla [Mon, 11 Jul 2011 11:14:29 +0000 (13:14 +0200)]
ndb_redis: added module documentation

9 years agonew modules: ndb_redis - connector to redis server
Daniel-Constantin Mierla [Mon, 11 Jul 2011 10:07:35 +0000 (12:07 +0200)]
new modules: ndb_redis - connector to redis server

- redis - nosql database engine
- uses hiredis library
- exports function to send commands to redis and a new pseudo-variable
  class to access the reply: $redis(key)

9 years agotm: remove two dlg related files which are not used and don't contain real code
Henning Westerholt [Wed, 6 Jul 2011 21:48:44 +0000 (23:48 +0200)]
tm: remove two dlg related files which are not used and don't contain real code

9 years agopv: new pv $rz returns r-uri scheme
Daniel-Constantin Mierla [Wed, 6 Jul 2011 21:17:30 +0000 (23:17 +0200)]
pv: new pv $rz returns r-uri scheme

- possible values: sip, sips, tel and tels
- r-uri scheme parsing error should be reflected by value: none

9 years agocore: typedef'ed struct sip_uri to sip_uri_t
Daniel-Constantin Mierla [Wed, 6 Jul 2011 21:16:49 +0000 (23:16 +0200)]
core: typedef'ed struct sip_uri to sip_uri_t

9 years agopresence(k): switch to terminated status if no longer active
Daniel-Constantin Mierla [Wed, 6 Jul 2011 17:39:36 +0000 (19:39 +0200)]
presence(k): switch to terminated status if no longer active

- if contact is removed via xcap, making the status different than
  active, set it to terminated states
- patch by Laura Testi, FS#133

9 years agocore: added #!substdefs
Daniel-Constantin Mierla [Wed, 6 Jul 2011 13:17:12 +0000 (15:17 +0200)]
core: added #!substdefs

- similar to substdef but the defined value will be enclosed in double

9 years agoutils: fix kamctl start if installed in a custom prefix, tested from Fabian Borot
Henning Westerholt [Wed, 6 Jul 2011 16:26:16 +0000 (18:26 +0200)]
utils: fix kamctl start if installed in a custom prefix, tested from Fabian Borot

9 years agotm: delete obselete uri2sock function, its not compiled since almost 5 years
Henning Westerholt [Tue, 5 Jul 2011 21:50:10 +0000 (23:50 +0200)]
tm: delete obselete uri2sock function, its not compiled since almost 5 years

9 years agotm, tmx: move small redundant skip_hf macro to ut.h
Henning Westerholt [Tue, 5 Jul 2011 21:44:11 +0000 (23:44 +0200)]
tm, tmx: move small redundant skip_hf macro to ut.h

- move small redundant skip_hf macro in in tm and tmx to tm/ut.h file
- this header is already included from the callers
- rename macro to a bit more descriptive name, no other changes

9 years agocore: move redundant and identical implementation of a str_list type to core
Henning Westerholt [Tue, 5 Jul 2011 21:38:13 +0000 (23:38 +0200)]
core: move redundant and identical implementation of a str_list type to core

- move redundant str_list and new_str implementations from tm and tmx to core
- rename new_str to a more descriptive append_str_list, no interface changes
- fix callers in tm and tmx
- add doxygen documentation

9 years agocore: small spelling fix and cleanup in doxygen docs
Henning Westerholt [Tue, 5 Jul 2011 21:34:41 +0000 (23:34 +0200)]
core: small spelling fix and cleanup in doxygen docs

9 years agocore: new preprocessor directives: trydef and redef
Daniel-Constantin Mierla [Tue, 5 Jul 2011 21:45:14 +0000 (23:45 +0200)]
core: new preprocessor directives: trydef and redef

- #!trydef - don't define if it is already done
- #!redef - redefine even already defined
- both have the prototype like #!define

9 years agocore: allow #! or !! in front of include_file and import_file
Daniel-Constantin Mierla [Tue, 5 Jul 2011 07:20:59 +0000 (09:20 +0200)]
core: allow #! or !! in front of include_file and import_file

- import_file and include_file can have the same syntax as preprocessor

9 years agocore: added import_file
Daniel-Constantin Mierla [Tue, 5 Jul 2011 07:15:34 +0000 (09:15 +0200)]
core: added import_file

- import_file is similar to include_file but does not throws error if
  the file is not found:
- example: import_file "myfile.cfg"

9 years agotm: deactivate compilation for not used test function _test_insert_to_reply
Henning Westerholt [Mon, 4 Jul 2011 22:21:39 +0000 (00:21 +0200)]
tm: deactivate compilation for not used test function _test_insert_to_reply

9 years agotm: proper definition for tm_init_timers, one small whitespace fix
Henning Westerholt [Mon, 4 Jul 2011 22:20:35 +0000 (00:20 +0200)]
tm: proper definition for tm_init_timers, one small whitespace fix

9 years agotm: initial round of doxygen documentation for timer.[h,c] - tbc
Henning Westerholt [Mon, 4 Jul 2011 22:17:11 +0000 (00:17 +0200)]
tm: initial round of doxygen documentation for timer.[h,c] - tbc

9 years agotm: restrict callid_suffix and callid_prefix visibility to module, not used outside
Henning Westerholt [Mon, 4 Jul 2011 21:47:25 +0000 (23:47 +0200)]
tm: restrict callid_suffix and callid_prefix visibility to module, not used outside

9 years agotm: add doxygen docs to callid.[c,h]
Henning Westerholt [Mon, 4 Jul 2011 21:43:00 +0000 (23:43 +0200)]
tm: add doxygen docs to callid.[c,h]

9 years agosrdb1: regenerated db creation scripts
Daniel-Constantin Mierla [Mon, 4 Jul 2011 20:07:20 +0000 (22:07 +0200)]
srdb1: regenerated db creation scripts

9 years agosrdb1: entities files updated for callid_len and default cseq value
Daniel-Constantin Mierla [Mon, 4 Jul 2011 20:04:29 +0000 (22:04 +0200)]
srdb1: entities files updated for callid_len and default cseq value

9 years agosrdb1: added callid_len entity
Daniel-Constantin Mierla [Mon, 4 Jul 2011 20:02:19 +0000 (22:02 +0200)]
srdb1: added callid_len entity

- used for size of callid columns across tables
- set to 255

9 years agoversion set to 3.2.0-dev6
Daniel-Constantin Mierla [Mon, 4 Jul 2011 20:01:45 +0000 (22:01 +0200)]
version set to 3.2.0-dev6

9 years agotm: add doxygen documentation for sip_msg.[c,h] files
Henning Westerholt [Sun, 3 Jul 2011 22:40:21 +0000 (00:40 +0200)]
tm: add doxygen documentation for sip_msg.[c,h] files

9 years agotm: remove #ifdef POSTPONE_MSG_CLONING, its default for three years now
Henning Westerholt [Sun, 3 Jul 2011 22:07:45 +0000 (00:07 +0200)]
tm: remove #ifdef POSTPONE_MSG_CLONING, its default for three years now

- remove POSTPONE_MSG_CLONING define from tm module
- its now the default for more than three years
- control flow in the module without it is better understandable
- the current way is the expected behavior, also recently discussed on the list

9 years agodoxygen: small doc fix in parser
Henning Westerholt [Sun, 3 Jul 2011 19:50:04 +0000 (21:50 +0200)]
doxygen: small doc fix in parser

9 years agotmx: doxumented t_suspend() and t_continue()
Daniel-Constantin Mierla [Sun, 3 Jul 2011 13:32:42 +0000 (15:32 +0200)]
tmx: doxumented t_suspend() and t_continue()