[go: up one dir, main page]

Skip to content

Android SIP client with Voice streaming capabilities. Opus audio codec.

Notifications You must be signed in to change notification settings

starling-21/simple_android_VoIP_client

Repository files navigation

Simple android VoIP/SIP client. Voice streaming.

Simple is better than complex! This is VoIP client prototype. I was searching a lot for open source projects, but found just a few working solutions for SIP signalling and voice streaming (very huge and complicated or fully native written apps). The core classes of the app have explaining comments, so don't be afraid of dive into the project.

Built With

  • Android JAIN Sip RI - SIP library for client-server communication

  • Opus Interactive Audio Codec - used for audio encoding/decoding. Opus is narrowband configured here (sample rate - 8 kHz), but can be extended for medium and wide band, all settings (frame rate, frame size and codec buffer size) in two classes.

  • jlibrtp as internal package - Used for transmitting and receiving RTP packets. Basically you initialize it with 2 DatagramSockets (one for sending RTP data and one for receiving RTCP data). I beleive it handles the RTP timestamps by itself, but you have to make sure you're payload is already formatted by the RFC reccommendations.

Prerequisites

  • (NDK) The Native Development Kit. Project contains OPUS library compiled just for arm64-v8a platform. It can be recompiled to support other platforms.

  • (JNI) to be familiar with Java Native Interface. Audio codec included as external C-library via JNI calls. There is jniwrappers java classes in separate package, which loads opus library, initialize it and does encoding / decoding calls.

  • (SIP-server) I used asterisk for that. Opus can be compiled from sources and configured over there.

License

This project is licensed under the MIT License.

About

Android SIP client with Voice streaming capabilities. Opus audio codec.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published