Making the SER Binaries and installing

Once the source code has been loaded ( either via cvs or by extraction from a zip file ) we are now ready to compile and install the binaries. The default makefiles does not compile a number of module ( including the MySQL module ) but for the first hello world scenario we dont need it.

To make the code enter the following commands :-

cd sip_router

make all

All the modules will be compiled and ready for installation. To perform this task you need root privileges, so enter the following command :-

su

[ Enter your root password ]

make install

This will install the binaries by default in the directory /usr/local/etc/ser

Your installation is now ready to be executed. However the next sub-section describes how to make your sip server start whenever your machine is rebooted.

To check that everything is OK, enter the ser -V and you should get the following output :-

version: ser 0.9.3 (i386/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
@(#) $Id: main.c,v 1.197 2004/12/03 19:09:31 andrei Exp $
main.c compiled on 18:17:55 Mar 6 2005 with gcc 3.3

You will now have a working system. The binaries are loaded into the directory /usr/local/sbin, and the configuration files ( including ser.cfg ) loaded into the directory /usr/local/etc/ser.

If you take the hello world ser.cfg file and replace the one in the configuration directory you can start the sip server by having root privileges and entering the command :-

# ser

To check everything is OK, run the ps command to see if there are a number of ser processes running.

You now have a working system.