How-To: Create and use a library in SIP Router

Create a library

Use a library from a module

SERLIBPATH=../../lib
# libraries, in the format path/shortname , where shortname is
# what will be used for -l
SER_LIBS=$(SERLIBPATH)/print/print

Compiling the module will re-compile the library automatically if needed (e.g. some change in it). make install will also re-link the module (needed to change the rpath).