Browse code

dispatcher: updated the example of destinations list file

Daniel-Constantin Mierla authored on 19/05/2017 12:58:07
Showing 2 changed files
... ...
@@ -1,15 +1,15 @@
1
-# $Id$
2
-# dispatcher destination sets
1
+#
2
+# dispatcher destination sets (groups)
3 3
 #
4 4
 
5 5
 # line format
6
-# setit(int) destination(sip uri) flags(int,opt) priority(int,opt) attributes(str,opt)
6
+# setid(int) destination(sip uri) flags(int,opt) priority(int,opt) attributes(str,opt)
7 7
 
8 8
 # proxies
9
-2 sip:127.0.0.1:5080
10
-2 sip:127.0.0.1:5082
9
+2 sip:127.0.0.1:5080;transport=tcp 0 10 class=4;prefix=448;strip=2
10
+2 sip:127.0.0.1:5082;px=vx 0 5 duid=abc;socket=udp:192.168.0.125:5060;pipe=p10
11 11
 
12 12
 # gateways
13
-1 sip:127.0.0.1:7070
14
-1 sip:127.0.0.1:7072
13
+1 sip:127.0.0.1:7070 0 0 duid=xyz;maxload=20
14
+1 sip:127.0.0.1:7072 0 5
15 15
 1 sip:127.0.0.1:7074
... ...
@@ -77,7 +77,7 @@
77 77
 	<section id="dispatcher.p.list_file">
78 78
 		<title><varname>list_file</varname> (string)</title>
79 79
 		<para>
80
-		Path to the file with destination sets.
80
+		Path to the file with destination sets (destination groups).
81 81
 		</para>
82 82
 		<para>
83 83
 		<emphasis>
... ...
@@ -98,7 +98,7 @@ modparam("dispatcher", "list_file", "/var/run/kamailio/dispatcher.list")
98 98
 	<section id="dispatcher.p.db_url">
99 99
  		<title><varname>db_url</varname> (string)</title>
100 100
  		<para>
101
-		If you want to load the sets of gateways from the database you must set
101
+		If you want to load the list of gateways from the database you must set
102 102
 		this parameter.
103 103
  		</para>
104 104
  		<para>
... ...
@@ -119,7 +119,7 @@ modparam("dispatcher", "db_url", "mysql://user:passwb@localhost/database")
119 119
 	<section id="dispatcher.p.table_name">
120 120
 		<title><varname>table_name</varname> (string)</title>
121 121
 		<para>
122
-		If you want to load the sets of gateways from the database you must set
122
+		If you want to load the list of gateways from the database you must set
123 123
 		this parameter as the database name.
124 124
 		</para>
125 125
 		<para>
... ...
@@ -140,7 +140,8 @@ modparam("dispatcher", "table_name", "my_dispatcher")
140 140
 	<section id="dispatcher.p.setid_col">
141 141
 		<title><varname>setid_col</varname> (string)</title>
142 142
 		<para>
143
-			The column's name in the database storing the gateway's group id.
143
+			The column's name in the database storing the gateway's set (group)
144
+			id.
144 145
 		</para>
145 146
 		<para>
146 147
 		<emphasis>
... ...
@@ -1524,8 +1525,8 @@ onreply_route {
1524 1524
 		<title>Destination List File</title>
1525 1525
 		<para>
1526 1526
 		Each destination point must be on one line. First token is the set
1527
-		id (an integer value), followed by destination address
1528
-		(s string value in SIP URI format).
1527
+		id (an integer value, also referenced by group id), followed by
1528
+		destination address (string value in full SIP URI format).
1529 1529
 		</para>
1530 1530
 		<para>
1531 1531
 		Optionally, these fields can be followed by: