params.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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="cpl-c.parameters" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. </sectioninfo>
  7. <title>Parameters</title>
  8. <section id="cpl_db">
  9. <title><varname>cpl_db</varname> (string)</title>
  10. <para>
  11. A SQL URL have to be given to the module for knowing where the
  12. database containing the table with CPL scripts is locates. If
  13. required a user name and password can be specified for allowing
  14. the module to connect to the database server.
  15. </para>
  16. <warning>
  17. <para>
  18. This parameter is mandatory.
  19. </para>
  20. </warning>
  21. <example>
  22. <title>Set <varname>cpl_db</varname> parameter</title>
  23. <programlisting>
  24. ...
  25. modparam("cpl_c","cpl_db","mysql://user:passwd@host/database")
  26. ...
  27. </programlisting>
  28. </example>
  29. </section>
  30. <section id="cpl_table">
  31. <title><varname>cpl_table</varname> (string)</title>
  32. <para>
  33. Indicates the name of the table that store the CPL scripts.
  34. This table must be locate into the database specified by
  35. "cpl_db" parameter. For more about the format of the CPL table
  36. please see <filename>modules/cpl-c/init.mysql</filename>.
  37. </para>
  38. <warning>
  39. <para>
  40. This parameter is mandatory.
  41. </para>
  42. </warning>
  43. <example>
  44. <title>Set <varname>cpl_table</varname> parameter</title>
  45. <programlisting>
  46. ...
  47. modparam("cpl_c","cpl_table","cpltable")
  48. ...
  49. </programlisting>
  50. </example>
  51. </section>
  52. <section id="cpl_dtd_file">
  53. <title><varname>cpl_dtd_file</varname> (string)</title>
  54. <para>
  55. Points to the DTD file describing the CPL grammar. The file
  56. name may include also the path to the file. This path can be
  57. absolute or relative (be careful the path will be relative
  58. to the starting directory of SER).
  59. </para>
  60. <warning>
  61. <para>
  62. This parameter is mandatory.
  63. </para>
  64. </warning>
  65. <example>
  66. <title>Set <varname>cpl_dtd_file</varname> parameter</title>
  67. <programlisting>
  68. ...
  69. modparam("cpl_c","cpl_dtd_file","/etc/ser/cpl-06.dtd")
  70. ...
  71. </programlisting>
  72. </example>
  73. </section>
  74. <section id="log_dir">
  75. <title><varname>log_dir</varname> (string)</title>
  76. <para>
  77. Points to a directory where should be created all the log file
  78. generated by the LOG CPL node. A log file per user will be
  79. created (on demand) having the name username.log.
  80. </para>
  81. <note>
  82. <para>
  83. If this parameter is absent, the logging will be disabled
  84. without generating error on execution.
  85. </para>
  86. </note>
  87. <example>
  88. <title>Set <varname>log_dir</varname> parameter</title>
  89. <programlisting>
  90. ...
  91. modparam("cpl_c","log_dir","/var/log/ser/cpl")
  92. ...
  93. </programlisting>
  94. </example>
  95. </section>
  96. <section id="proxy_recurse">
  97. <title><varname>proxy_recurse</varname> (int)</title>
  98. <para>
  99. Tells for how many time is allow to have recurse for PROXY CPL
  100. node If it has value 2, when doing proxy, only twice the proxy
  101. action will be re-triggered by a redirect response; the third
  102. time, the proxy execution will end by going on REDIRECTION
  103. branch. The recurse feature can be disable by setting this
  104. parameter to 0
  105. </para>
  106. <para>
  107. Default value of this parameter is 0.
  108. </para>
  109. <example>
  110. <title>Set <varname>proxy_recurse</varname> parameter</title>
  111. <programlisting>
  112. ...
  113. modparam("cpl_c","proxy_recurse",2)
  114. ...
  115. </programlisting>
  116. </example>
  117. </section>
  118. <section id="proxy_route">
  119. <title><varname>proxy_route</varname> (int)</title>
  120. <para>
  121. Before doing proxy (forward), a script route can be executed.
  122. All modifications made by that route will be reflected only for
  123. the current branch.
  124. </para>
  125. <para>
  126. Default value of this parameter is 0 (none).
  127. </para>
  128. <example>
  129. <title>Set <varname>proxy_route</varname> parameter</title>
  130. <programlisting>
  131. ...
  132. modparam("cpl_c","proxy_route",1)
  133. ...
  134. </programlisting>
  135. </example>
  136. </section>
  137. <section id="nat_flag">
  138. <title><varname>nat_flag</varname> (int)</title>
  139. <para>
  140. Sets the flag used for marking calls via NAT. Used by lookup
  141. tag when retrieving a contact behind a NAT (this flag will be
  142. set).
  143. </para>
  144. <para>
  145. Default value of this parameter is 6.
  146. </para>
  147. <example>
  148. <title>Set <varname>nat_flag</varname> parameter</title>
  149. <programlisting>
  150. ...
  151. modparam("cpl_c","nat_flag",4)
  152. ...
  153. </programlisting>
  154. </example>
  155. </section>
  156. <section id="lookup_domain">
  157. <title><varname>lookup_domain</varname> (int)</title>
  158. <para>
  159. Tells if the lookup tag should use or not the domain part when
  160. doing user location search. Set it to a non zero value to force
  161. also domain matching.
  162. </para>
  163. <para>
  164. Default value of this parameter is 0.
  165. </para>
  166. <example>
  167. <title>Set <varname>lookup_domain</varname> parameter</title>
  168. <programlisting>
  169. ...
  170. modparam("cpl_c","lookup_domain",1)
  171. ...
  172. </programlisting>
  173. </example>
  174. </section>
  175. </section>