|
@@ -10,7 +10,7 @@ Federico Cabiddu
|
|
|
|
|
|
<[email protected]>
|
|
<[email protected]>
|
|
|
|
|
|
- Copyright © 2014 Federico Cabiddu
|
|
|
|
|
|
+ Copyright © 2014 Federico Cabiddu
|
|
__________________________________________________________________
|
|
__________________________________________________________________
|
|
|
|
|
|
Table of Contents
|
|
Table of Contents
|
|
@@ -29,18 +29,18 @@ Federico Cabiddu
|
|
|
|
|
|
4. Functions
|
|
4. Functions
|
|
|
|
|
|
- 4.1. t_store()
|
|
|
|
- 4.2. t_append(domain, ruri)
|
|
|
|
- 4.3. t_append_to(tindex, tlabel, domain)
|
|
|
|
|
|
+ 4.1. ts_store()
|
|
|
|
+ 4.2. ts_append(domain, ruri)
|
|
|
|
+ 4.3. ts_append_to(tindex, tlabel, domain)
|
|
|
|
|
|
5. Statistics
|
|
5. Statistics
|
|
|
|
|
|
List of Examples
|
|
List of Examples
|
|
|
|
|
|
1.1. Set hash_size parameter
|
|
1.1. Set hash_size parameter
|
|
- 1.2. t_store usage
|
|
|
|
- 1.3. t_append usage
|
|
|
|
- 1.4. t_append_to usage
|
|
|
|
|
|
+ 1.2. ts_store usage
|
|
|
|
+ 1.3. ts_append usage
|
|
|
|
+ 1.4. ts_append_to usage
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
Chapter 1. Admin Guide
|
|
|
|
|
|
@@ -58,9 +58,9 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
4. Functions
|
|
4. Functions
|
|
|
|
|
|
- 4.1. t_store()
|
|
|
|
- 4.2. t_append(domain, ruri)
|
|
|
|
- 4.3. t_append_to(tindex, tlabel, domain)
|
|
|
|
|
|
+ 4.1. ts_store()
|
|
|
|
+ 4.2. ts_append(domain, ruri)
|
|
|
|
+ 4.3. ts_append_to(tindex, tlabel, domain)
|
|
|
|
|
|
5. Statistics
|
|
5. Statistics
|
|
|
|
|
|
@@ -70,7 +70,7 @@ Chapter 1. Admin Guide
|
|
Platform. It stores in an internal table transactions for an user and
|
|
Platform. It stores in an internal table transactions for an user and
|
|
add branches to them if new contacts are added.
|
|
add branches to them if new contacts are added.
|
|
|
|
|
|
- For each message, the modules stores “Request-URI� (“R-URI�), URI and
|
|
|
|
|
|
+ For each message, the modules stores "Request-URI" ("R-URI"), URI and
|
|
the internal transaction index and label.
|
|
the internal transaction index and label.
|
|
|
|
|
|
When the transaction is destroyed (by the TM module, the transaction is
|
|
When the transaction is destroyed (by the TM module, the transaction is
|
|
@@ -105,7 +105,7 @@ Chapter 1. Admin Guide
|
|
must be a power of two, otherwise it will be rounded down to the
|
|
must be a power of two, otherwise it will be rounded down to the
|
|
nearest power of two.
|
|
nearest power of two.
|
|
|
|
|
|
- Default value is “2048�.
|
|
|
|
|
|
+ Default value is "2048".
|
|
|
|
|
|
Example 1.1. Set hash_size parameter
|
|
Example 1.1. Set hash_size parameter
|
|
...
|
|
...
|
|
@@ -114,26 +114,26 @@ modparam("tsilo", "hash_size", 1024)
|
|
|
|
|
|
4. Functions
|
|
4. Functions
|
|
|
|
|
|
- 4.1. t_store()
|
|
|
|
- 4.2. t_append(domain, ruri)
|
|
|
|
- 4.3. t_append_to(tindex, tlabel, domain)
|
|
|
|
|
|
+ 4.1. ts_store()
|
|
|
|
+ 4.2. ts_append(domain, ruri)
|
|
|
|
+ 4.3. ts_append_to(tindex, tlabel, domain)
|
|
|
|
|
|
-4.1. t_store()
|
|
|
|
|
|
+4.1. ts_store()
|
|
|
|
|
|
The method stores r-uri, tindex and tlabel of the current transaction.
|
|
The method stores r-uri, tindex and tlabel of the current transaction.
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.2. t_store usage
|
|
|
|
|
|
+ Example 1.2. ts_store usage
|
|
...
|
|
...
|
|
if (is_method("INVITE")) {
|
|
if (is_method("INVITE")) {
|
|
if (t_newtran()) {
|
|
if (t_newtran()) {
|
|
- t_store();
|
|
|
|
|
|
+ ts_store();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
...
|
|
...
|
|
|
|
|
|
-4.2. t_append(domain, ruri)
|
|
|
|
|
|
+4.2. ts_append(domain, ruri)
|
|
|
|
|
|
The method add branches to all the stored transactions for the SIP ruri
|
|
The method add branches to all the stored transactions for the SIP ruri
|
|
passed as parameter, performing a contact lookup on the table specified
|
|
passed as parameter, performing a contact lookup on the table specified
|
|
@@ -149,14 +149,14 @@ if (is_method("INVITE")) {
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.3. t_append usage
|
|
|
|
|
|
+ Example 1.3. ts_append usage
|
|
...
|
|
...
|
|
if (is_method("REGISTER")) {
|
|
if (is_method("REGISTER")) {
|
|
- t_append("location", "$tu");
|
|
|
|
|
|
+ ts_append("location", "$tu");
|
|
}
|
|
}
|
|
...
|
|
...
|
|
|
|
|
|
-4.3. t_append_to(tindex, tlabel, domain)
|
|
|
|
|
|
+4.3. ts_append_to(tindex, tlabel, domain)
|
|
|
|
|
|
The method add branches to the transaction identified by tindex and
|
|
The method add branches to the transaction identified by tindex and
|
|
tlabel, performing a contacts lookup on the table specified by the
|
|
tlabel, performing a contacts lookup on the table specified by the
|
|
@@ -173,12 +173,12 @@ if (is_method("REGISTER")) {
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.4. t_append_to usage
|
|
|
|
|
|
+ Example 1.4. ts_append_to usage
|
|
...
|
|
...
|
|
if (is_method("REGISTER")) {
|
|
if (is_method("REGISTER")) {
|
|
$var(tindex) = ...
|
|
$var(tindex) = ...
|
|
$var(tlabel) = ...
|
|
$var(tlabel) = ...
|
|
- t_append_to("$var(tindex)", "$var(tlabel", "location");
|
|
|
|
|
|
+ ts_append_to("$var(tindex)", "$var(tlabel", "location");
|
|
}
|
|
}
|
|
...
|
|
...
|
|
|
|
|