9

I am trying to develop an app for Android that connects to a SIP server. I made some research and I found out that linphone is one of the best solution for that ( i need video call ).

I downloaded the sdk and now I don't know where to start from.

A couple of examples will be very usefull.

Thank you.

Up2Marius
  • 91
  • 1
  • 4

3 Answers3

9

Everything the above users suggested did not work, at least to me.

The sample code provided by https://github.com/BelledonneCommunications/linphone-android is not even compatable with their newest android SDK.

The sdk documentation provided on their official web page is merely just a javadoc without any explanation, only three lines of code provided.

The only solution that worked was using the below library.

https://github.com/forever4313/EasyLinphone

The guy who made this library deserves a prize from somewhere.

This requires the linphone SDK 3.x. It's not compatable with 4.x versions currently available.

You can get it from here.

https://linphone.org/releases/android/

liblinphone-android-sdk--no-nonfreecodecs-video-3.2.6-23-g85f3b9a.zip

The above file worked great for me.

Import the aars following this youtube tutorial. https://www.youtube.com/watch?v=MTgbcblEfX0

Use the EasyLinphone library to do whatever you want.

March3April4
  • 2,131
  • 1
  • 18
  • 37
  • This is the best answer here, my friend I have spent 8 days trying to use the official liblinphone library, you just saved my life... thanks – C Williams Nov 24 '18 at 07:54
  • @C Williams if you think of loging in and out for multiple users per phone, you must modify some of the codes. 1. You should overwrite the config files when you login. If not, it will try to register all of your sip ids. 2. The service destroy logic will crash if you don't edit the onDestroy method. I will update the code changes on the answer above. – March3April4 Nov 26 '18 at 09:28
  • Hi, Please help with the updated code, and do you know where I can find a video tutorial that helps with the basic stuff such as Registration and Calling? Where is the location of the config file sir? – C Williams Nov 27 '18 at 11:20
  • @C Williams I'll update the code soon. The EasyLinphone seems to cover the video stuff, but never tried it myself. – March3April4 Nov 28 '18 at 06:00
  • @March3April4 I need Your help regarding Linphone' latest library – Solaiman Hossain Jan 24 '19 at 08:26
  • @Solaiman Hossain Sorry, It took me a while to get back to this issue. I haven't tried the latest library. – March3April4 Jan 25 '19 at 03:28
  • @March3April4 : i have download and build the android project from the above given git hub. How am i suppose to test this. asking a username password and a domain. is there is any test account. i didn't get why to use ndk and all. – DKV Mar 03 '20 at 14:23
  • @DKV You should have a MVOIP server such as Asterisk. The id and passwords are configured there. While doing this project, I had other people doing that kind of stuff, so I really can't give you more specific details. Sorry for that. – March3April4 Mar 05 '20 at 02:21
2

Besides linphone its own website and the README.md,

Check out the following two links: http://www.coders-hub.com/2015/04/start-working-on-linphone-android-part-1.html

Make sure you are using a Linux or Mac to build! Especially for the native .so libs for Android. I spent quite a lot futile time trying get the building down on Windows.

After ./prepare.py and make with success use Android Studio and Xcode to build the final application, good luck!

Lindows
  • 21
  • 1
1

You can look at the open source version, that they have.

https://github.com/BelledonneCommunications/linphone-android

This uses liblinphone to comunicate with the SIP service.

JMR
  • 765
  • 1
  • 8
  • 31