• Stars
    star
    1,018
  • Rank 45,203 (Top 0.9 %)
  • Language
    Kotlin
  • License
    GNU General Publi...
  • Created almost 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Linphone.org mirror for linphone-android (https://gitlab.linphone.org/BC/public/linphone-android)

pipeline status weblate status

Linphone is an open source softphone for voice and video over IP calling and instant messaging.

It is fully SIP-based, for all calling, presence and IM features.

General description is available from linphone web site.

How to get it

Get it on Google PlayGet it on F-Droid

You can also download APKs signed with our key from our website.

License

Copyright © Belledonne Communications

Linphone is dual licensed, and is available either :

  • under a GNU/GPLv3 license, for free (open source). Please make sure that you understand and agree with the terms of this license before using it (see LICENSE file for details).

  • under a proprietary license, for a fee, to be used in closed source applications. Contact Belledonne Communications for any question about costs and services.

Documentation

What's new

App has been totally rewritten in Kotlin using modern components such as Navigation, Data Binding, View Models, coroutines, etc...
Check the CHANGELOG file for a more detailed list. The first linphone-android release that will be based on this will be 4.5.0, using 5.0.0 SDK.

We're also taking a fresh start regarding translations so less languages will be available for a while.
If you want to contribute, you are welcome to do so, check the Translations section below.

org.linphone.legacy flavor (old java wrapper if you didn't migrate your app code to the new one yet) is no longer supported starting 5.0.0 SDK.

The sample project has been removed, we now recommend you to take a look at our tutorials.

Building the app

If you have Android Studio, simply open the project, wait for the gradle synchronization and then build/install the app.
It will download the linphone library from our Maven repository as an AAR file so you don't have to build anything yourself.

If you don't have Android Studio, you can build and install the app using gradle:

./gradlew assembleDebug

will compile the APK file (assembleRelease to instead if you want to build a release package), and then

./gradlew installDebug

to install the generated APK in the previous step (use installRelease instead if you built a release package).

APK files are stored within ./app/build/outputs/apk/debug/ and ./app/build/outputs/apk/release/ directories.

When building a release AppBundle, use releaseAppBundle target instead of release.
Also make sure you have a NDK installed and that you have an environment variable named ANDROID_NDK_HOME that contains the path to the NDK.
This is to be able to include native libraries symbols into app bundle for the Play Store.

Building a local SDK

  1. Clone the linphone-sdk repository from out gitlab:
git clone https://gitlab.linphone.org/BC/public/linphone-sdk.git --recursive
  1. Follow the instructions in the linphone-sdk/README file to build the SDK.

  2. Create or edit the gradle.properties file in $GRADLE_USER_HOME (usually ~/.gradle/) and add the absolute path to your linphone-sdk build directory, for example:

LinphoneSdkBuildDir=/home/<username>/linphone-sdk/build/
  1. Rebuild the app in Android Studio.

Native debugging

  1. Install LLDB from SDK Tools in Android-studio.

  2. In Android-studio go to Run->Edit Configurations->Debugger.

  3. Select 'Dual' or 'Native' and add the path to linphone-sdk debug libraries (build/libs-debug/ for example).

  4. Open native file and put your breakpoint on it.

  5. Make sure you are using the debug AAR in the app/build.gradle script and not the release one (to have faster builds by default the release AAR is used even for debug APK flavor).

  6. Debug app.

Known issues

  • If you encounter the couldn't find "libc++_shared.so" crash when the app starts, simply clean the project in Android Studio (under Build menu) and build again. Also check you have built the SDK for the right CPU architecture using the -DLINPHONESDK_ANDROID_ARCHS=armv7,arm64,x86,x86_64 cmake parameter.

  • Push notification might not work when app has been started by Android Studio consecutively to an install. Remove the app from the recent activity view and start it again using the launcher icon to resolve this.

Troubleshooting

Behavior issue

When submitting an issue on our Github repository, please follow the template and attach the matching library logs:

  1. To enable them, go to Settings -> Advanced and toggle Debug Mode. If they are already enabled, clear them first using the Reset logs button on the About page.

  2. Then restart the app, reproduce the issue and upload the logs using the Send logs button on the advanced settings page.

  3. Finally paste the link to the uploaded logs (link is already in the clipboard after a successful upload).

Native crash

First of all, to be able to get a symbolized stack trace, you need the debug version of our libraries.

If you haven't built the SDK locally (see building a local SDK), here's how to get them:

  1. Go to our maven repository, in the linphone-android-debug directory.

  2. Download the AAR file with the exact same version as the AAR that was used to generate the crash's stacktrace.

  3. Extract the AAR somewhere on your computer (it's a simple ZIP file even it's doesn't have the extension). Libraries are stored inside the jni folder (a directory for each architectured built, usually arm64-v8a, armeabi-v7a, x86_64 and x86).

  4. To get consistent with locally built SDK, rename the jni directory into libs-debug.

Now you need the ndk-stack tool and possibly adb logcat.

If your computer isn't used for Android development, you can download those tools from Google website, in the Command line tools only section.

Once you have the debug libraries and the proper tools installed, you can use the ndk-stack tool to symbolize your stacktrace. Note that you also need to know the architecture (armv7, arm64, x86, etc...) of the libraries that were used.

If you know the CPU architecture of your device (most probably arm64 if it's a recent device) you can use the following to get the stacktrace from a device plugged to a computer:

adb logcat -d | ndk-stack -sym ./libs-debug/arm64-v8a/

If you don't know the CPU architecture, use the following instead:

adb logcat -d | ndk-stack -sym ./libs-debug/`adb shell getprop ro.product.cpu.abi | tr -d '\r'` 

Warning: This command won't print anything until you reproduce the crash!

Create an APK with a different package name

Before the 4.1 release, there were a lot of files to edit to change the package name.
Now, simply edit the app/build.gradle file and change the value returned by method getPackageName()
The next build will automatically use this value everywhere thanks to manifestPlaceholders feature of gradle and Android.

You may have already noticed that the app installed by Android Studio has org.linphone.debug package name.
If you build the app as release, the package name will be org.linphone.

Firebase push notifications

Now that Google Cloud Messaging has been deprecated and will be completely removed on April 11th 2019, the only official way of using push notifications is through Firebase.

However to make Firebase push notifications work, the project needs to have a app/google-services.json file that contains the configuration.
We have archived our own, so you can build your linphone-android application and still receive push notifications from our free SIP service (sip.linphone.org). If you delete it, you won't receive any push notification.

If you have your own push server, replace this file by yours.

Translations

We no longer use transifex for the translation process, instead we have deployed our own instance of Weblate.

Due to the full app rewrite we can't re-use previous translations, so we'll be very happy if you want to contribute.

Translation status

CONTRIBUTIONS

In order to submit a patch for inclusion in linphone's source code:

  1. First make sure your patch applies to latest git sources before submitting: patches made to old versions can't and won't be merged.
  2. Fill out and send us an email with the link of pull-request and the Contributor Agreement for your patch to be included in the git tree.

The goal of this agreement to grant us peaceful exercise of our rights on the linphone source code, while not losing your rights on your contribution.

More Repositories

1

linphone-iphone

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of linphone-iphone (git://git.linphone.org/linphone-iphone.git)
Objective-C
542
star
2

linphone-desktop

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of git://git.linphone.org/linphone-desktop.git
C++
349
star
3

liblinphone

Linphone.org mirror for liblinphone (git://git.linphone.org/liblinphone.git)
C++
343
star
4

ortp

Linphone.org mirror for ortp (git://git.linphone.org/ortp.git)
C
135
star
5

flexisip

Linphone.org mirror for flexisip (git://git.linphone.org/flexisip.git)
C++
126
star
6

mediastreamer2

Linphone.org mirror for mediastreamer2 (git://git.linphone.org/mediastreamer2.git)
C
124
star
7

bcg729

Linphone.org mirror for bcg729 (git://git.linphone.org/bcg729.git)
C
114
star
8

linphone-sdk

Mirror for linphone-sdk (https://gitlab.linphone.org/BC/public/linphone-sdk.git)
CMake
81
star
9

belle-sip

Linphone.org mirror for belle-sip (git://git.linphone.org/belle-sip.git)
C
64
star
10

sofia-sip

Linphone.org mirror for sofia-sip (git://git.linphone.org/sofia-sip.git)
C
27
star
11

linphone-xamarin

Linphone.org mirror for linphone-xamarin (git://git.linphone.org/linphone-xamarin.git)
C#
27
star
12

bctoolbox

Linphone.org mirror for bctoolbox (git://git.linphone.org/bctoolbox.git)
C
23
star
13

opencore-amr

Linphone.org mirror for opencore-amr (git://git.code.sf.net/p/opencore-amr/code)
C++
17
star
14

bzrtp

Linphone.org mirror for bzrtp (git://git.linphone.org/bzrtp.git)
C
14
star
15

linphone-windows10

Linphone.org mirror for linphone-windows10 (git://git.linphone.org/linphone-windows10.git)
C#
14
star
16

linphone-web-ui

Linphone.org mirror for linphone-web-ui (git://git.linphone.org/linphone-web-ui.git)
JavaScript
12
star
17

linphone-cmake-builder

Linphone.org mirror for linphone-cmake-builder (git://git.linphone.org/linphone-cmake-builder.git)
CMake
12
star
18

bcunit

Linphone.org mirror for bcunit (git://git.linphone.org/bcunit.git)
C
9
star
19

linphone-web-plugin

Linphone.org mirror for linphone-web-plugin (git://git.linphone.org/linphone-web-plugin.git)
C++
8
star
20

linhome-android

Kotlin
8
star
21

belr

ABNF Parser - Linphone.org mirror for belr (git://git.linphone.org/belr.git)
C++
8
star
22

libupnp

Linphone.org mirror for libupnp (git://git.code.sf.net/p/pupnp/code)
C
8
star
23

linphone-wp

Linphone.org mirror for linphone-wp (Windows Phone) (git://git.linphone.org/linphone-wp.git)
C
7
star
24

flexisip-account-manager

A REST API, web portal and provisioning server for Flexisip
PHP
5
star
25

meta-bc

Linphone recipes layers for builds using Yocto.
BitBake
3
star
26

linhome-ios

Swift
2
star
27

vo-amrwbenc

Linphone.org mirror for vo-amrwbenc (git://git.code.sf.net/p/opencore-amr/vo-amrwbenc)
C
2
star
28

firebreath

Linphone.org mirror for firebreath (git://git.linphone.org/firebreath729.git), based on firebreath
C++
2
star
29

lime

C++
2
star
30

mselph264

Mediastream2 plugin for ELP camera with h264 encoding support.
C++
1
star
31

linphone-bb10

Linphone.org mirror for linphone-bb10 (git://git.linphone.org/linphone-bb10.git)
C++
1
star