Android SIP with CSipSimple and pjsip

I am writing a special Android application that allows a user to make VOIP calls using SIP. When a user presses a button, a voice call is initiated by another SIP user. It. The only other requirement is that it should work on 2.3+ Android devices and should not be limited to only Wi-Fi.

Android already includes a SIP stack (starting with version 2.3), and I was able to modify the Walkie-Talkie sample project to work just the way I wanted it to. Unfortunately, I was not able to use this application with certain devices (one of them was Casio Commando), and, even worse, the application only works via Wi-Fi (as I mentioned, is not acceptable for my project).

I started looking for another SIP stack with an easy to use API and came across CSimpleSip. I compiled it and ran a demo project (SipHome), and it worked great on my unsupported phones (including Commando), and also worked on Wi-Fi to meet my requirements. I was so excited ... until I looked at the source code for CSipSimple. I have no idea how to start retrieving the actual calls to the pjsip base API, and I was not able to get the pjsip demo application that works after 10 hours.

Has anyone deconstructed CSipSimple and extracted parts of SIP from their incredibly complex user interface, or does anyone know how easier it is to use the SIP library? With the native SIP interface, I was able to make a 200-inch Android activity that made a great call ... how can I do this using a third-party SIP stack that supports non-Wi-Fi?

Thanks for any input, I know that quite a few people are stuck at the same stage.

+7
source share
3 answers

Instead of going for the more sophisticated CSipSimple, you should attack the simplest apjsua that runs the same pjsip stack, so it will hopefully also meet your requirements: http://trac.pjsip.org/repos/wiki / Getting-Started / Android .

+2
source

I completely agree with Balint, apjsua is an application that will help you better understand, however, it may not be obvious to start with it when you are not familiar with C (like me), but it is a much more efficient way.

You can take a look at www.pjsip.org , just take care of the package you download because the tutorial is not so clear: for example, they talk a lot about apjsua (android implementation for pjsua), and this application is not included in the download link, which they provide, you can see my question here about this: where is apjsua?

And of course, you will need to look at the Android tutorial on the pjsip website.

Hope this helps.

+1
source

Use csipsimple as a library project. The csipsimple project has api to use as a library. You can contact the csipsimple service and make calls.

Register broadcasts and intent filters to get a callback from csipsimple. Analysis of Incall's activity in csipsimple for more details.

+1
source

All Articles