install.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. <!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED">
  5. ]>
  6. <section><title>Installation and running</title>
  7. <para>Presence modules use some dynamic libraries distributed with SIP-router and the
  8. compilation procedure and running is a bit more difficult than usual. For detailed
  9. description of libraries see their separate documentation (stored in
  10. <filename>lib/doc</filename> subdirectory of main SIP-router directory).</para>
  11. <section><title>Incompatibility</title>
  12. <para>XCAP module needed for authorization is not working with TLS module. For
  13. more information see <xref linkend="pres.known_problems"/>.
  14. </para>
  15. </section>
  16. <section id="pres.dependencies"><title>Dependencies</title>
  17. <para>Presence module dependecies may be found in sections <link
  18. linkend="pa.dependencies">PA module dependencies</link> and <link
  19. linkend="rls.dependencies">RLS module dependencies</link>. These modules depend
  20. on common libraries which have their own dependencies as mentioned below.
  21. </para>
  22. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  23. href="../../lib/doc/libraries.xml"
  24. xpointer="xpointer(id('lib.dependencies')/child::*[not(self::title)])">
  25. <xi:fallback>
  26. <para><emphasis>Missing dependencies for common
  27. libraries!</emphasis></para>
  28. </xi:fallback>
  29. </xi:include>
  30. <!--<para>Presence modules and common libraries need these external libraries installed
  31. (development versions, with header files):</para>
  32. <itemizedlist>
  33. <listitem><para>libxml2</para></listitem>
  34. <listitem><para>libcurl3</para></listitem>
  35. </itemizedlist>-->
  36. </section>
  37. <section><title>Installation from CVS</title>
  38. <para>There is an example of steps which need to be done while installing SIP-router
  39. with shared libraries into directory /base/ser/directory (if no directory specified -
  40. no prefix parameter given - default value is used: /usr/local/)
  41. <orderedlist>
  42. <listitem><para>Download current SIP-router sources:</para>
  43. <para><userinput>cvs -d :pserver:[email protected]:/cvsroot/ser checkout sip_router</userinput>
  44. </para></listitem>
  45. <listitem><para>Download very useful <application>ser_ctl</application> utility
  46. (not necessary, but it is handy for adding data into database, running
  47. XML-RPC functions etc):</para>
  48. <para><userinput>cvs -d :pserver:[email protected]:/cvsroot/ser checkout serctl</userinput>
  49. </para></listitem>
  50. <listitem><para>Compile and install SIP-router with presence modules. Common
  51. libraries should be compiled automaticaly - it may fail in the case of
  52. unsatisfied library dependencies. You need to install all external libraries
  53. introduced in <xref linkend="pres.dependencies"/></para>
  54. <para><userinput>cd sip_router</userinput></para>
  55. <para><userinput>make install group_include="standard,presence,standard-dep" prefix=/base/ser/directory</userinput></para>
  56. </listitem>
  57. </orderedlist>
  58. </para>
  59. </section> <!-- Installation from CVS -->
  60. <section><title>Presence snapshots</title>
  61. <para>In past there were published <quote>presence snapshots</quote> with stable
  62. and tested code and up to date documentation. This will change - tested and
  63. documented stable features will be probably imported into stable SIP-router branch
  64. (Ottendorf) and unstable ones will remain in CVS head.
  65. </para>
  66. </section> <!-- snapshots -->
  67. <section><title>Running SIP-router</title>
  68. <para>Linker used for dynamic linking must know, where to find these libraries.
  69. This may be done by setting <varname>LD_LIBRARY_PATH</varname> before
  70. startup.</para>
  71. <para><userinput>export LD_LIBRARY_PATH=/base/ser/directory/lib/ser</userinput></para>
  72. <para><userinput>/base/ser/directory/sbin/ser -f /base/ser/directory/etc/ser/ser.cfg</userinput></para>
  73. <warning>If you want to run SIP-router under sudo like <quote>sudo /base/ser/directory/sbin/ser -f
  74. /base/ser/directory/etc/ser/ser.cfg</quote> it need not work - it is possible
  75. that LD_LIBRARY_PATH will not be propagated in this case!</warning>
  76. </section> <!-- running SIP-router -->
  77. <section><title>Database initialization</title>
  78. <warning>
  79. <para>This paragraph can be out-of-dated by changes in DB init scripts or in
  80. ser_ctl. It has only informative value!</para>
  81. </warning>
  82. <para>It is very handy to use SIP-router together with database - at least domains and
  83. users with attributes can be stored there. First must be database created -
  84. there are scripts to do this in SIP-router's source tree in directory scripts; for
  85. example "scripts/mysql/ser_mysql.sh create" will create the database for MySQL.
  86. <note><para>Later MySQL versions can complain with current script, if so, you
  87. can try to remove qotes around $PW in script to get it into work.</para></note>
  88. </para>
  89. <para>After database creation you can add data using
  90. <application>ser_ctl</application> utility:
  91. <itemizedlist>
  92. <listitem><para>add domain:</para>
  93. <para><userinput>ser_domain add test test-domain.com</userinput></para></listitem>
  94. <listitem><para>add user <quote>parf</quote> with password <quote>parf</quote>:</para>
  95. <para><userinput>ser_user add parf</userinput></para>
  96. <para><userinput>ser_uri add parf [email protected]</userinput></para>
  97. <para><userinput>ser_cred add parf parf test test-domain.com parf</userinput></para>
  98. </listitem>
  99. </itemizedlist>
  100. </para>
  101. <note>
  102. <para>Running ser_xxx without arguments shows help.</para>
  103. <para>You can specify database URI used by <application>ser_ctl</application>;
  104. for example you can use <quote>postgres://...</quote> instead of default
  105. <quote>mysql://...</quote> etc.</para>
  106. </note>
  107. </section>
  108. </section>