functions.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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="acc.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. </sectioninfo>
  7. <title>Functions</title>
  8. <section id="acc_log_request1">
  9. <title><function>acc_log_request(comment)</function></title>
  10. <para>
  11. <function>acc_request</function> reports on a request, for example,
  12. it can be used to report on missed calls to off-line users who are
  13. replied 404. To avoid multiple reports on UDP request
  14. retransmission, you would need to embed the action in stateful
  15. processing.
  16. </para>
  17. <para>
  18. Meaning of the parameters is as follows:
  19. </para>
  20. <itemizedlist>
  21. <listitem>
  22. <para><emphasis>comment</emphasis> - Comment to be appended.
  23. </para>
  24. </listitem>
  25. </itemizedlist>
  26. <example>
  27. <title>acc_log_request usage</title>
  28. <programlisting>
  29. ...
  30. acc_log_request("Some comment");
  31. ...
  32. </programlisting>
  33. </example>
  34. </section>
  35. <section id="acc_db_request2">
  36. <title><function>acc_db_request(comment, table)</function></title>
  37. <para>
  38. Like <function>acc_log_request</function>,
  39. <function>acc_db_request</function> reports on a request. The
  40. report is sent to database at "db_url", in the table referred to in
  41. the second action parameter
  42. </para>
  43. <para>
  44. Meaning of the parameters is as follows:
  45. </para>
  46. <itemizedlist>
  47. <listitem>
  48. <para><emphasis>comment</emphasis> - Comment to be appended.</para>
  49. </listitem>
  50. <listitem>
  51. <para><emphasis>table</emphasis> - Database table to be used.</para>
  52. </listitem>
  53. </itemizedlist>
  54. <example>
  55. <title>acc_db_request usage</title>
  56. <programlisting>
  57. ...
  58. acc_log_request("Some comment", "Some table");
  59. ...
  60. </programlisting>
  61. </example>
  62. </section>
  63. <section id="acc_rad_request">
  64. <title><function>acc_rad_request(comment)</function></title>
  65. <para>
  66. Like <function>acc_log_request</function>,
  67. <function>acc_rad_request</function> reports on a request. It
  68. reports to radius server as configured in "radius_config".
  69. </para>
  70. <para>
  71. Meaning of the parameters is as follows:
  72. </para>
  73. <itemizedlist>
  74. <listitem>
  75. <para>
  76. <emphasis>comment</emphasis> - Comment to be appended.
  77. </para>
  78. </listitem>
  79. </itemizedlist>
  80. <example>
  81. <title>acc_rad_request usage</title>
  82. <programlisting>
  83. ...
  84. acc_rad_request("Some comment");
  85. ...
  86. </programlisting>
  87. </example>
  88. </section>
  89. <section id="acc_diam_request">
  90. <title><function>acc_diam_request(comment)</function></title>
  91. <para>
  92. Like <function>acc_log_request</function>, <function
  93. moreinfo="none">acc_diam_request</function> reports on a
  94. request. It reports to Diameter server.
  95. </para>
  96. <para>
  97. Meaning of the parameters is as follows:
  98. </para>
  99. <itemizedlist>
  100. <listitem>
  101. <para><emphasis>comment</emphasis> - Comment to be appended.
  102. </para>
  103. </listitem>
  104. </itemizedlist>
  105. <example>
  106. <title>acc_diam_request usage</title>
  107. <programlisting>
  108. ...
  109. acc_diam_request("Some comment");
  110. ...
  111. </programlisting>
  112. </example>
  113. </section>
  114. </section>