flutter_rust_sip 1.1.0
flutter_rust_sip: ^1.1.0 copied to clipboard
A cross-platform SIP client built over PJSIP project for Flutter using C/Rust FFI.
flutter_rust_sip #
A cross-platform SIP (Session Initiation Protocol) client built for Flutter using C/Rust FFI.
Features #
- SIP registration and call handling
- High performance via Rust FFI
- SIP Credentials to work with SIP servers
Getting Started #
Dependencies #
Linux: Make sure that these packages are installed on your system
- crypto
- z
- asound (on arch it is called
alsa-lib) - ssl
- uuid
- cmake
- ninja
- clang
- pkgconfig
- gtk
Ubuntu
sudo apt install cmake build-essential ninja-build clang pkg-config libgtk-3-dev openssl libssl-dev libasound2-dev
Build the example #
-
Clone the repository:
git clone https://github.com/omortie/flutter_rust_sip.git cd flutter_rust_sip -
Go to the
exampleand Run the app:cd example flutter run
Android
For building cross-compile for Android you need:
- Linux host
- A
.envfile in your home directory at$HOME/cross_compile.envcontainingANDROID_NDK_HOMEenvironment variable eg.:
ANDROID_NDK_HOME=/home/mortie/Android/Sdk/ndk/29.0.14206865
then just target your Android device and build the example like any other Flutter application
Project Structure #
lib/- Flutter/Dart coderust/- Rust SIP coreexample/- A simple example of using SIP lib in Flutter
Acknowledgement #
used sip-phone-rs sources as helper inspiration used pjsip-sys as the base Rust binding