I'm trying to make an android app using Jain SIP. I already read the basic tutorial for SIP and now I'm looking for a tutorial how to implement jain sip in android. I search but I didn't saw anything how to implement it on android. So I'm asking to anyone who knows a link of tutorial how to implement jain sip in android, just a simple example how to use it on androidh.
Any thoughts will be highly appreaciated.
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.
An opensource implementation of the Android JAIN SIP stack can be found here:
https://code.google.com/p/jain-sip/
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.
What is the issue using the existing JAIN SIP stack?
If you have tried to use the existing JAIN SIP in any android application you might have run into package name conflicts, these conflicts are resolved now and the stack is ready to be used in android.
The full blog post with example code and Android APK is available here:
http://www.telestax.com/jain-sip-stack-for-android/
While both are SIP client APIs there are differences in the two, implementing JAIN SIP on Android SIP APIs will be difficult or at best incomplete because JAIN SIP is a much lower level API.
For example Android SIP APIs do not expose the SIP Stack as you would expect in JAIN SIP, you cannot access SIP transactions in Android etc.
With Android API you can create a manage a SIP client easily and that is what it is ideally suited for without going to low level SIP protocol tinkering.
If you want to implement JAIN SIP API layer in Android you may have to write or use your own SIP stack (like the NIST JAIN client).
Related
I'm working on an Android application that uses VOIP. I found a few established SIP Stacks/libraries out there (PJSIP, JAIN SIP, MJSIP). Android seems to also have its own Android SIP API/SDK.
I was wondering if anyone had some experience using either Android's native solution or one of these libraries. If so, what are the main technical and practical differences between both?
There are also a few popular SIP Client projects out there, such as Jami, SIPDroid and Linphone when it comes to app development on Android.
In this case, would implementing an existing SIP Client, instead of developing a new one using SIP libraries offer significant advantages?
I am mainly coding in Java and planning on using Asterisk as a SIP Server.
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.
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.
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
I am new to android and I am implementing VoIP using SIP (Android2.3). I have a issue regarding how to make a landline call thru SIP + how to send SMS,MMS using SIP. How should I think to meet my goal.
Thanks to everyone in advance.
You will need a SIP stack.
You are in luck because since Android 2.3 there is a SIP stack included in the Android framework.
Here is a link to the documentation Android SIP Stack
Be aware that the SIP stack provided by google does not work over 3g.
You can also try a fully working SIP Demo Sample on the android developer website.
If not, there is a couple of open source project of SIP clients: SIPDroid, CSIPSimple, etc
Hope this helps.
Cheers