Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VoIP library for Android [closed]

I need to integrate VoIP service in my Android application.
Is there any free (best open source) library ?

I need that the library at least allows voice call over internet and not necessarily internet to phone (like 2 Skype account).

like image 511
enfix Avatar asked Nov 22 '12 11:11

enfix


People also ask

What is SIP on Android?

Advertisements. SIP stands for (Session Initiation Protocol). It is a protocol that let applications easily set up outgoing and incoming voice calls, without having to manage sessions, transport-level communication, or audio record or playback directly.

What is VoIP SDK?

PortSIP VoIP SDK is a modern SIP client framework for developing audio and video calling applications. The SIP SDK is available for all leading operating systems, enabling a fast time-to-market on all platforms, including iOS, Android, macOS, Windows and WebRTC.

What is SIP API?

Android provides an API that supports the Session Initiation Protocol (SIP). This lets you add SIP-based internet telephony features to your applications.


2 Answers

From android version 2.3 SIP API is added in Android. you can use either inbuilt SipStack library or third party open source sip stacks.

Refer Android Developer's Guide

There are different open source sip stack libraries as well as projects are available on internet. You can download the source code of that projects.

Here is the List of some popular open source sip stack libraries which allows to voice call over internet.

1.Pjsip
2.Mjsip
3.doubango
4.belle-sip

There are different open source projects which have used these libraries in their projects.like Sipdroid uses MjSip, Csipsimple uses PjSip, imsdroid uses doubango and Linphone uses belle-sip.

You may also like to refer this Android SIP stack - what to use?

like image 180
Juned Avatar answered Oct 10 '22 05:10

Juned


Open source SIP stacks :

  1. Android SDK's default implementation (API > 9) :
    Advantages : Documentation available. Easy to understand.
    Disadvantages : not all devices are supported. Can't change codecs.

  2. Third Party

Java :

  • JainSIP (license : Public Domain)

Advantages : Oracle (Sun) project ==> Active development. Looks easier than MjSIP (more documentation).
Disadvantages : Not used in a "famous" app.

  • MjSIP (license : GNU GPL)

Advantages : SipDroid is built on it. (source code available) (red5phone is another project) Disadvantages : Not fully compliant with RFC?. Lack of tutorials (Javadocs available though). SOPHISTICATED. Development almost dead.

  • Doubango framework [android-ngn-stack] (license : GNU GPLv3)

Advantages : IMSDroid is built on it. (source code available)
Disadvantages : Generated apk file size tend to be "heavy" (>15MB as mentioned here)

C/C++ :

  • Native SIP Stacks

Advantages : Various choice (PjSip [CSipSimple], GNU oSIP/eXoSIP [Linphone, which has made their own stack belle-sip]). Full compliance with RFC?. Better performance.
Disadvantages : Android NDK/JNI for a beginner.

Sources (old and mainly C/C++):

http://www.cs.columbia.edu/sip/implementations.html
http://www.pernau.at/kd/voip/bookmarks-sip-stacks.html

like image 26
JohnTube Avatar answered Oct 10 '22 06:10

JohnTube