Sagar Behere

I doubt, therefore I might be

Compiling linphone 3.7.0 on Debian Wheezy

Linphone is a free (as in speech, GPLv2), open source Voice over IP (VoIP) software for Linux, Windows, MacOSX as well as Android, iPhone and Blackberry. It is a secure, encrypted, standards compliant alternative to proprietary alternatives like Skype.

The latest version of Linphone, as of this writing, is 3.7.0. This version is not available in the Debian Wheezy repositories, which have v3.5.2. That version lacks some features of 3.7.0, like integrated text messaging.

This guide explains how to compile linphone version 3.7.0 on Wheezy, with strong encryption support.

Sources: These instructions were prepared from the README file in the linphone sources and this blog post.

  • Install all the linphone dependencies which we can from the debian repositories
    sudo apt-get install libtool intltool libgtk2.0-dev libspeexdsp-dev libavcodec-dev libswscale-dev libx11-dev libxv-dev libgl1-mesa-dev libglew1.6-dev libv4l-dev libxml2-dev libvpx-dev libasound2-dev libpulse-dev libpolarssl-dev antlr3 libantlr3c-dev libreadline-dev libgsm1-dev libtheora-dev libsoup2.4-dev libsqlite3-dev libupnp6-dev libx264-dev cmake
  • Install srtp for call encryption
    git clone git://git.linphone.org/srtp.git  
    cd srtp && autoconf && ./configure && make  
    sudo make install  
  • Install belle-sip
    git clone git://git.linphone.org/belle-sip  
    cd belle-sip  
    git checkout tags/1.3.0  
    ./autogen.sh  
    ./configure --enable-tls  
    make  
    sudo make install  
  • Install zrtpcpp for unbreakable call encryption
    git clone https://github.com/wernerd/ZRTPCPP.git
    cd ZRTPCPP  
    cmake -DCORE_LIB=true -DSDES=false . && make  
    sudo make install  
  • Download and install linphone 3.7.0
    wget http://download-mirror.savannah.gnu.org/releases/linphone/3.7.x/sources/linphone-3.7.0.tar.gz
    tar zxvf linphone-3.7.0.tar.gz  
    cd linphone-3.7.0  
    ./configure --enable-ipv6 --enable-alsa --enable-zrtp  
    make  
    sudo make install  
    sudo ldconfig
  • To compile the h264 video plugin
    git clone git://git.linphone.org/msx264.git  
    cd msx264  
    ./autogen.sh  
    ./configure  
    make  
    sudo make install  

UPDATE: 2014-08-24

A kind reader, Karsten (fk021772@gmx.de), sent an email with these instructions for compiling the G729 codec:

git clone git://git.linphone.org/bcg729.git
cd bcg729
./autogen.sh
./configure
make
make install 

## enable G729 plugin in Linphone settings->Codec and shift it on top.
## if you use TLS you need to change the following in settings file:

[sip]
verify_server_certs=0