Prechádzať zdrojové kódy

dispatcher - Fix typo in README and add return value information for ds_select_dst

The return value was used in the example, but not documented.
Olle E. Johansson 12 rokov pred
rodič
commit
78f0c33c37

+ 3 - 2
modules/dispatcher/README

@@ -685,12 +685,13 @@ Note
 
 
 4.1.  ds_select_dst(set, alg)
 4.1.  ds_select_dst(set, alg)
 
 
-   The method selects a destination from addresses set.
+   The method selects a destination from addresses set. It returns true if
+   a new destination is set.
 
 
    Meaning of the parameters is as follows:
    Meaning of the parameters is as follows:
      * set - the id of the set from where to pick up destination address.
      * set - the id of the set from where to pick up destination address.
        It is the first column in destination list file. The parameter can
        It is the first column in destination list file. The parameter can
-       be an integer or a variable holding an interger.
+       be an integer or a variable holding an integer.
      * alg - the algorithm used to select the destination address. The
      * alg - the algorithm used to select the destination address. The
        parameter can be an integer or a variable holding an interger.
        parameter can be an integer or a variable holding an interger.
           + "0" - hash over callid
           + "0" - hash over callid

+ 3 - 2
modules/dispatcher/doc/dispatcher_admin.xml

@@ -721,7 +721,8 @@ modparam("dispatcher", "force_dst", 1)
 		<function moreinfo="none">ds_select_dst(set, alg)</function>
 		<function moreinfo="none">ds_select_dst(set, alg)</function>
 		</title>
 		</title>
 		<para>
 		<para>
-		The method selects a destination from addresses set.
+		The method selects a destination from addresses set. It returns true if
+		a new destination is set.
 		</para>
 		</para>
 		<para>Meaning of the parameters is as follows:</para>
 		<para>Meaning of the parameters is as follows:</para>
 		<itemizedlist>
 		<itemizedlist>
@@ -730,7 +731,7 @@ modparam("dispatcher", "force_dst", 1)
 			<emphasis>set</emphasis> - the id of the set from where to pick
 			<emphasis>set</emphasis> - the id of the set from where to pick
 			up destination address. It is the first column in destination
 			up destination address. It is the first column in destination
 			list file. The parameter can be an integer or a variable holding
 			list file. The parameter can be an integer or a variable holding
-			an interger.
+			an integer.
 			</para>
 			</para>
 		</listitem>
 		</listitem>
 		<listitem>
 		<listitem>