params.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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="options.parameters" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. </sectioninfo>
  7. <title>Parameters</title>
  8. <section id="accept">
  9. <title><varname>accept</varname> (string)</title>
  10. <para>
  11. This parameter is the content of the Accept header field. Note: it
  12. is not clearly written in RFC3261 if a proxy should accept any
  13. content (the default "*/*") because it does not care
  14. about content. Or if it does not accept any content, which is
  15. "".
  16. </para>
  17. <para>
  18. Default value is "*/*".
  19. </para>
  20. <example>
  21. <title>Set <varname>accept</varname> parameter</title>
  22. <programlisting>
  23. ...
  24. modparam("options", "accept", "application/*")
  25. ...
  26. </programlisting>
  27. </example>
  28. </section>
  29. <section id="accept_encoding">
  30. <title><varname>accept_encoding</varname> (string)</title>
  31. <para>
  32. This parameter is the content of the Accept-Encoding header field.
  33. Please do not change the default value because SER does not support
  34. any encodings yet.
  35. </para>
  36. <para>
  37. Default value is "".
  38. </para>
  39. <example>
  40. <title>Set <varname>accept_encoding</varname> parameter</title>
  41. <programlisting>
  42. ...
  43. modparam("options", "accept_encoding", "gzip")
  44. ...
  45. </programlisting>
  46. </example>
  47. </section>
  48. <section id="accept_language">
  49. <title><varname>accept_language</varname> (string)</title>
  50. <para>
  51. This parameter is the content of the Accept-Language header field.
  52. You can set any language code which you prefer for error
  53. descriptions from other devices, but presumably there are not much
  54. devices around which support other languages then the default
  55. English.
  56. </para>
  57. <para>
  58. Default value is "en".
  59. </para>
  60. <example>
  61. <title>Set <varname>accept_language</varname> parameter</title>
  62. <programlisting>
  63. ...
  64. modparam("options", "accept_language", "de")
  65. ...
  66. </programlisting>
  67. </example>
  68. </section>
  69. <section id="options.supported">
  70. <title><varname>supported</varname> (string)</title>
  71. <para>
  72. This parameter is the content of the Supported header field Here
  73. you can enter the extensions which are supported by your SER config.
  74. Normally you should only use values here which are registered with the
  75. IANA.
  76. </para>
  77. <para>
  78. Default value is "".
  79. </para>
  80. <example>
  81. <title>Set <varname>supported</varname> parameter</title>
  82. <programlisting>
  83. ...
  84. modparam("options", "supported", "100rel")
  85. ...
  86. </programlisting>
  87. </example>
  88. </section>
  89. <section id="options.contact">
  90. <title><varname>contact</varname> (string)</title>
  91. <para>
  92. The content of this parameter will be inserted into the reply as the
  93. URI of the Contact header. If this parameter is empty (default case)
  94. then no Contact header in included in the reply. If this parameter
  95. is set to "dstip" the reply contains a Contact header with the
  96. IP, port and transport of the socket where the request was sent to.
  97. If this parameter is set to "ruri" the reply contains a Contact header
  98. with the same URI as the request URI of the original OPTIONS request.
  99. </para>
  100. <para>
  101. Default value is "".
  102. </para>
  103. <example>
  104. <title>Set <varname>contact</varname> parameter</title>
  105. <programlisting>
  106. ...
  107. modparam("options", "contact", "example.com")
  108. ...
  109. </programlisting>
  110. </example>
  111. </section>
  112. <section id="options.contact_param">
  113. <title><varname>contact_param</varname> (string)</title>
  114. <para>
  115. This parameter is appended to the value of the Contact header is
  116. case it is set. If just this parameter is set but the contact module
  117. parameter not, then the contact parameter is automatically set to
  118. dstip.
  119. </para>
  120. <para>
  121. Default value is "".
  122. </para>
  123. <example>
  124. <title>Set <varname>contact_param</varname> parameter</title>
  125. <programlisting>
  126. ...
  127. modparam("options", "contact_param", "lr=on")
  128. ...
  129. </programlisting>
  130. </example>
  131. </section>
  132. </section>