SIP SDK for android with G729 codec support - android

I need to add some basic SIP functionality to my app. I need it to be able to connect to my asterisk server and make SIP audio calls using G729 codec.
Unfortunately the default android SIP api does not support G729 codec (as far as I know), so I can't use it.
I tried to use CSipSimple as library, but it appears not exactly what I need, because I cannot use it as fully standalone library.
So is there any suggestions on what SDK or library I can use to integrate SIP functionality in my app?
Many thanks in advance!

I would recommend using pjsip, is the stack behind CSipSimple, plus adding G729 codec as CSipSimple does, this is, registering it as an external codec into pjsip's media framework.
Inside pjsip's 2.x branch, you can find an example about how to directly use it as a user agent from Android, through a JNI, at: pjsip-apps/src/pjsua/android.
About G729, you can find the code at: jni/g729 and you can build it as a shared library by modifying Android.mk
Hope this helps

Related

Does Android native sip stack support video over sip?

I have implemented successfully sip audio call using android native sip stack. But some how i dont see any information regardind video call over sip using android native sip stack. May be they do not support sip over rtp? . Any information would be highly appreciated. i coudlnt find any clear information on stackoverflow regarding this issue.
Android native sip stack has a very limited feature and i wont recommend to any one. It does not support video feature by default. For video feature it will require bidirectional information flow ,which require RTP. So in short answer no. Better try other opensource sip like pjsip.

Android SIP Chat Messaging

I have to implement chat messaging using Android SIP client but unable to find any related classes or listener. I have already implemented calling feature using SIP.
Use pjsip or Linphone opensource project.Both libraries are written using c code and well documented to build for android with sample application.
If you want pure java implementation of sip IM ,go for jainsip stack based implementation.Actually android default sip client is based on jainsip but it not support Im and only works in wifi.
Telestax implementation of jainsip helps to create apps for android.You can read this documentation for more details.Also a sample android implementation you can find here.
It seems like SIP IM is not implemented in the Android SIP client.
However you should be able to easily implement this yourself.
All you need to check is RFC 3428.
Just check the example (search for "MESSAGE sip") and it should be obvious from here.
Another solution would be to use some other open-source SIP stack with SIP MESSAGE support.
To implement both call and messaging facility in Android app, you can implement through PJSIP.It has several set of libraries to implement new features.
It has all VOIP functionalities to implement in android app.
The documentation to implement PJSIP in Android,
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
The above link specifies, how to implement PJSIP in android platform.
Android doesn't have support as of now..Can you check
Check this https://telestax.com/jain-sip-stack-for-android/
WHY DO THIS?
Limitations of native sip stack.
The stock native android sip stack is built on top of JAIN SIP but it does not have all functionality, there is no support for IM, presence and video calls right now. Google forked SIP Stack and never really updated the SIP API that is shipped by default and used the same package names as the original JAIN SIP project. This proved to be a major hassle to developers that wanted to add SIP capabilities worldwide as they couldn’t use JAIN SIP out of the box.
JAIN SIP is Java based
An opensource implementation of the stack can be found here. It is a java based SIP stack which allows you to integrate the sip stack seamlessly in your android application without the hassle of NDK.
A Complete SIP Stack
JAIN SIP is a full implementation of the RFC 3261 Specification and as well as support for several SIP RFCs.

How to implement VoIP sip client on android studio

I'm working on a project which is to implement a VoIP client for android which uses SIP. My target is an application which allows users to register on a server and to make call with other registered users only. Its my first time to use Android Studio and also to deal with Java.
I concluded from searching that there are SIP libraries that i could use as PJSIP which i have some questions about
1- I read that i should build the PJSIP library following the steps in the following link https://trac.pjsip.org/repos/wiki/Getting-Started
im working on a windows based laptop, i've never built a source code before, so i just chose to build the PJSIP for android, should i do this using a virtual machine with linux ? is there any other way to get an already built pjsip library to work with? or any other easier library?
2- how do i know the functions that are in the PJSIP library and the files that i'll need to import, should these links help? whats PJSUA2?
http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB.htm
http://www.pjsip.org/docs/book-latest/html/
3-I also checked the Csipsimple application, its code is very complicated for me to understand, are there any easier open source apps that i can check?
1- Yes, you should build PJSIP from the link you provided and follow the process step by step carefully. It's the best way because of official documentation. You have to build PJSIP library on a linux machine to make it work properly. If you need an already build library for Android, you can follow this link. Note that it's a PJSUA2 which is a best practice for the Android applications.
2- PJSUA2 is a high level API and is kind of translation from C++ language to object-oriented Java. It should simplify for you to implement library and use it in Android, because of same programming language and good library packaging.
3- There are not a lot of open source VoIP clients based on PJSIP which are easy to understand. If you are new in business, I should strongly recommend to build first of all sample application which is provided by PJSIP official web site. Then you have take a look at PJSUA2 documentation to understand where to begin, for example register sip account, receive and make a new call etc.

Using Restcomm SIP & Webrtc without the platform

I am looking for a way to use SIP as signalling protocol for Webrtc in Android. I saw the RestComm open source code and I think it fits my needs. But I already have the infrastructure setup for TURN and SIP server. We use FreeSwitch for that purpose. My Question is, is it possible to use the restcomm android sdk with a infrastructure that is not from restcomm platform? Will it work?
Is there any other library or way that could be used for the purpose? Infrastructure is fixed and couldn't be changed. I need webrtc with SIP or SIP over websocket as the signalling method.
Restcomm Android SDK essentially offers VoIP functionality using SIP for signaling and WebRTC for media, so you shouldn't have any issues integrating with different server components.
Notice though that so far it's tested with Restcomm platform for the most part.
For more information on how to do that you can check Quickstart Guide and also refer to the code for Hello World and Olympus Apps

Streaming Library VLC Android

Currently we are developing an Android application for streaming. We are looking for an alternative library, because the VLC library isn't finished yet. We currently used the Vitamio library, but it works a little buggy.
Doesn't play MMS immediately
Some HTTP Stream will not start
Can't edit the controls
Are there any other third party libraries who cover the following streams: HTTP Live streaming (apple), RTSP and MMS. And also are better documented? Thanks in advance.
Also GStreamer provides a version for android (arm processor).
Here you can find the libraries http://gstreamer.freedesktop.org/data/pkg/android/1.0.7/
You can look at wrapping the FFMPEG library and using it.

Categories

Resources