ソースを参照

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 年 前
コミット
78f0c33c37
2 ファイル変更6 行追加4 行削除
  1. 3 2
      modules/dispatcher/README
  2. 3 2
      modules/dispatcher/doc/dispatcher_admin.xml

+ 3 - 2
modules/dispatcher/README

@@ -685,12 +685,13 @@ Note
 
 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:
      * 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
-       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
        parameter can be an integer or a variable holding an interger.
           + "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>
 		</title>
 		<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>Meaning of the parameters is as follows:</para>
 		<itemizedlist>
@@ -730,7 +731,7 @@ modparam("dispatcher", "force_dst", 1)
 			<emphasis>set</emphasis> - the id of the set from where to pick
 			up destination address. It is the first column in destination
 			list file. The parameter can be an integer or a variable holding
-			an interger.
+			an integer.
 			</para>
 		</listitem>
 		<listitem>