functions.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="dispatcher.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. </sectioninfo>
  7. <title>Functions</title>
  8. <section id="ds_select_dst">
  9. <title>
  10. <function>ds_select_dst(set, alg)</function>
  11. </title>
  12. <para>
  13. The method selects a destination from addresses set.
  14. </para>
  15. <para>Meaning of the parameters is as follows:</para>
  16. <itemizedlist>
  17. <listitem>
  18. <para>
  19. <emphasis>set</emphasis> - the id of the set from where to
  20. pick up destination address. It is the first column in
  21. destination list file.
  22. </para>
  23. </listitem>
  24. <listitem>
  25. <para>
  26. <emphasis>alg</emphasis> - the algorithm used to select the
  27. destination address.
  28. </para>
  29. <itemizedlist>
  30. <listitem>
  31. <para>
  32. "0" - hash over callid
  33. </para>
  34. </listitem>
  35. <listitem>
  36. <para>
  37. "1" - hash over from URI.
  38. </para>
  39. </listitem>
  40. <listitem>
  41. <para>
  42. "2" - hash over to URI.
  43. </para>
  44. </listitem>
  45. <listitem>
  46. <para>
  47. "3" - hash over the Request-URI.
  48. </para>
  49. </listitem>
  50. <listitem>
  51. <para>
  52. "X" - if the algorithm is not implemented, the
  53. first entry in set is chosen.
  54. </para>
  55. </listitem>
  56. </itemizedlist>
  57. </listitem>
  58. </itemizedlist>
  59. <example>
  60. <title><function>ds_select_dst</function> usage</title>
  61. <programlisting>
  62. ...
  63. ds_select_dst("1", "0");
  64. ...
  65. </programlisting>
  66. </example>
  67. </section>
  68. </section>