Presence modules use some dynamic libraries distributed with SER and the compilation procedure and running is a bit more difficult than usual. For detailed description of libraries see their separate documentation (stored in lib/doc subdirectory of main SER directory).

3.1. Dependencies

Presence module dependecies may be found in sections PA module dependencies and RLS module dependencies. These modules depend on common libraries which have their own dependencies as mentioned below.

3.1.1. libcds dependencies

This library depends only on standard C libraries and needs no other external libraries.

3.1.2. libxcap dependencies

  • libcds (distributed with SER)

  • libxml2 (external library for parsing XML documents)

  • libcurl3 (external library for HTTP operations)

3.1.3. libpresence dependencies

  • libcds (distributed with SER)

3.2. Installation from CVS

There is an example of steps which need to be done while installing SER with shared libraries into directory /base/ser/directory (if no directory specified - no prefix parameter given - default value is used: /usr/local/)

  1. Download current ser sources:

    cvs -d :pserver:anonymous@cvs.berlios.de:/cvsroot/ser checkout sip_router

  2. Compile and install libraries for usage with SER:

    cd sip_router/lib

    make -f Makefile.ser install prefix=/base/ser/directory

    This procedure may fail in the case of unsatisfied library dependencies. You need to install all external libraries introduced in Section 3.1, “Dependencies”

  3. Compile and install SER with presence modules

    cd ..

    make install include_modules="pa rls mysql" prefix=/base/ser/directory

3.3. Installation from presence-snapshot

There are snapshots of sources from CVS named "presence snapshots" on our FTP server ftp://ftp.iptel.org/pub/ser/presence/.

Presence snapshot contains example config files, has modified Makefiles for simplier compilation and installation and it is a bit tested for presence functions. Snapshot compiles only modules needed by presence!

There is an example of steps which need to be done while installing SER from presence snapshot into directory /base/ser/directory (if no directory specified - no prefix parameter given - default value is used: /usr/local/)

  1. Download last versiom from ftp://ftp.iptel.org/pub/ser/presence/

  2. Compile and install

    make install prefix=/base/ser/directory

3.4. Running SER

Linker used for dynamic linking must know, where to find these libraries. This may be done by setting LD_LIBRARY_PATH before startup.

export LD_LIBRARY_PATH=/base/ser/directory/lib/ser

/base/ser/directory/sbin/ser -f /base/ser/directory/etc/ser/ser.cfg

Warning

If you want to run SER under sudo like “sudo /base/ser/directory/sbin/ser -f /base/ser/directory/etc/ser/ser.cfg” it might not work!
Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login