| 1 |
Standalone libraries: |
| 2 |
--------------------- |
| 3 |
|
| 4 |
binrpc - A library that provides common interface for different communication |
| 5 |
methods (UNIX sockets, TCP, UDP) using binary RPC as a transport form |
| 6 |
of data. The interface is documented directly in binrpc_api.h file and |
| 7 |
can by generated into HTML form by using Doxygen. There is no |
| 8 |
difference between compilation "with" or "without" SER (see compilation |
| 9 |
section below). |
| 10 |
|
| 11 |
Libraries common to modules: |
| 12 |
--------------------------- |
| 13 |
|
| 14 |
cds - Common Data Structures (basic string operations, dynamic string, |
| 15 |
vector, message queue, ...) |
| 16 |
|
| 17 |
presence - Library holding common structures and functions about presence |
| 18 |
(API for internal subscriptions, common presence structures, |
| 19 |
common presence data formats) |
| 20 |
requires internal libraries: cds |
| 21 |
|
| 22 |
xcap - Common XCAP operations and structures (XCAP authorization documents |
| 23 |
and XCAP resource lists processing) |
| 24 |
requires external libraries: libxml2, libcurl3 (nonSER version) |
| 25 |
requires internal libraries: cds |
| 26 |
|
| 27 |
shm_regex - Wrapper functions for regcomp, regexec, regfree and regerror |
| 28 |
using shared memory. See 'man regex' for details. |
| 29 |
|
| 30 |
Used by modules: pa, rls, dialog, rpa |
| 31 |
|
| 32 |
trie - Common digit trie implementation for prefix matching, used by |
| 33 |
carrierroute and userblocklist |
| 34 |
|
| 35 |
Used by IMS modules: icscf, usrloc_scscf, usrloc_pcscf, registrar_scscf, registrar_pcscf |
| 36 |
|
| 37 |
ims - IMS extensions helpers. Generally just getters. |
| 38 |
|
| 39 |
Usage: |
| 40 |
----- |
| 41 |
|
| 42 |
All libraries except shm_regex can be compiled "with ser" or "without ser". |
| 43 |
Compilation without ser may be useful for debugging purposes or for example for |
| 44 |
searching for memory leaks with some tool like valgrind. |
| 45 |
shm_regex library can be compiled only with ser. |
| 46 |
|
| 47 |
Compilation with ser: |
| 48 |
-------------------- |
| 49 |
|
| 50 |
Compilation and installation of these libraries is NOT DONE by running |
| 51 |
main Kamailio makefile now - it MUST be done MANUALLY. To compile and install |
| 52 |
libraries simply run |
| 53 |
|
| 54 |
make install |
| 55 |
|
| 56 |
in lib directory. You can select destination directory like in the case |
| 57 |
of ser, for example: |
| 58 |
|
| 59 |
make install prefix="/my/ser/directory" |
| 60 |
|
| 61 |
AFTER COMPILATION of libraries you can COMPILE MODULES using this |
| 62 |
libraries like PA, RLS or dialog. |
| 63 |
|
| 64 |
|
| 65 |
Running with Kamailio (Linux): |
| 66 |
---------------- |
| 67 |
|
| 68 |
The path to installed libraries must be known to linker on startup. This |
| 69 |
can be done by setting variable LD_LIBRARY_PATH before running Kamailio. For |
| 70 |
example, if libraries were installed to default directory (/usr/local), |
| 71 |
you should set LD_LIBRARY_PATH=/usr/local/lib/kamailio. In the case of |
| 72 |
nonstandard installation, you can use something like |
| 73 |
LD_LIBRARY_PATH=/my/ser/directory/lib/kamailio. |
| 74 |
|
| 75 |
Compilation without ser: |
| 76 |
-------------------- |
| 77 |
Use the alternate makefile, Makefile.noser: |
| 78 |
|
| 79 |
make -f Makefile.noser install |
| 80 |
|
| 81 |
Documentation |
| 82 |
------------- |
| 83 |
Documentation for all libraries is (or will be) in |
| 84 |
docbook-XML format and it is stored in doc directory (for example cds/doc |
| 85 |
contains documentation for Common Data Structures library). |
| 86 |
|
| 87 |
Documentation can be translated into HTML using a XSLT processor |
| 88 |
which is able to work with "include" directives. |
| 89 |
For example |
| 90 |
xmlto html cds/doc/cds.xml |
| 91 |
will create HTML documentation for CDS library in current directory. |