Skip to content

Instantly share code, notes, and snippets.

@agran
Last active December 1, 2021 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agran/52ed833b0f30ca4531c4ceb8de234b0a to your computer and use it in GitHub Desktop.
Save agran/52ed833b0f30ca4531c4ceb8de234b0a to your computer and use it in GitHub Desktop.
build pjsip python with opus
curl -sO http://downloads.xiph.org/releases/opus/opus-1.3.1.tar.gz
tar xzvf opus-1.3.1.tar.gz
cd opus-1.1.2
./configure
make
make check
sudo make install
cd ..
wget -O pjproject-2.11.1.tar.gz https://github.com/pjsip/pjproject/archive/refs/tags/2.11.1.tar.gz
tar xzvf pjproject-2.11.1.tar.gz
cd /var/www/html/ring/pjproject-2.11.1
make distclean
./configure --disable-g711-codec --disable-l16-codec --disable-gsm-codec --disable-ilbc-codec --enable-shared --with-opus=/usr/local
make dep
make
make install
cd pjsip-apps/src/python
sudo make
# python code example: https://gist.github.com/agran/a60e43a49846c2dd0ff8b2a058f0ff3a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment