Baresip for Android
This project shows how to build baresip for Android NDK. Baresip is a modular SIP-client with audio/video support that supports many target platforms. Baresip can be used as a standalone console application, or as a powerful toolkit (libbaresip) for 3rd-party applications.
NDK: | Supported: |
---|---|
r18 | No |
r17 | Yes |
r16 | Yes |
r15 | Yes |
r14 | Yes |
r13 | No |
Download baresip/librem/libre source from creytiv.com [1]
$ wget http://www.creytiv.com/pub/baresip-0.5.9.tar.gz
$ wget http://www.creytiv.com/pub/rem-0.5.3.tar.gz
$ wget http://www.creytiv.com/pub/re-0.5.8.tar.gz
$ wget http://www.creytiv.com/pub/retest-0.5.2.tar.gz
$ # .. and download OpenSSL source from openssl.org [2]
$ wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
$ # .. and download Opus source from opus.org [5] (optional)
$ wget http://downloads.xiph.org/releases/opus/opus-1.1.3.tar.gz
$ # .. and download ZRTP source from github.com [7] (optional)
$ wget https://github.com/juha-h/libzrtp/archive/master.zip
$ # .. download Android NDK from [3]
unpack the source code in the current directory, or create symlinks to the source code so that you have a layout like this:
baresip/
openssl/
opus/ (optional)
libzrtp/ (optional)
re/
rem/
libre depends on openssl for crypto and TLS.
$ make openssl
$ make opus
$ make zrtp
baresip depends on librem and libre.
$ make baresip
this will create a statically linked binary in baresip/baresip
$ make install
this will use adb to install baresip in your configured Android emulator. you can also copy the binary to an Android device using ssh.
$ make test
this will compile retest and install it on your configured Android device, and then run the whole test program.
if you have questions or issues you are welcome to join our mailing-list [4] and contribute patches here :)