2
0

params.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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="xmlrpc.parameters" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. <revhistory>
  7. <revision>
  8. <revnumber>$Revision$</revnumber>
  9. <date>$Date$</date>
  10. </revision>
  11. </revhistory>
  12. </sectioninfo>
  13. <title>Parameters</title>
  14. <section id="route">
  15. <title><varname>route</varname> (string)</title>
  16. <para>
  17. Name of the route called for XMLRPC messages.
  18. </para>
  19. <para>
  20. This route will be called only for HTTP messages whose method is
  21. either GET or POST. The message visible inside the route
  22. will be a HTTP request converted to SIP (the uri will be fixed and
  23. a fake via will be added).
  24. </para>
  25. <para>
  26. The route should perform additional security checks to
  27. ensure the client is authorized to execute management/RPC functions
  28. and then it should call the <function>dispatch_rpc()</function>.
  29. </para>
  30. <para>
  31. Default: the main route is used.
  32. </para>
  33. <example>
  34. <title>Set <varname>route</varname> parameter</title>
  35. <programlisting>
  36. modparam("xmlrpc", "route", "route_for_xmlrpcs")
  37. </programlisting>
  38. </example>
  39. </section>
  40. <section id="autoconversion">
  41. <title><varname>autoconversion</varname> (string)</title>
  42. <para>
  43. Enable or disable automatic parameter type conversion globally,
  44. for all the methods parameters.
  45. If on, a type mismatch in a method parameter
  46. will not cause a fault if it is possible to automatically
  47. convert it to the type expected by the method.
  48. </para>
  49. <para>
  50. Default: off.
  51. </para>
  52. <para>
  53. It is recommended to leave this parameter to its default off value
  54. and fix instead the client application (which should use the
  55. proper types) or to modify the target rpc to accept any type
  56. (see the rpc scan '.' modifier).
  57. </para>
  58. <example>
  59. <title>Set the <varname>autoconversion</varname> parameter</title>
  60. <programlisting>
  61. modparam("xmlrpc", "autoconversion", 1)
  62. </programlisting>
  63. </example>
  64. </section>
  65. <section id="escape_cr">
  66. <title><varname>escape_cr</varname> (integer)</title>
  67. <para>
  68. Enable CR ('\r') escaping in replies. If enabled each '\r' in the
  69. xmlrpc reply will be replaced with "&amp;#xD;", according to the
  70. xml spec.
  71. </para>
  72. <para>
  73. It should be turned off only if you suspect interoperability problems
  74. with older clients.
  75. </para>
  76. <para>
  77. Default: on.
  78. </para>
  79. <example>
  80. <title>Set the <varname>escape_cr</varname> parameter</title>
  81. <programlisting>
  82. modparam("xmlrpc", "escape_cr", 1)
  83. </programlisting>
  84. </example>
  85. </section>
  86. <section id="double_lf_to_crlf">
  87. <title><varname>double_lf_to_crlf</varname> (integer)</title>
  88. <para>
  89. When enabled double LFs ('\n\n') in the input xmlrpc strings
  90. will be replaced with CR LF ('\r\n'). This makes LF LF behave like
  91. an escape character for CR LF and is needed for compatibility with
  92. kamailio tools and to work around buggy xmlrpc clients that don't
  93. escape the CR in CR LF ('\r' should be escaped to "&amp;#xD;"
  94. otherwise according to the xml spec "\r\n" will be transformed to
  95. '\n'), but need to send CR LF in the strings (e.g. they use
  96. <function>tm.t_uac_wait</function>).
  97. </para>
  98. <para>
  99. Note: when this option is turned on, there is no way to send a double
  100. LF ('\n\n'), it will always be transformed in CR LF ('\r\n').
  101. </para>
  102. <para>
  103. Default: off.
  104. </para>
  105. <example>
  106. <title>Set the <varname>double_lf_to_crlf</varname> parameter</title>
  107. <programlisting>
  108. modparam("xmlrpc", "double_lf_to_crlf", 1)
  109. </programlisting>
  110. </example>
  111. </section>
  112. <!--
  113. Obsolete (hardwired on in the rpc core functions, cannot be turned off)
  114. -andrei
  115. <section id="enable_introspection">
  116. <title><varname>enable_introspection</varname> (integer)</title>
  117. <para>
  118. Enable/disable additional introspection methods. If set to 1 then
  119. the functions defined in
  120. http://scripts.incutio.com/xmlrpc/introspection.html
  121. will be available on the server. If set to 0 then the functions will
  122. be disabled.
  123. </para>
  124. <para>
  125. Default: 1 (enabled).
  126. </para>
  127. <example>
  128. <title>Set <varname>enable_introspection</varname> parameter</title>
  129. <programlisting>
  130. modparam("xmlrpc", "enable_introspection", 0)
  131. </programlisting>
  132. </example>
  133. </section>
  134. -->
  135. </section>