sip-router
8 years agoMerge remote branch 'origin/misi/ua-profile'
Mészáros Mihály [Thu, 17 Nov 2011 13:02:56 +0000 (14:02 +0100)]
Merge remote branch 'origin/misi/ua-profile'

* origin/misi/ua-profile:
  modules_k/presence_profile: new modul for basic ua-profile event support
  parser: added ua-profile event type

8 years agocore: at shutdown, first call the destroy module functions then free module exports...
Daniel-Constantin Mierla [Wed, 16 Nov 2011 06:50:42 +0000 (07:50 +0100)]
core: at shutdown, first call the destroy module functions then free module exports structure

- some modules may need access to other modules at shut down
- reported by Juha Heinanen

8 years agondb_redis: docs update - server parameter type is string
Daniel-Constantin Mierla [Tue, 15 Nov 2011 08:27:46 +0000 (09:27 +0100)]
ndb_redis: docs update - server parameter type is string

- more details to server parameters to show that many redis servers can
  be used

8 years agoMakefile: dev version increased to 3.3.0-dev2
Daniel-Constantin Mierla [Mon, 14 Nov 2011 21:43:28 +0000 (22:43 +0100)]
Makefile: dev version increased to 3.3.0-dev2

8 years agoauth: new function auth_challenge()
Daniel-Constantin Mierla [Mon, 14 Nov 2011 21:39:24 +0000 (22:39 +0100)]
auth: new function auth_challenge()

- combines www_challenge() and proxy_challenge() by calling the first
  for REGISTER and the second for the rest of request types
- it is usefull to simplify the config file for default auth handling

8 years agoauth_db(k): new function auth_check()
Daniel-Constantin Mierla [Mon, 14 Nov 2011 21:09:19 +0000 (22:09 +0100)]
auth_db(k): new function auth_check()

- the function offers www/proxy_authenticate() behaviour by using first
  for REGISTER and the second for the other requests
- it can check auth user against from/to user
- should simplify the config file for the common user authentication
  scenario

8 years agoauth: added new error code to auth API
Daniel-Constantin Mierla [Mon, 14 Nov 2011 21:07:50 +0000 (22:07 +0100)]
auth: added new error code to auth API

- AUTH_USER_MISMATCH = -8 -- to be returned when auth user mistmach
  from/to header user

8 years agopua: fixed wrong docbook tag name
Daniel-Constantin Mierla [Mon, 14 Nov 2011 21:07:08 +0000 (22:07 +0100)]
pua: fixed wrong docbook tag name

8 years agoMakefile: add xhttp_rpc module to kstandard
Ovidiu Sas [Mon, 14 Nov 2011 17:20:11 +0000 (12:20 -0500)]
Makefile: add xhttp_rpc module to kstandard

8 years agoxhttp_rpc: new module providing a web interface for RPC management interface
Ovidiu Sas [Fri, 11 Nov 2011 23:54:15 +0000 (18:54 -0500)]
xhttp_rpc: new module providing a web interface for RPC management interface

8 years agodialog(k): Remove warning in docs regarding usage of stateless replies
Timo Reimann [Tue, 8 Nov 2011 22:46:37 +0000 (23:46 +0100)]
dialog(k): Remove warning in docs regarding usage of stateless replies
(resolved by now).

8 years agodialog(k): Use correct logical operation to enable DLG_FLAG_CHANGED_VARS
Timo Reimann [Mon, 7 Nov 2011 22:36:36 +0000 (23:36 +0100)]
dialog(k): Use correct logical operation to enable DLG_FLAG_CHANGED_VARS
flag.

8 years agodialog(k): When restoring dialog variables from database calculate and
Timo Reimann [Sun, 6 Nov 2011 01:21:08 +0000 (02:21 +0100)]
dialog(k): When restoring dialog variables from database calculate and
set variable string length.

- Fixes Flyspray #172.

8 years agoacc(k): Define timersub macro for Solaris as it is not provided in
Timo Reimann [Sat, 5 Nov 2011 01:41:19 +0000 (02:41 +0100)]
acc(k): Define timersub macro for Solaris as it is not provided in
<sys/time.h>.

8 years agodialog(k): When restoring dialog variables from database, stop iterating
Timo Reimann [Fri, 4 Nov 2011 22:09:02 +0000 (23:09 +0100)]
dialog(k): When restoring dialog variables from database, stop iterating
through given dialog hash table bucket once matching dialog is found.

- Fixes FS #171.
- Credits to Daniel-Constantin Mierla.

8 years agodialog(k): Set dialog parameters (timeout, etc.) before create callback
Timo Reimann [Thu, 3 Nov 2011 22:10:38 +0000 (23:10 +0100)]
dialog(k): Set dialog parameters (timeout, etc.) before create callback
is executed to provide these parameters to registered functions.

8 years agodocbook: remove double quotes around XML_CATALOG_FILES
Daniel-Constantin Mierla [Thu, 3 Nov 2011 21:10:52 +0000 (22:10 +0100)]
docbook: remove double quotes around XML_CATALOG_FILES

8 years agodispatcher(k): sample cfg file updated
Daniel-Constantin Mierla [Thu, 3 Nov 2011 20:12:46 +0000 (21:12 +0100)]
dispatcher(k): sample cfg file updated

- some clarifications added to faq

8 years agodispatcher(k): fixed copy&paste typo of maintaining inactive state
Daniel-Constantin Mierla [Thu, 3 Nov 2011 10:48:30 +0000 (11:48 +0100)]
dispatcher(k): fixed copy&paste typo of maintaining inactive state

- instead of setting the inactive state, it was resetting it
- restructured the usage of fake msg for running event routes for
  keepalive replies, so that it is generated only if event routes are
  defined

8 years agopkg/deb Add libncurses to build-dep
Jon Bonilla [Wed, 2 Nov 2011 11:20:54 +0000 (12:20 +0100)]
pkg/deb Add libncurses to build-dep
(cherry picked from commit abd0a077a626bd780e4719e38c9338d7ba6aa81b)

8 years agodispatcher(k): added clarifications to ds_probing_mode parameter
Daniel-Constantin Mierla [Wed, 2 Nov 2011 09:42:52 +0000 (10:42 +0100)]
dispatcher(k): added clarifications to ds_probing_mode parameter

8 years agodispatcher(k): use defines for probing modes
Daniel-Constantin Mierla [Wed, 2 Nov 2011 09:35:22 +0000 (10:35 +0100)]
dispatcher(k): use defines for probing modes

- it can be DS_PROBE_NONE (0), DS_PROBE_ALL (1) or DS_PROBE_INACTIVE (2)
- when ds_probing_mode is set to 2, keep probing inactive gateways until
  they become active. Note that the gateway must be set to probing when
  it goes in trying or inactive state

8 years agoapp_python: fixing clone string for dirname and basename
Michal Karas [Mon, 17 Oct 2011 09:18:51 +0000 (11:18 +0200)]
app_python: fixing clone string for dirname and basename

- variable tname replaced by dname_src and bname_src, because both
  dirname() and basename() requires it's argument not to change: "These
  functions may return pointers to statically allocated memory which may
  be overwritten by subsequent calls. Alternatively, they may return a
  pointer to some part of path, so that the string referred to by path
  should not be modified or freed until the pointer returned by the
  function is no longer required."
- related to FS#137

Signed-off-by: Daniel-Constantin Mierla <miconda@gmail.com>
8 years agodb_text(k): init DB API lib in mod_register()
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:32:42 +0000 (20:32 +0100)]
db_text(k): init DB API lib in mod_register()

8 years agodb_oracle(k): init DB API lib in mod_register()
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:30:15 +0000 (20:30 +0100)]
db_oracle(k): init DB API lib in mod_register()

8 years agodb_unixodbc: init DB API lib in mod_register()
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:28:26 +0000 (20:28 +0100)]
db_unixodbc: init DB API lib in mod_register()

8 years agodb_sqlite: init DB API lib in mod_register()
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:26:37 +0000 (20:26 +0100)]
db_sqlite: init DB API lib in mod_register()

8 years agodb_postgres: use db_api_init() to initialize srdb1 lib
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:26:07 +0000 (20:26 +0100)]
db_postgres: use db_api_init() to initialize srdb1 lib

8 years agodb_berkeley: init DB API lib in mod_register()
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:22:30 +0000 (20:22 +0100)]
db_berkeley: init DB API lib in mod_register()

8 years agodb_postgres: init DB API lib in mod_register()
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:21:19 +0000 (20:21 +0100)]
db_postgres: init DB API lib in mod_register()

- this will initialize the sql buffer at module load time, avoiding
  crash at startup if a module using the DB driver is loaded before the
  db driver itself
- reported by Timo Teras

8 years agodb_flatstore: init DB API lib in mod_register()
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:20:38 +0000 (20:20 +0100)]
db_flatstore: init DB API lib in mod_register()

8 years agodb_mysql: initialize DB API in mod_register() function
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:18:36 +0000 (20:18 +0100)]
db_mysql: initialize DB API in mod_register() function

- internal buffer sql_buf initialized in this function
- renamed sql_buf to mysql_sql_buf to avoid potential conflict with
  global variable in srdb1 library

8 years agosrdb1: added db_api_init() function
Daniel-Constantin Mierla [Tue, 1 Nov 2011 19:15:50 +0000 (20:15 +0100)]
srdb1: added db_api_init() function

- to be executed to initialize internas of DB API library
- calls internal function db_query_init() that initialize the buffer to
  print db queries

8 years agosdpops: support for codecs with same name and many different ids
Daniel-Constantin Mierla [Tue, 1 Nov 2011 15:18:34 +0000 (16:18 +0100)]
sdpops: support for codecs with same name and many different ids

- reported by Juha Heinanen

8 years agosdpops: fixed usage of delim param in sdp_codec_in_str()
Daniel-Constantin Mierla [Tue, 1 Nov 2011 10:38:51 +0000 (11:38 +0100)]
sdpops: fixed usage of delim param in sdp_codec_in_str()

- matching codecs in a comma separated list should work now
- reported by Juha Heinanen as part of testing keep_codecs_by_name()

8 years agoutils/sercmd: set SRNAME at compile time
Daniel-Constantin Mierla [Mon, 31 Oct 2011 16:18:11 +0000 (17:18 +0100)]
utils/sercmd: set SRNAME at compile time

- it is set to sip server name (e.g., ser, kamailio)
- it is used to build the default path to ctl file used to communicate
  with sip server via ctl module
- reported by Henning Westerholt

8 years agoctl: use SRNAME define to build default ctl file path
Daniel-Constantin Mierla [Mon, 31 Oct 2011 16:16:36 +0000 (17:16 +0100)]
ctl: use SRNAME define to build default ctl file path

- this define is set by sercmd comilation (NAME is set to sercmd in this
  case)
- otherwise use NAME, which is set by sip server compilation
- reported by Henning Westerholt

8 years agoparser/sdp: updated parse_sdp() description
Daniel-Constantin Mierla [Mon, 31 Oct 2011 10:43:28 +0000 (11:43 +0100)]
parser/sdp: updated parse_sdp() description

- reflect properly return codes

8 years agosnmpstats: removed c&p duplicated module parameter
Daniel-Constantin Mierla [Mon, 31 Oct 2011 10:22:37 +0000 (11:22 +0100)]
snmpstats: removed c&p duplicated module parameter

- reported by Klaus Darilion

8 years agosdpops: check for sdp structure after parse_sdp()
Daniel-Constantin Mierla [Mon, 31 Oct 2011 10:20:05 +0000 (11:20 +0100)]
sdpops: check for sdp structure after parse_sdp()

- the function can return 1 in case of no body
- reported by Juha Heinanen

8 years agomodules_k/textops: added missing in_list() implementation
Juha Heinanen [Sat, 29 Oct 2011 15:57:50 +0000 (18:57 +0300)]
modules_k/textops: added missing in_list() implementation

- For some reason merge from jh/32plus branch to master missed in_list()
  implementation.

8 years agodispatcher(k): clarification about trying transition state from active to inactive
Daniel-Constantin Mierla [Thu, 27 Oct 2011 14:45:17 +0000 (16:45 +0200)]
dispatcher(k): clarification about trying transition state from active to inactive

8 years agodispatcher(k): default probing threshold set to 1
Daniel-Constantin Mierla [Thu, 27 Oct 2011 14:44:44 +0000 (16:44 +0200)]
dispatcher(k): default probing threshold set to 1

8 years agoman page: updated with the new -I command line option
Daniel-Constantin Mierla [Thu, 27 Oct 2011 14:11:14 +0000 (16:11 +0200)]
man page: updated with the new -I command line option

8 years agodispatcher(k): docs update and rebuild readme file
Daniel-Constantin Mierla [Thu, 27 Oct 2011 14:07:33 +0000 (16:07 +0200)]
dispatcher(k): docs update and rebuild readme file

8 years agodispatcher(k): new state trying for destination addresses
Daniel-Constantin Mierla [Thu, 27 Oct 2011 14:00:55 +0000 (16:00 +0200)]
dispatcher(k): new state trying for destination addresses

- the state trying (t) is a transition between active to inactive, when
  inactive state is wanted after a certain number of failures specified
  in probing threshold
- when in trying state, the destination is still selected, but
  additional settings of trying state will increment an internal failure
  counter which results in setting inactive state when probing threshold
  is matched
- the functionality was before based on probing mode, but since 3.2
  probing is not longer related to destination selection. This will
  provide back the lost functionality
- ds_mark_dst(x) can have as parameter a combination between state and
  probing mode, such as 'ip' - inactive and probing, or ap - active and
  probing, or 'tp' - trying and probing

8 years agodialog(k): postpone setting tm callbacks until T is created
Daniel-Constantin Mierla [Thu, 27 Oct 2011 05:17:52 +0000 (07:17 +0200)]
dialog(k): postpone setting tm callbacks until T is created

- add dialog in tm callbacks when transaction is created
- when using dlg_manage(), if dialog does not makes it to transaction,
  clean it up
- fixes case when stateless reply is used after dlg_manage() to create a
  new dialog

8 years agocore: new command line option -I
Daniel-Constantin Mierla [Thu, 27 Oct 2011 03:09:03 +0000 (05:09 +0200)]
core: new command line option -I

- print details about default internal attributes

8 years agodocbook/Makefile: option to not use local catalog
Daniel-Constantin Mierla [Thu, 27 Oct 2011 02:21:24 +0000 (04:21 +0200)]
docbook/Makefile: option to not use local catalog

- if nocatalog=yes, the xsltproc is started without XML_CATALOG_FILES
  and the default ones from system are used

8 years agodialog(k): regenerated readme
Daniel-Constantin Mierla [Thu, 27 Oct 2011 02:20:56 +0000 (04:20 +0200)]
dialog(k): regenerated readme

8 years agodialog(k): removed invalid html tag for docbook source
Daniel-Constantin Mierla [Thu, 27 Oct 2011 01:50:56 +0000 (03:50 +0200)]
dialog(k): removed invalid html tag for docbook source

8 years agoMakefile: increased dev version
Daniel-Constantin Mierla [Thu, 27 Oct 2011 01:10:00 +0000 (03:10 +0200)]
Makefile: increased dev version

8 years agosdpops: find codec ids in sdp when not found in static table
Daniel-Constantin Mierla [Wed, 26 Oct 2011 19:21:22 +0000 (21:21 +0200)]
sdpops: find codec ids in sdp when not found in static table

- functions to keep/remove codecs by name work now with dynamic ids for
  codecs
- reported by Juha Heinanen

8 years agodispatcher(k): clarified notes about probing mode
Daniel-Constantin Mierla [Wed, 26 Oct 2011 16:59:39 +0000 (18:59 +0200)]
dispatcher(k): clarified notes about probing mode

8 years agoDialog: Fixed lurking html tag in XML doc
Jason Penton [Wed, 26 Oct 2011 12:32:00 +0000 (14:32 +0200)]
Dialog: Fixed lurking html tag in XML doc

8 years agocore/sdp: restore setting of IP address type
Daniel-Constantin Mierla [Tue, 25 Oct 2011 15:35:25 +0000 (17:35 +0200)]
core/sdp: restore setting of IP address type

- refactoring of extract_mediaip() skipped setting IPv4/IPv6 type in sdp
  structure
- reported by Jason Penton

8 years agomodules_k/msilo: adding storage of MESSAGE headers to msilo broke some of the existin...
pd [Fri, 21 Oct 2011 14:58:09 +0000 (15:58 +0100)]
modules_k/msilo: adding storage of MESSAGE headers to msilo broke some of the existing extra_headers stuff in the module

- Now fixed.  Fix by Hugh Waite at Crocodile RCS

8 years agomodules_k/rls: the checks on the number of records returned from the DB when updating...
pd [Fri, 21 Oct 2011 14:53:33 +0000 (15:53 +0100)]
modules_k/rls: the checks on the number of records returned from the DB when updating RLS subscriptions from the configuration file while in db only mode were too strict

8 years agomodules_k/presence, modules_k/pua, modules_k/rls: Fixed issues discovered while testi...
pd [Fri, 21 Oct 2011 14:51:32 +0000 (15:51 +0100)]
modules_k/presence, modules_k/pua, modules_k/rls: Fixed issues discovered while testing with PostgreSQL 9.0

- Some of the fields in the DB have not null constraints that result
  in errors when using PostgreSQL but not MySQL.

8 years agolib/srdb1: Fixed problem with the new bitwise and DB operation
pd [Fri, 21 Oct 2011 14:45:56 +0000 (15:45 +0100)]
lib/srdb1: Fixed problem with the new bitwise and DB operation

- In MySQL you can do "select * from table where value&mask;" but that
  is not actually correct SQL and fails on other DBs (specifically
  PostgreSQL).  The correct SQL is
  "select * from table where value&mask=mask;"

8 years agodispatcher(k): restore actve state via MI
Daniel-Constantin Mierla [Thu, 20 Oct 2011 21:50:08 +0000 (23:50 +0200)]
dispatcher(k): restore actve state via MI

- resetting the state flags were not in effect for active state,
  reported by Asgaroth
- added define to check whether a destionation addres should be skipped
  or not based on its state

8 years agokamctl: version set to 3.3.0 for development
Daniel-Constantin Mierla [Thu, 20 Oct 2011 18:01:10 +0000 (20:01 +0200)]
kamctl: version set to 3.3.0 for development

8 years agomodules_k/presence_profile: new modul for basic ua-profile event support
Mihály Mészáros [Thu, 20 Oct 2011 15:49:51 +0000 (17:49 +0200)]
modules_k/presence_profile: new modul for basic ua-profile event support

 - This is a new modul that is using sip event framework for endpoint config provisioining.
   Currently it has very basic functionality.

8 years agoparser: added ua-profile event type
Mihály Mészáros [Thu, 20 Oct 2011 15:47:50 +0000 (17:47 +0200)]
parser: added ua-profile event type

8 years agomodules_k/rls: removed some debug that was left-over from the development
pd [Wed, 19 Oct 2011 12:34:49 +0000 (13:34 +0100)]
modules_k/rls: removed some debug that was left-over from the development

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Henning Westerholt [Wed, 19 Oct 2011 12:05:38 +0000 (14:05 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  modules/app_lua: added lots of new modules and functions

8 years agosrdb1: small spelling fix in doxygen
Henning Westerholt [Wed, 19 Oct 2011 12:04:54 +0000 (14:04 +0200)]
srdb1: small spelling fix in doxygen

8 years agomodules/app_lua: added lots of new modules and functions
pd [Wed, 19 Oct 2011 12:03:14 +0000 (13:03 +0100)]
modules/app_lua: added lots of new modules and functions

- Newly exported modules: textops, pua_usrloc, siputils, rls, alias_db,
  msilo.
- Extra functions in existing modules: t_newtran, t_release,
  rr_add_param, registered, handle_publish, handle_subscribe
- Changes by Peter Dunkley and Hugh Waite at Crocodile RCS

8 years agomodules_k/rls: added DB only mode to rls
pd [Wed, 19 Oct 2011 11:52:21 +0000 (12:52 +0100)]
modules_k/rls: added DB only mode to rls

- By using DB only mode RLS can be distributed across many Kamailio
  servers for scaling and resilience.
- This change has been in use internally at Crocodile RCS for some time,
  but it is extensive.
- The DB only mode changes have been made in a way that changes the pre-
  existing (hash-table based) mode of operation as little as possible.
  This original mode of operation SHOULD be unaffected by this change.
- This enhancement was made by Paul Pankhurst at Crocodile RCS.
- Also contains a small bug-fix to RLS indices by Hugh Waite.
- I have also exported the RLS API for use in app_lua

8 years agomodules_k/pua: added DB only mode to PUA
pd [Wed, 19 Oct 2011 11:45:28 +0000 (12:45 +0100)]
modules_k/pua: added DB only mode to PUA

- By using DB only mode PUA (and modules that use PUA like RLS) can be
  distributed across many Kamailio servers for scaling and resilience.
- This change has been in use internally at Crocodile RCS for some time,
  but it is extensive.
- The DB only mode changes have been made in a way that changes the pre-
  existing (hash-table based) mode of operation as little as possible.
  This original mode of operation SHOULD be unaffected by this change.
- This enhancement was made by Paul Pankhurst at Crocodile RCS.

8 years agolib/srdb1: added the ability to use bitwise-and in DB queries
pd [Wed, 19 Oct 2011 10:58:43 +0000 (11:58 +0100)]
lib/srdb1: added the ability to use bitwise-and in DB queries

- This is used in the changes to add db only mode to pua
- This enhancement was made by Paul Pankhurst at Crocodile RCS

8 years agomodules_k/presence: added db_only mode support for presentity table
pd [Wed, 19 Oct 2011 10:57:36 +0000 (11:57 +0100)]
modules_k/presence: added db_only mode support for presentity table

- This enhancement was made by Paul Pankhurst at Crocodile RCS

8 years agomodules/textopsx, modules_k/alias_db, modules_k/pua_usrloc: added missing api.h files...
pd [Wed, 19 Oct 2011 10:56:15 +0000 (11:56 +0100)]
modules/textopsx, modules_k/alias_db, modules_k/pua_usrloc: added missing api.h files from previous commits

8 years agomodules_k/siputils: added has_totag() to exported API for use in app_lua
pd [Wed, 19 Oct 2011 10:48:22 +0000 (11:48 +0100)]
modules_k/siputils: added has_totag() to exported API for use in app_lua

8 years agomodules_k/rr: added record_route_preset() to exported API for use in app_lua
pd [Wed, 19 Oct 2011 10:46:36 +0000 (11:46 +0100)]
modules_k/rr: added record_route_preset() to exported API for use in app_lua

- Enhancement made by Hugh Waite at Crocodile RCS

8 years agomodules_k/registrar: added registered() to exported API for use in app_lua
pd [Wed, 19 Oct 2011 10:44:56 +0000 (11:44 +0100)]
modules_k/registrar: added registered() to exported API for use in app_lua

8 years agomodules_k/pua_usrloc: exported API for use in app_lua
pd [Wed, 19 Oct 2011 10:43:34 +0000 (11:43 +0100)]
modules_k/pua_usrloc: exported API for use in app_lua

8 years agomodules_k/presence: added handle_publish() and handle_subscribe() to exported API...
pd [Wed, 19 Oct 2011 10:41:33 +0000 (11:41 +0100)]
modules_k/presence: added handle_publish() and handle_subscribe() to exported API for use in app_lua

8 years agomodules_k/alias_db: exported alias_db API for use in app_lua
pd [Wed, 19 Oct 2011 10:40:20 +0000 (11:40 +0100)]
modules_k/alias_db: exported alias_db API for use in app_lua

8 years agomodules/textopsx: exported textopsx API
pd [Wed, 19 Oct 2011 10:33:16 +0000 (11:33 +0100)]
modules/textopsx: exported textopsx API

- This is so that I can use msg_apply_changes in app_lua

8 years agomodules_k/textops: added is_privacy() to the exported textops API
pd [Wed, 19 Oct 2011 10:30:51 +0000 (11:30 +0100)]
modules_k/textops: added is_privacy() to the exported textops API

- For use in app_lua

8 years agomodules_k/msilo: added missing file from previous commit
pd [Wed, 19 Oct 2011 10:25:36 +0000 (11:25 +0100)]
modules_k/msilo: added missing file from previous commit

8 years agomodules_k/msilo, lib/srdb1/schema: extra headers in MESSAGE requests can now be store...
pd [Wed, 19 Oct 2011 10:14:38 +0000 (11:14 +0100)]
modules_k/msilo, lib/srdb1/schema: extra headers in MESSAGE requests can now be stored in the silo

- Allows extra information relating to a MESSAGE to be preserved when it is stored
- This enhancement was made by Hugh Waite at Crocodile RCS
- Also exported the msilo API so that it can be used in app_lua

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router into 32plus
Juha Heinanen [Tue, 18 Oct 2011 13:09:44 +0000 (16:09 +0300)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router into 32plus

* 'master' of ssh://git.sip-router.org/sip-router:
  INSTALL: added short note about wiki site
  Makefile: version set to 3.3.0-dev0
  presence_xml: remove unecessary include
  core and modules: fix compile warnings on freebsd
  core and modules: fix compile warning

8 years agoINSTALL: added short note about wiki site
Daniel-Constantin Mierla [Tue, 18 Oct 2011 11:39:20 +0000 (13:39 +0200)]
INSTALL: added short note about wiki site

8 years agoMakefile: version set to 3.3.0-dev0
Daniel-Constantin Mierla [Tue, 18 Oct 2011 11:10:33 +0000 (13:10 +0200)]
Makefile: version set to 3.3.0-dev0

8 years agopresence_xml: remove unecessary include
Daniel-Constantin Mierla [Tue, 18 Oct 2011 11:02:53 +0000 (13:02 +0200)]
presence_xml: remove unecessary include

- adds warnings about strptime

8 years agocore and modules: fix compile warnings on freebsd
Daniel-Constantin Mierla [Tue, 18 Oct 2011 10:50:49 +0000 (12:50 +0200)]
core and modules: fix compile warnings on freebsd

8 years agocore and modules: fix compile warning
Daniel-Constantin Mierla [Tue, 18 Oct 2011 09:10:51 +0000 (11:10 +0200)]
core and modules: fix compile warning

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router into 32plus
Juha Heinanen [Mon, 17 Oct 2011 18:14:38 +0000 (21:14 +0300)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router into 32plus

* 'master' of ssh://git.sip-router.org/sip-router:
  dialplan: added sample records to readme
  dialplan: fix usage of avps in replacement expression

8 years agodialplan: added sample records to readme
Daniel-Constantin Mierla [Mon, 17 Oct 2011 16:42:39 +0000 (18:42 +0200)]
dialplan: added sample records to readme

- added note about limitation in using pseudo-variables in replacement
  expressions

8 years agodialplan: fix usage of avps in replacement expression
Daniel-Constantin Mierla [Mon, 17 Oct 2011 16:27:42 +0000 (18:27 +0200)]
dialplan: fix usage of avps in replacement expression

- clone the replacement expression to shared memory before parsing it in
  order to have variables names available at runtime
- most of variables should be safe to use now in replacement
  expressions, including avps with string name. This fixes FS#153
  reported by Andrew Pogrebennyk
- variables with dynamic name have no easy way to clone at this moment,
  thus avoid using them directly. Use instead avps or script vars
  ($var(...)), copying the value from initial variable to it. Variables
  pointing to sip message attributes are safe to use.

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router into 32plus
Juha Heinanen [Mon, 17 Oct 2011 15:16:15 +0000 (18:16 +0300)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router into 32plus

* 'master' of ssh://git.sip-router.org/sip-router:
  dialog(k): Note dependency between dlg_manage() and transactions in docs.
  snmpstats: control exporting registrar records
  ctl: used flavour's NAME in path of default ctl socket
  modules_k/(auth|misc)_radius: added cast
  kamailio.cfg: added storage of src ip to extra acc example
  kamailio.cfg: load cfg_rpc module to allow runtime updates
  cfg_rpc: improved documentation
  modules_k/osp, modules_k/siputils: The bind_siputils function takes 1 parameter, but the bind command in here (and as used in osp) was specified as taking 0 parameters.
  modules_k/presence_xml: The presentity activities check wasn't quite right.
  modules_k/dispatcher: Fixes to handling of empty DB and hostnames that cannot be resolved
  modules/app_lua: Fix to lua_sr_pv_is_null()
  modules:sipcapture: fixed uint types and IPPROTO_IPIP on Solaris.
  core: auto_bind_ipv6 : changed param from cfg framework to normal global parameter as setting it at run time doesn't change anything
  core: added parameter to enable/disable automatic binding of ipv6 interfaces TODO: documentation
  core:socket_info Added automatic discovery of IPv6 interfaces on Linux using RT_NETLINK socks
  dialog(k): Fix typos.
  Revert "message shooter module added"

8 years agodialog(k): Note dependency between dlg_manage() and transactions
Timo Reimann [Mon, 17 Oct 2011 09:46:45 +0000 (11:46 +0200)]
dialog(k): Note dependency between dlg_manage() and transactions
in docs.

8 years agosnmpstats: control exporting registrar records
Daniel-Constantin Mierla [Sun, 16 Oct 2011 09:33:16 +0000 (11:33 +0200)]
snmpstats: control exporting registrar records

- exporting of large location database may result in out of shared
  memory, as well as when the records are not pulled - might be the case
  of out of memory messages reported by Klaus Darilion
- new parameter export_registrar was added to enable/disable location
  records export (off by default)
- fixed missing exporting the counter with all processed dialogs
  (discussion from March 2011 with Stefan Tiedje)

8 years agoctl: used flavour's NAME in path of default ctl socket
Daniel-Constantin Mierla [Sat, 15 Oct 2011 21:02:09 +0000 (23:02 +0200)]
ctl: used flavour's NAME in path of default ctl socket

8 years agomodules_k/(auth|misc)_radius: added cast
Juha Heinanen [Sat, 15 Oct 2011 14:07:12 +0000 (17:07 +0300)]
modules_k/(auth|misc)_radius: added cast

- Added cast of int to long in order to avoid compiler warning on 64 bit
  operating system.

8 years agokamailio.cfg: added storage of src ip to extra acc example
Daniel-Constantin Mierla [Fri, 14 Oct 2011 22:07:11 +0000 (00:07 +0200)]
kamailio.cfg: added storage of src ip to extra acc example

= renamed define id LOCAL_TEST_RUN to WITH_SRCPATH to match the pattern
used for default config define switches and to suggest better the
purpose of setting modules location to sources path

8 years agokamailio.cfg: load cfg_rpc module to allow runtime updates
Daniel-Constantin Mierla [Fri, 14 Oct 2011 19:34:08 +0000 (21:34 +0200)]
kamailio.cfg: load cfg_rpc module to allow runtime updates

- use request_route { ... } instead of route { ... } for easier
  reference in docs and discussions

8 years agocfg_rpc: improved documentation
Daniel-Constantin Mierla [Fri, 14 Oct 2011 19:33:08 +0000 (21:33 +0200)]
cfg_rpc: improved documentation

- aliased set_now_int to seti and set_now_string to sets