|
@@ -10,20 +10,14 @@ Daniel-Constantin Mierla
|
|
|
|
|
|
<[email protected]>
|
|
|
|
|
|
-Edited by
|
|
|
-
|
|
|
Carsten Bock
|
|
|
|
|
|
ng-voice GmbH
|
|
|
|
|
|
-Edited by
|
|
|
-
|
|
|
Olle E. Johansson
|
|
|
|
|
|
Edvina AB
|
|
|
|
|
|
-Edited by
|
|
|
-
|
|
|
Alessandro Arrichiello
|
|
|
|
|
|
Hewlett Packard
|
|
@@ -83,6 +77,7 @@ Alessandro Arrichiello
|
|
|
3.30. ds_hash_check_interval (int)
|
|
|
3.31. outbound_proxy (str)
|
|
|
3.32. ds_default_socket (str)
|
|
|
+ 3.33. ds_timer_mode (int)
|
|
|
|
|
|
4. Functions
|
|
|
|
|
@@ -159,13 +154,14 @@ Alessandro Arrichiello
|
|
|
1.31. Set the "ds_hash_check_interval" parameter
|
|
|
1.32. Set the "outbound_proxy" parameter
|
|
|
1.33. Set the "ds_default_socket" parameter
|
|
|
- 1.34. ds_select_dst usage
|
|
|
- 1.35. ds_mark_dst usage
|
|
|
- 1.36. ds_list_exist usage
|
|
|
- 1.37. ds_is_from_list usage
|
|
|
- 1.38. ds_load_unset usage
|
|
|
- 1.39. dispatcher list file
|
|
|
- 1.40. Kamailio config script - sample dispatcher usage
|
|
|
+ 1.34. Set the "ds_timer_mode" parameter
|
|
|
+ 1.35. ds_select_dst usage
|
|
|
+ 1.36. ds_mark_dst usage
|
|
|
+ 1.37. ds_list_exist usage
|
|
|
+ 1.38. ds_is_from_list usage
|
|
|
+ 1.39. ds_load_unset usage
|
|
|
+ 1.40. dispatcher list file
|
|
|
+ 1.41. Kamailio config script - sample dispatcher usage
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
|
|
|
@@ -211,6 +207,7 @@ Chapter 1. Admin Guide
|
|
|
3.30. ds_hash_check_interval (int)
|
|
|
3.31. outbound_proxy (str)
|
|
|
3.32. ds_default_socket (str)
|
|
|
+ 3.33. ds_timer_mode (int)
|
|
|
|
|
|
4. Functions
|
|
|
|
|
@@ -319,6 +316,7 @@ Chapter 1. Admin Guide
|
|
|
3.30. ds_hash_check_interval (int)
|
|
|
3.31. outbound_proxy (str)
|
|
|
3.32. ds_default_socket (str)
|
|
|
+ 3.33. ds_timer_mode (int)
|
|
|
|
|
|
3.1. list_file (string)
|
|
|
|
|
@@ -789,6 +787,26 @@ Note
|
|
|
modparam("dispatcher", "ds_default_socket", "udp:192.168.0.125:5060")
|
|
|
...
|
|
|
|
|
|
+3.33. ds_timer_mode (int)
|
|
|
+
|
|
|
+ Specify the timer process to be used by the module for keepalives and
|
|
|
+ active dialogs tracking.
|
|
|
+
|
|
|
+ It can be set to:
|
|
|
+ * 0 - use main timer process.
|
|
|
+ * 1 - use secondary timer process.
|
|
|
+
|
|
|
+ On a server with a lot of traffic, using secondary timer can help with
|
|
|
+ performances, because the main timer can be overloaded by taking care
|
|
|
+ of transactions retransmissions and expirations of items in memory.
|
|
|
+
|
|
|
+ Default value is "0".
|
|
|
+
|
|
|
+ Example 1.34. Set the "ds_timer_mode" parameter
|
|
|
+ ...
|
|
|
+ modparam("dispatcher", "ds_timer_mode", 1)
|
|
|
+ ...
|
|
|
+
|
|
|
4. Functions
|
|
|
|
|
|
4.1. ds_select_dst(set, alg[, limit])
|
|
@@ -873,7 +891,7 @@ Note
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.34. ds_select_dst usage
|
|
|
+ Example 1.35. ds_select_dst usage
|
|
|
...
|
|
|
ds_select_dst("1", "0");
|
|
|
...
|
|
@@ -937,7 +955,7 @@ ds_select_dst("1", "4", "3");
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.35. ds_mark_dst usage
|
|
|
+ Example 1.36. ds_mark_dst usage
|
|
|
...
|
|
|
failure_route[tryagain] {
|
|
|
...
|
|
@@ -954,7 +972,7 @@ failure_route[tryagain] {
|
|
|
|
|
|
This function can be used from ANY_ROUTE.
|
|
|
|
|
|
- Example 1.36. ds_list_exist usage
|
|
|
+ Example 1.37. ds_list_exist usage
|
|
|
...
|
|
|
if(ds_list_exist("10")) {
|
|
|
...
|
|
@@ -997,7 +1015,7 @@ if(ds_list_exist("10")) {
|
|
|
|
|
|
This function can be used from ANY_ROUTE.
|
|
|
|
|
|
- Example 1.37. ds_is_from_list usage
|
|
|
+ Example 1.38. ds_is_from_list usage
|
|
|
...
|
|
|
if(ds_is_from_list()) {
|
|
|
...
|
|
@@ -1031,7 +1049,7 @@ if(ds_is_from_list("10", "3", "sip:127.0.0.1:5080")) {
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
|
|
|
BRANCH_ROUTE and ONREPLY_ROUTE.
|
|
|
|
|
|
- Example 1.38. ds_load_unset usage
|
|
|
+ Example 1.39. ds_load_unset usage
|
|
|
...
|
|
|
route {
|
|
|
...
|
|
@@ -1228,7 +1246,7 @@ setid(int) destination(sip uri) flags(int,opt) priority(int,opt) attrs(str,opt)
|
|
|
For database, each element of a line resides in a different column.
|
|
|
Next is a dispatcher.list file example:
|
|
|
|
|
|
- Example 1.39. dispatcher list file
|
|
|
+ Example 1.40. dispatcher list file
|
|
|
...
|
|
|
# $Id$
|
|
|
# dispatcher destination sets
|
|
@@ -1253,7 +1271,7 @@ r,opt)
|
|
|
|
|
|
Next picture shows a sample usage of the dispatcher module.
|
|
|
|
|
|
- Example 1.40. Kamailio config script - sample dispatcher usage
|
|
|
+ Example 1.41. Kamailio config script - sample dispatcher usage
|
|
|
...
|
|
|
#!KAMAILIO
|
|
|
#
|