
SIP SIMPLE client SDK dependencies
----------------------------------

Home page: http://sipsimpleclient.org

SIP SIMPLE SDK depends upon the following third party C sources:

- PJSIP 2.12
  https://github.com/pjsip/pjproject/archive/2.12.tar.gz

- ZRTP tag 6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03
  https://github.com/wernerd/ZRTPCPP.git

Fetch and patch the dependencies using the get_dependencies.sh script:

    ./get_dependencies.sh           # defaults to 2.12
    ./get_dependencies.sh 2.12      # explicit

The script downloads pjproject-2.12.tar.gz, copies the ZRTPCPP tree into
deps/pjsip/third_party/zsrtp/, then applies the patch series from
deps/patches/[0-9][0-9]_*.patch in numerical order. See
deps/patches/pending/README for hunks that were parked while rebasing
to 2.12.


AMR codec
---------

See codecs note below.

Narrow-band

   Install opencore-amr using apt-get on Debian/Ubuntu

   On Mac:

   brew install opencore-amr

   Add to shell environment:

   export SIPSIMPLE_AMR_NB_PATH="/usr/local/opt/opencore-amr"

Wide-band

Source code: https://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc

A copy of the tree is included in ./deps/vo-amrwbenc-0.1.3 folder.

cd ./deps/vo-amrwbenc-0.1.3/
 
On Mac:

     ./configure --prefix=/usr/local/opt/vo-amrwbenc
     make 
     sudo make install

     Add to shell environment:

     export SIPSIMPLE_AMR_WB_PATH="/usr/local/opt/vo-amrwbenc"

On Linux:

     ./configure --prefix=/usr/local/
     make 
     sudo make install


Python dependencies available from AG Projects repositories:

 * python3-application      http://download.ag-projects.com/SipSimpleSDK/Python3/ 
 * python3-eventlib         http://download.ag-projects.com/SipSimpleSDK/Python3/ 
 * python3-gnutls           http://download.ag-projects.com/SipSimpleSDK/Python3/
 * python3-otr              http://download.ag-projects.com/SipSimpleSDK/Python3/
 * python3-msrplib          http://download.ag-projects.com/SipSimpleSDK/Python3/
 * python3-xcaplib          http://download.ag-projects.com/SipSimpleSDK/Python3/

The dependencies for each package can be found inside debian/control file

On a Debian or Ubuntu based system you can install their dependencies using:

sudo mk-build-deps --install debian/control


Codecs note
-----------

Depending on what codecs have been compiled, one needs to modify in place:

AudioCodecList inside sipsimple/configuration/datatypes.py
RTPSettings inside sipsimple/configuration/setting.py

