Skip to main content

Installing sofia-sip

This guide provides instructions for installing the sofia-sip library along with their development dependencies.

Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library, compliant with the IETF RFC3261 specification that provides core SIP signaling functionality. It is designed to be lightweight and efficient, suitable for use in VoIP (Voice over IP) applications and other telecommunications services.

warning

Ensure that you have development tools like gcc, make, autoconf, and automake installed on your system. You may also need some additional libraries (e.g., libtiff, libjpeg, etc.) depending on what sofia-sip requires.

tip

After installation, if you're unable to use the library or load it correctly, you might need to adjust your library path using sudo ldconfig. This command refreshes the linker cache so that the system can locate newly installed libraries.

Installation Steps:

  • Navigate to /usr/local/src directory.

    cd /usr/local/src
  • Download Sofia-SIP Archive:

    sudo wget "https://github.com/freeswitch/sofia-sip/archive/master.tar.gz" -O sofia-sip.tar.gz
  • Extract the Sofia-SIP Archive:

    sudo tar -xvf sofia-sip.tar.gz
  • Navigating into the Directory:

    cd sofia-sip-master
  • Run the Build Process:

    ./bootstrap.sh && ./configure && make && sudo make install
    • ./bootstrap.sh: This script sets up the build environment (such as generating configure script and preparing Makefile templates).
    • ./configure: This configures the package for your system (e.g., detecting available libraries, setting installation paths).
    • make: This step compiles the Sofia-SIP source code into executable binaries.
    • sudo make install: Finally, this installs the compiled library and binaries onto your system (usually to /usr/local).
  • Verify Installation You can verify the library installation using any of below methods provided it is supported on your system:

    • Using ldconfig: ldconfig maintains the cache of shared libraries. You can use it to search for sofia library in the system.

      ldconfig -p | grep sofia
    • Using find: You can also search for sofia library file like this:

      find /usr/local/lib /usr/lib /lib -name "libsofia*"