functions.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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="msilo.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. </sectioninfo>
  7. <title>Functions</title>
  8. <section id="m_store">
  9. <title><function>m_store(mode, next_hop)</function></title>
  10. <para>
  11. The method stores certain parts of the current SIP request (it
  12. should be called when the request type is MESSAGE and the
  13. destination user is offline or his UA does not support MESSAGE
  14. requests). If the user is registered with a UA which does not
  15. support MESSAGE requests you should not use mode="0"
  16. if you have changed the request uri with the contact address of
  17. user's UA.
  18. </para>
  19. <para>Meaning of the parameters is as follows:</para>
  20. <itemizedlist>
  21. <listitem>
  22. <para>
  23. <emphasis>mode</emphasis> - specifies what to save as R-URI.
  24. </para>
  25. <itemizedlist>
  26. <listitem>
  27. <para>
  28. "0" - first check if new_uri is an address of
  29. record. If yes, then use it and store it as R-URI, otherwise look at
  30. R-URI and, if necessary, at URI from "To" header.
  31. </para>
  32. </listitem>
  33. <listitem>
  34. <para>
  35. "1" - look first at R-URI and then at URI from
  36. "To" header.
  37. </para>
  38. </listitem>
  39. <listitem>
  40. <para>
  41. "2" - look only at URI form "To" header.
  42. </para>
  43. </listitem>
  44. </itemizedlist>
  45. </listitem>
  46. <listitem>
  47. <para>
  48. <emphasis>next_hop (optional)</emphasis> - specifies next hop for sending
  49. outgoing messages (use as "outbound
  50. proxy"). Its value can be unset, empty or set to a sip URI like
  51. "sip:127.0.0.1:5060".
  52. </para>
  53. </listitem>
  54. </itemizedlist>
  55. </section>
  56. <section id="m_dump">
  57. <title><function>m_dump(next_hop)</function></title>
  58. <para>
  59. The method sends stored messages for the SIP user that is going to
  60. register to his actual contact address. The method should be called
  61. when a REGISTER request is received and the "Expire" header has a
  62. value greater than zero. The parameter can contain machine used as
  63. "outbound proxy" or can be empty.
  64. </para>
  65. <para>Meaning of the parameters is as follows:</para>
  66. <itemizedlist>
  67. <listitem>
  68. <para>
  69. <emphasis>next_hop (optional)</emphasis> - specifies next hop for sending
  70. outgoing messages (use as "outbound
  71. proxy"). Its value can be unset, empty or set to a sip URI like
  72. "sip:127.0.0.1:5060".
  73. </para>
  74. </listitem>
  75. </itemizedlist>
  76. </section>
  77. </section>