Module: sip-router
Branch: master
Commit: ca91d71fd177ca9d40528c8f497a1ba789d16abf
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ca91d71…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun May 1 15:11:34 2011 +0200
htable: readme was regenerated
---
modules_k/htable/README | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/modules_k/htable/README b/modules_k/htable/README
index 83f2cec..02a527d 100644
--- a/modules_k/htable/README
+++ b/modules_k/htable/README
@@ -11,7 +11,7 @@ Elena-Ramona Modroiu
<ramona(a)rosdev.ro>
- Copyright © 2008-2011
http://www.asipto.com
+ Copyright � 2008-2011
http://www.asipto.com
__________________________________________________________________
Table of Contents
@@ -130,7 +130,7 @@ Chapter 1. Admin Guide
You can read more about hash tables at:
http://en.wikipedia.org/wiki/Hash_table.
- The “name” can be a static string or can include pseudo- variables that
+ The "name" can be a static string or can include pseudo- variables that
will be replaced at runtime.
Example 1.1. Accessing $sht(htname=>key)
@@ -153,7 +153,7 @@ $sht(a=>$ci::srcip) = $si;
the failed authentications per user and one for storing the time of
last authentication attempt. To ensure unique name per user, the hash
table uses a combination of authentication username and text
- “::auth_count” and “::last_auth”.
+ "::auth_count" and "::last_auth".
Example 1.2. Dictionary attack limitation
...
@@ -268,6 +268,8 @@ if(is_present_hf("Authorization"))
database table when the SIP server is stopped (i.e., ensure
persistency over restarts). Default value is 0 (no write back to db
table).
+ * initval - the integer value to be returned insted of $null when a
+ requested key is not set.
Default value is NULL.
@@ -275,6 +277,7 @@ if(is_present_hf("Authorization"))
...
modparam("htable", "htable",
"a=>size=4;autoexpire=7200;dbtable=htable_a;")
modparam("htable", "htable", "b=>size=5;")
+modparam("htable", "htable",
"c=>size=4;autoexpire=7200;initval=1;")
...
3.2. db_url (str)
@@ -427,6 +430,10 @@ sht_rm_value_re("ha=>.*");
* $sht(htable=>key)
* $shtex(htable=>key)
+ * $shtcn(htable=>key)
+ * $shtcv(htable=>key)
+ * $shtinc(htable=>key)
+ * $shtval(htable=>key)
Exported pseudo-variables are documented at
http://www.kamailio.org/dokuwiki/.