sip-router
9 years agodoc: add small note about SCTP compile time deps to INSTALL file, reported from Juha
Henning Westerholt [Mon, 3 Jan 2011 11:41:20 +0000 (12:41 +0100)]
doc: add small note about SCTP compile time deps to INSTALL file, reported from Juha

9 years agodialog(k): open db connection for main process in db delayed mode
Daniel-Constantin Mierla [Sun, 2 Jan 2011 18:56:40 +0000 (19:56 +0100)]
dialog(k): open db connection for main process in db delayed mode

- used at shutdown to write to db

9 years agopdt(k): mi child init function name updated
Daniel-Constantin Mierla [Sun, 2 Jan 2011 18:44:18 +0000 (19:44 +0100)]
pdt(k): mi child init function name updated

- child_init => mi_child_init
- mod_child_init => child_init

9 years agomtree: skip db init for special ranks
Daniel-Constantin Mierla [Sun, 2 Jan 2011 18:39:11 +0000 (19:39 +0100)]
mtree: skip db init for special ranks

9 years agodialplan: fix matching string comparison op
Daniel-Constantin Mierla [Sun, 2 Jan 2011 15:10:40 +0000 (16:10 +0100)]
dialplan: fix matching string comparison op

- the return code was tested as for match of regexp, which led to
  mismatches for str comparison
- credits to Jordan Levy

9 years agodialplan: use size_t to get the size of compiled pcre
Daniel-Constantin Mierla [Sun, 2 Jan 2011 15:00:13 +0000 (16:00 +0100)]
dialplan: use size_t to get the size of compiled pcre

- it caused crash on 64b since size was declared as int and
  pcre_fullinfo() expects size_t (on 32b is the same struct size)
- reported by Javier Gallart and Bayan Towfiq
- credits to Bayan for provinding testing environment and
  troubleshooting assistance, closes FS#109

9 years agoxhttp: safety checks for null parameter values
Daniel-Constantin Mierla [Thu, 30 Dec 2010 23:40:32 +0000 (00:40 +0100)]
xhttp: safety checks for null parameter values

9 years agodialplan: specific reply for translation failure
Daniel-Constantin Mierla [Thu, 30 Dec 2010 23:00:26 +0000 (00:00 +0100)]
dialplan: specific reply for translation failure

- 404 no translation returned if dp_translate MI command fails to do
  dialplan translate
- added extra debug message

9 years agomodules_k/pv: Fix microsecond respresentation of $TV(Sn)
Alex Hermann [Tue, 28 Dec 2010 12:44:53 +0000 (13:44 +0100)]
modules_k/pv: Fix microsecond respresentation of $TV(Sn)

Make sure <100000us isn't off by multiple powers of 10.
eg make sure 5us isn't printed as 0.5 sec by padding with 0's

9 years agoldap(k): connect to server for negative ranks
Daniel-Constantin Mierla [Tue, 28 Dec 2010 10:38:57 +0000 (11:38 +0100)]
ldap(k): connect to server for negative ranks

- there are some processes with negative rank that need connection to
  ldap server, like timers
- reported by Pan Christensen

9 years agokamctl: removed db_berkeley lcr obsolete tables
Daniel-Constantin Mierla [Tue, 28 Dec 2010 10:02:38 +0000 (11:02 +0100)]
kamctl: removed db_berkeley lcr obsolete tables

9 years agokamctl: added db_berkeley table definitions for lcr
Daniel-Constantin Mierla [Tue, 28 Dec 2010 10:00:59 +0000 (11:00 +0100)]
kamctl: added db_berkeley table definitions for lcr

- reported by Noa Resare

9 years agolcr: removed obsoleted db tables
Daniel-Constantin Mierla [Tue, 28 Dec 2010 09:59:09 +0000 (10:59 +0100)]
lcr: removed obsoleted db tables

9 years agodb_text(k): add lcr tables def files
Daniel-Constantin Mierla [Mon, 27 Dec 2010 12:54:55 +0000 (13:54 +0100)]
db_text(k): add lcr tables def files

9 years agokex: get rid of 64b warnings in pkg stats updates
Daniel-Constantin Mierla [Thu, 23 Dec 2010 10:23:36 +0000 (11:23 +0100)]
kex: get rid of 64b warnings in pkg stats updates

9 years agocore: fix typo added with pkg stats
Daniel-Constantin Mierla [Thu, 23 Dec 2010 08:42:01 +0000 (09:42 +0100)]
core: fix typo added with pkg stats

- reported by Juha Heinanen

9 years agokex: updated pkg.stats documentation
Daniel-Constantin Mierla [Wed, 22 Dec 2010 12:07:33 +0000 (13:07 +0100)]
kex: updated pkg.stats documentation

9 years agokex: pkg.stats command extended
Daniel-Constantin Mierla [Wed, 22 Dec 2010 11:59:00 +0000 (12:59 +0100)]
kex: pkg.stats command extended

- it can take optionally a filter for which process to print pkg stats.
  It can be:
  - pid value - print by process pid
  - rank value - print by process rank
  - index value - print by index in process table

9 years agocore: fix ignored force_rport
Andrei Pelinescu-Onciul [Tue, 21 Dec 2010 13:38:45 +0000 (14:38 +0100)]
core: fix ignored force_rport

The global force_rport config setting (not the force_rport()
script function), was ignored in some cases (e.g. tm & sl).

Reported-by: Tomas Mandys tomas.mandys iptel org
9 years agokex: doxumented pkg.stats rpc command
Daniel-Constantin Mierla [Mon, 20 Dec 2010 22:39:07 +0000 (23:39 +0100)]
kex: doxumented pkg.stats rpc command

9 years agokex: print private memory usage per process via rpc
Daniel-Constantin Mierla [Mon, 20 Dec 2010 08:51:05 +0000 (09:51 +0100)]
kex: print private memory usage per process via rpc

- new rpc command pkg.stats that prints used, free and real_used metrics
  per process for private memory (pkg)
- you can see how much pkg each process is eating and how much is still
  available
- should be useful to track pkg memory leaks and/or trigger alerts when
  there is no more pkg available

9 years agodebugger: added some comments for functions
Daniel-Constantin Mierla [Mon, 20 Dec 2010 08:44:43 +0000 (09:44 +0100)]
debugger: added some comments for functions

9 years agocore: execute core events when pkg usage changes
Daniel-Constantin Mierla [Mon, 20 Dec 2010 08:40:46 +0000 (09:40 +0100)]
core: execute core events when pkg usage changes

- track used and real_used metrics for q/f_malloc when MALLOC_STATS is
  defined

9 years agocore: added core events for pkg operations
Daniel-Constantin Mierla [Mon, 20 Dec 2010 08:39:40 +0000 (09:39 +0100)]
core: added core events for pkg operations

- ability to track pkg used and real_used metrics

9 years agocfgutils: documented pkg/shm_summary()
Daniel-Constantin Mierla [Sun, 19 Dec 2010 20:23:15 +0000 (21:23 +0100)]
cfgutils: documented pkg/shm_summary()

9 years agocfgutils: added pkg_summary() and shm_summary()
Daniel-Constantin Mierla [Sun, 19 Dec 2010 20:13:06 +0000 (21:13 +0100)]
cfgutils: added pkg_summary() and shm_summary()

- ability to print summary of pkg and shm from config

9 years agoacc(k): take r-uri from winning branch for missed call acc
Daniel-Constantin Mierla [Sun, 19 Dec 2010 10:56:49 +0000 (11:56 +0100)]
acc(k): take r-uri from winning branch for missed call acc

- only if the branch was relayed, otherwise uac struct might be
  unfinished due to drop call in config. Use r-uri from uas struct
  otherwise
- reported by Juha Henanen

9 years agodialplan: don't print PV name in replacement
Daniel-Constantin Mierla [Fri, 17 Dec 2010 23:34:54 +0000 (00:34 +0100)]
dialplan: don't print PV name in replacement

- reported by Andreas Granig

9 years agopv: added PV $rmid - request method id
Daniel-Constantin Mierla [Thu, 16 Dec 2010 13:11:56 +0000 (14:11 +0100)]
pv: added PV $rmid - request method id

- return internal integer representation of SIP method type

9 years agomodules/lcr: do not try to use rule target if its gw has been disabled.
Juha Heinanen [Thu, 16 Dec 2010 08:59:56 +0000 (10:59 +0200)]
modules/lcr: do not try to use rule target if its gw has been disabled.
(cherry picked from commit 46eb7cc5e7ed341111f5cefd667b97f98d73591e)

9 years agocore: removed unused piece of code
Daniel-Constantin Mierla [Wed, 15 Dec 2010 19:54:38 +0000 (20:54 +0100)]
core: removed unused piece of code

- reported by Klaus Darilion

9 years agomodules/lcr: fixed adding of ;transport parameter
Juha Heinanen [Mon, 13 Dec 2010 16:12:08 +0000 (18:12 +0200)]
modules/lcr: fixed adding of ;transport parameter

9 years agouac(k): stop trying to re-auth if first attempt fails
Daniel-Constantin Mierla [Tue, 7 Dec 2010 23:20:44 +0000 (00:20 +0100)]
uac(k): stop trying to re-auth if first attempt fails

- don't do cascade authentication if server keeps sending 401 for new
  attepts
- reported by Bernhard Suttner, part of FS#108

9 years agodrouting: added note about dr_gateways
Daniel-Constantin Mierla [Mon, 6 Dec 2010 09:23:54 +0000 (10:23 +0100)]
drouting: added note about dr_gateways

- it can link to dr_gw_lists with '#'
- reported by Marc Cardinal, FS#96

9 years agopv: $snd(id) broken in $sndto(id) and $sndfrom(id)
Daniel-Constantin Mierla [Sun, 5 Dec 2010 23:05:46 +0000 (00:05 +0100)]
pv: $snd(id) broken in $sndto(id) and $sndfrom(id)

- $snd(id) is aliased to $sndto(id)
- $sndto(id) points to next hop address
- $sndfrom(id) points to local socket to be used for sending

9 years agoauth: README regenerated
Daniel-Constantin Mierla [Sun, 5 Dec 2010 22:28:31 +0000 (23:28 +0100)]
auth: README regenerated

9 years agoauth_db(k): more granular return codes for failure cases
Daniel-Constantin Mierla [Sun, 5 Dec 2010 22:25:41 +0000 (23:25 +0100)]
auth_db(k): more granular return codes for failure cases

- enhanced the config auth functions return codes
- part of a path by Alex Hermann, FS#101

9 years agoauth: more return codes for auth API
Daniel-Constantin Mierla [Sun, 5 Dec 2010 22:23:41 +0000 (23:23 +0100)]
auth: more return codes for auth API

- report more granular failure causes
- part of patch by Alex Hermann, FS#101

9 years agodb_berkeley: updated module name
Daniel-Constantin Mierla [Sun, 5 Dec 2010 21:33:02 +0000 (22:33 +0100)]
db_berkeley: updated module name

- module name was set to db_bdb upon integration of k and s version,
  instead of module path name
- set now to db_berkeley
- reported by stas - FS#106

9 years agopkg/debian: Fix bad changelog.
Jon Bonilla [Sat, 4 Dec 2010 08:22:15 +0000 (09:22 +0100)]
pkg/debian: Fix bad changelog.
  * Prevents dpkg-parsechangelog not parsing the correct version and generating bad versiones packages.
(cherry picked from commit 88bda825581a919778eb6f85e0a7bf6b04ede630)

9 years agopkg debian
Jon Bonilla [Fri, 3 Dec 2010 15:38:01 +0000 (16:38 +0100)]
pkg debian
  * Update version to 3.1.1
  * Install general ChangeLog instead of Debian's one.
(cherry picked from commit 22b18eefa163392ab37c6274d1631824908a4b47)

9 years agouac: safety checks for empty values in uacreg
Daniel-Constantin Mierla [Fri, 3 Dec 2010 09:59:05 +0000 (10:59 +0100)]
uac: safety checks for empty values in uacreg

- the values in uacreg table must not be empty
- reported by Bernhard Suttner

9 years agodispatcher(k): fixed use of use_default parameter
Daniel-Constantin Mierla [Fri, 3 Dec 2010 09:45:00 +0000 (10:45 +0100)]
dispatcher(k): fixed use of use_default parameter

- when there was a single destination in destination set and it was in
  inactive state, then having parameter use_default=1 caused a divion by
  0 while atteptimpting to look for active destaintaion
- reported by Eric Hiller

9 years agomodules_k/textops: new function is_audio_on_hold()
Ovidiu Sas [Thu, 2 Dec 2010 19:56:11 +0000 (14:56 -0500)]
modules_k/textops: new function is_audio_on_hold()

 - returns true if at least one 'audio' stream is on hold
 - only 'audio' streams are checked

9 years agosdp parser: detect on hold media during sdp parsing
Ovidiu Sas [Thu, 2 Dec 2010 18:49:34 +0000 (13:49 -0500)]
sdp parser: detect on hold media during sdp parsing

9 years agosrdb1: keep PID per DB connection
Daniel-Constantin Mierla [Wed, 1 Dec 2010 22:30:34 +0000 (23:30 +0100)]
srdb1: keep PID per DB connection

- print warning when PID mismatches - it is cross-process shared DB
  connection
- initial patch by Robert Verspuy

9 years agodrouting: do not call init child for PROC_INIT
Daniel-Constantin Mierla [Tue, 30 Nov 2010 22:16:19 +0000 (23:16 +0100)]
drouting: do not call init child for PROC_INIT

- avoid opening a database connection before forking
- reported by several people in context of Postgress async lib calls

9 years agokex: documented is_myself(uri) function
Daniel-Constantin Mierla [Sun, 28 Nov 2010 12:39:02 +0000 (13:39 +0100)]
kex: documented is_myself(uri) function

9 years agokex: added new function is_myself(uri)
Daniel-Constantin Mierla [Sun, 28 Nov 2010 11:59:16 +0000 (12:59 +0100)]
kex: added new function is_myself(uri)

- return true if given parameter matches 'myself' condition, the
  parameter can be a static string or pseduo-variables holding an IP or
  a SIP URI

9 years agoapp_lua: doc updated with dispatcher sub-module
Daniel-Constantin Mierla [Sun, 28 Nov 2010 11:45:49 +0000 (12:45 +0100)]
app_lua: doc updated with dispatcher sub-module

9 years agoapp_lua: exported disptacher API to Lua
Daniel-Constantin Mierla [Sun, 28 Nov 2010 11:38:44 +0000 (12:38 +0100)]
app_lua: exported disptacher API to Lua

9 years agodispatcher(k): exported inter-module API
Daniel-Constantin Mierla [Fri, 26 Nov 2010 23:04:17 +0000 (00:04 +0100)]
dispatcher(k): exported inter-module API

9 years agohtable: exported inter-module API
Daniel-Constantin Mierla [Fri, 26 Nov 2010 21:42:46 +0000 (22:42 +0100)]
htable: exported inter-module API

9 years agotopoh: option to bind to sanity for parsing checks
Daniel-Constantin Mierla [Fri, 26 Nov 2010 13:26:27 +0000 (14:26 +0100)]
topoh: option to bind to sanity for parsing checks

- the module can bind to sanity to perform parsing checks before
  proceeding to encoding/decoding of received requests
- new parameter 'sanity_checks'

9 years agoavpops: use proper avp list for avp_print()
Daniel-Constantin Mierla [Fri, 26 Nov 2010 12:07:08 +0000 (13:07 +0100)]
avpops: use proper avp list for avp_print()

- reported by Alex Hermann - FS#104

9 years agosanity: export inter-module API
Daniel-Constantin Mierla [Fri, 26 Nov 2010 11:39:07 +0000 (12:39 +0100)]
sanity: export inter-module API

- sanity functions can be used from inside other modules (e.g., topoh
  can use it now before getting to config file execution)

9 years agomodules/topoh : If a message contains a bad CSEQ, skip processing it.
Marius Zbihlei [Fri, 26 Nov 2010 08:59:12 +0000 (10:59 +0200)]
modules/topoh : If a message contains a bad CSEQ, skip processing it.

This would likely cause a segmentation fault when receiving messages with bad CSEQs.

9 years agotopoh: enhaced description of mask_ip parameter
Daniel-Constantin Mierla [Fri, 26 Nov 2010 09:00:42 +0000 (10:00 +0100)]
topoh: enhaced description of mask_ip parameter

9 years agotopoh: more verbose err reporting during init
Daniel-Constantin Mierla [Fri, 26 Nov 2010 08:54:04 +0000 (09:54 +0100)]
topoh: more verbose err reporting during init

- check also if mask ip != local ip
- should prevent the crashes when mask ip == local ip

9 years agomodules_k/nathelper: add_contact_alias adds <>s around contact URI
Juha Heinanen [Fri, 26 Nov 2010 08:37:30 +0000 (10:37 +0200)]
modules_k/nathelper: add_contact_alias adds <>s around contact URI

Make sure that Contact URI is surrounded by <> when adding ;alias
parameter.  Otherwise, ;alias parameter may be interpreted as header
parameter, because the syntax seems to be ambiguous.
(cherry picked from commit f5ef15fee0c3bf09adf2506effa0895f72af9034)

9 years agopermissions(k): changed params from PVAR to SPVE type
Daniel-Constantin Mierla [Thu, 25 Nov 2010 21:25:01 +0000 (22:25 +0100)]
permissions(k): changed params from PVAR to SPVE type

- type of fixup params for allow_trusted() updated from PVAR to SPVE
- PVAR can be non-zero terminated string
- SPVE accepts also static string or combination of PVs
- adapted patch submitted by Alex Hermann for crash related to static
  protocol value, FS#102

9 years agodb_flatstore: exported DB API v1 bind function
Daniel-Constantin Mierla [Wed, 24 Nov 2010 21:24:25 +0000 (22:24 +0100)]
db_flatstore: exported DB API v1 bind function

- bind function for DB API v1 was no longer exported upon merging with
  implementation of DB API V2
- reported by Javier Gallart

9 years agomodules_k/siputils: added set_uri_user(uri, user) function.
Juha Heinanen [Tue, 23 Nov 2010 12:22:52 +0000 (14:22 +0200)]
modules_k/siputils: added set_uri_user(uri, user) function.

9 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Jan Janak [Wed, 17 Nov 2010 23:27:35 +0000 (18:27 -0500)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router: (31 commits)
  app_lua: several tm functions added to Lua api
  tm: added export structure for extra API
  app_lua: added several core functions to sr package
  app_lua: helper function to return error code
  app_lua: fixed name of module in modparam examples
  app_lua: added registrar API to Lua
  registrar(k): exported inter-module API
  usrloc(k): db modes defines moved in usrloc.h
  usrloc(k)API function get_udomain()
  usrloc(k): preload parameter exported
  usrloc(k): new parameter 'preload'
  sqlops: added LF to end of debug message
  app_lua: sr.maxfwd mentioned as available submodule
  maxfwd(k): added inter-module API structure
  auth_db(k): added new file api.h
  app_lua: typo in register parameter
  app_lua: added functions from auth_db api
  auth_db(k): close db handle only for second param fixup
  app_lua: note about submodule sr.auth
  app_lua: exported functions from AUTH API to Lua
  ...

9 years agodb_mysql: Fixes crash in libmysqlclient after connection reset.
Jan Janak [Wed, 17 Nov 2010 23:26:32 +0000 (18:26 -0500)]
db_mysql: Fixes crash in libmysqlclient after connection reset.

Sometimes SIP-Router would crash in libmysqlclient after a connection
to the server has been reset. This is caused by mysql_stmt_prepare
which will reset the connection data structure if a connection has been
reset. Subsequent calls to other mysql functions (mysql_stmt_execute)
crash unless the connection has been re-connected. This is documented
as mysql bug #33384.

A workaround is to reset and reconnect the connection explicitly
immediately after mysql_stmt_prepare has failed with
CR_SERVER_GONE_ERROR. This change implements exactly that.

First of all, this patch fixes a minor bug in updating the variable
that keeps track of number of connection resets for each database
connection and pre-pared statement. The variable needs to be
incremented each time a connection is closed. Previously it was
incremented only if a connection was successfully reconnected. If the
reconnect attempt failed than the variable was not incremented. The
function that uploads commands to the server relies on the variable
to detect connection resets and may not have worked properly under
some circumstances (if a connection fails to reconnect).

Function upload_cmd has been modified to close the connection
explicitly if mysql_stmt_prepare fails with CR_SERVER_GONE_ERROR. This
ensures that subsequent calls to mysql_stmt_exec are forced to reconnect
and re-upload commands to the server. This is needed to prevent the
library from crashing.

exec_cmd_safe now checks if a connection has been disconnected and if
so it tries to reconnect it before executing a prepared statement. This
is used to recover from failing mysql_stmt_prepare.

9 years agoapp_lua: several tm functions added to Lua api
Daniel-Constantin Mierla [Wed, 17 Nov 2010 12:33:17 +0000 (13:33 +0100)]
app_lua: several tm functions added to Lua api

9 years agotm: added export structure for extra API
Daniel-Constantin Mierla [Wed, 17 Nov 2010 11:53:18 +0000 (12:53 +0100)]
tm: added export structure for extra API

- used for not-so-common inter-module API functions
- initial tm API structure got quite big and not all functions are very
  used

9 years agoapp_lua: added several core functions to sr package
Daniel-Constantin Mierla [Wed, 17 Nov 2010 10:47:03 +0000 (11:47 +0100)]
app_lua: added several core functions to sr package

9 years agoapp_lua: helper function to return error code
Daniel-Constantin Mierla [Tue, 16 Nov 2010 22:08:02 +0000 (23:08 +0100)]
app_lua: helper function to return error code

9 years agoapp_lua: fixed name of module in modparam examples
Daniel-Constantin Mierla [Tue, 16 Nov 2010 20:43:28 +0000 (21:43 +0100)]
app_lua: fixed name of module in modparam examples

- added note about submodule sr.registrar

9 years agoapp_lua: added registrar API to Lua
Daniel-Constantin Mierla [Tue, 16 Nov 2010 20:12:44 +0000 (21:12 +0100)]
app_lua: added registrar API to Lua

9 years agoregistrar(k): exported inter-module API
Daniel-Constantin Mierla [Tue, 16 Nov 2010 19:55:44 +0000 (20:55 +0100)]
registrar(k): exported inter-module API

9 years agousrloc(k): db modes defines moved in usrloc.h
Daniel-Constantin Mierla [Tue, 16 Nov 2010 19:51:05 +0000 (20:51 +0100)]
usrloc(k): db modes defines moved in usrloc.h

- they are part of API as registrar uses them

9 years agousrloc(k)API function get_udomain()
Daniel-Constantin Mierla [Tue, 16 Nov 2010 18:51:21 +0000 (19:51 +0100)]
usrloc(k)API function get_udomain()

- get usrloc domain only if it exists, don't create a new one

9 years agousrloc(k): preload parameter exported
Daniel-Constantin Mierla [Tue, 16 Nov 2010 18:40:50 +0000 (19:40 +0100)]
usrloc(k): preload parameter exported

9 years agousrloc(k): new parameter 'preload'
Daniel-Constantin Mierla [Tue, 16 Nov 2010 18:37:41 +0000 (19:37 +0100)]
usrloc(k): new parameter 'preload'

- can be used to specify list of location table to be initiated at
  startup, even they are not used by registrar module functions
- good for using the usrloc module from other modules

9 years agosqlops: added LF to end of debug message
Daniel-Constantin Mierla [Tue, 16 Nov 2010 18:29:29 +0000 (19:29 +0100)]
sqlops: added LF to end of debug message

9 years agoapp_lua: sr.maxfwd mentioned as available submodule
Daniel-Constantin Mierla [Tue, 16 Nov 2010 17:55:26 +0000 (18:55 +0100)]
app_lua: sr.maxfwd mentioned as available submodule

9 years agomaxfwd(k): added inter-module API structure
Daniel-Constantin Mierla [Tue, 16 Nov 2010 17:37:37 +0000 (18:37 +0100)]
maxfwd(k): added inter-module API structure

9 years agoauth_db(k): added new file api.h
Daniel-Constantin Mierla [Tue, 16 Nov 2010 17:28:17 +0000 (18:28 +0100)]
auth_db(k): added new file api.h

9 years agoapp_lua: typo in register parameter
Daniel-Constantin Mierla [Tue, 16 Nov 2010 17:17:43 +0000 (18:17 +0100)]
app_lua: typo in register parameter

- note about submodule sr.auth_db

9 years agoapp_lua: added functions from auth_db api
Daniel-Constantin Mierla [Tue, 16 Nov 2010 17:04:17 +0000 (18:04 +0100)]
app_lua: added functions from auth_db api

9 years agoauth_db(k): close db handle only for second param fixup
Daniel-Constantin Mierla [Tue, 16 Nov 2010 15:43:30 +0000 (16:43 +0100)]
auth_db(k): close db handle only for second param fixup

- digest_authenticate() refurbished to accept clear text values for
  realm and table

9 years agoapp_lua: note about submodule sr.auth
Daniel-Constantin Mierla [Tue, 16 Nov 2010 15:29:49 +0000 (16:29 +0100)]
app_lua: note about submodule sr.auth

9 years agoapp_lua: exported functions from AUTH API to Lua
Daniel-Constantin Mierla [Tue, 16 Nov 2010 13:18:45 +0000 (14:18 +0100)]
app_lua: exported functions from AUTH API to Lua

9 years agoapp_lua: added helper function to return int to Lua
Daniel-Constantin Mierla [Tue, 16 Nov 2010 13:18:24 +0000 (14:18 +0100)]
app_lua: added helper function to return int to Lua

9 years agoauth: several functions exported via inter-module API
Daniel-Constantin Mierla [Tue, 16 Nov 2010 12:48:57 +0000 (13:48 +0100)]
auth: several functions exported via inter-module API

9 years agoauth: pv_authenticate() made inter-modules API friendly
Daniel-Constantin Mierla [Tue, 16 Nov 2010 12:37:19 +0000 (13:37 +0100)]
auth: pv_authenticate() made inter-modules API friendly

9 years agoauth: parameters are resolved in wrapper functions
Daniel-Constantin Mierla [Tue, 16 Nov 2010 12:20:28 +0000 (13:20 +0100)]
auth: parameters are resolved in wrapper functions

- parameters for www/proxy_challenge() are resolved in wrapper functions
  in order to have auth_challenge() receiving the string or integer values
- cleaner approach for the perspective of exporting auth_challenge() to
  inter-modules API

9 years agoapp_lua: doc updated with rr export note
Daniel-Constantin Mierla [Tue, 16 Nov 2010 11:47:20 +0000 (12:47 +0100)]
app_lua: doc updated with rr export note

9 years agoapp_lua: exported functions from RR module to Lua
Daniel-Constantin Mierla [Tue, 16 Nov 2010 11:45:48 +0000 (12:45 +0100)]
app_lua: exported functions from RR module to Lua

9 years agoapp_lua: note about subpackage sr.sqlops
Daniel-Constantin Mierla [Tue, 16 Nov 2010 10:44:27 +0000 (11:44 +0100)]
app_lua: note about subpackage sr.sqlops

9 years agorr(k): record_route() and loose_route() exported via API
Daniel-Constantin Mierla [Tue, 16 Nov 2010 10:41:47 +0000 (11:41 +0100)]
rr(k): record_route() and loose_route() exported via API

9 years agoapp_lua: export to Lua the API from sqlops module
Daniel-Constantin Mierla [Tue, 16 Nov 2010 09:55:44 +0000 (10:55 +0100)]
app_lua: export to Lua the API from sqlops module

9 years agosqlops: return the reference to DB result value in API
Daniel-Constantin Mierla [Tue, 16 Nov 2010 09:55:00 +0000 (10:55 +0100)]
sqlops: return the reference to DB result value in API

9 years agoapp_lua: added note about sr.tm submodule
Daniel-Constantin Mierla [Mon, 15 Nov 2010 22:27:07 +0000 (23:27 +0100)]
app_lua: added note about sr.tm submodule

9 years agosqlops: documented new sqlres module parameter
Daniel-Constantin Mierla [Mon, 15 Nov 2010 21:36:40 +0000 (22:36 +0100)]
sqlops: documented new sqlres module parameter

9 years agosqlops: exported sql functions via module API structure
Daniel-Constantin Mierla [Mon, 15 Nov 2010 21:16:34 +0000 (22:16 +0100)]
sqlops: exported sql functions via module API structure

- new module parameter sqlres to be able to declare DB results IDs

9 years agosqlops: return $null pv if the value in result is null
Daniel-Constantin Mierla [Mon, 15 Nov 2010 20:47:51 +0000 (21:47 +0100)]
sqlops: return $null pv if the value in result is null

9 years agoapp_lua: exported first TM functions to Lua
Daniel-Constantin Mierla [Mon, 15 Nov 2010 18:41:20 +0000 (19:41 +0100)]
app_lua: exported first TM functions to Lua

- you can call t_reply() and t_relay() natively in Lua via
  sr.tm.t_reply(code, reason) and sr.tm.t_relay()