flutter_rust_sip 1.0.2 copy "flutter_rust_sip: ^1.0.2" to clipboard
flutter_rust_sip: ^1.0.2 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 #

  1. Clone the repository:

    git clone https://github.com/omortie/flutter_rust_sip.git
    cd flutter_rust_sip
    
  2. Go to the example and Run the app:

    cd example
    flutter run
    

Android

For building cross-compile for Android you need:

  • Linux host
  • A .env file in your home directory at $HOME/cross_compile.env containing ANDROID_NDK_HOME environment 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 code
  • rust/ - Rust SIP core
  • example/ - 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

2
likes
140
points
222
downloads

Documentation

API reference

Publisher

verified publishershamortie.com

Weekly Downloads

A cross-platform SIP client built over PJSIP project for Flutter using C/Rust FFI.

Repository (GitHub)
View/report issues

Topics

#sip #network #ffi #webrtc

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_rust_bridge, freezed_annotation, hooks, native_toolchain_rust, rxdart

More

Packages that depend on flutter_rust_sip