I implement simple SIP client app for receiving calls. I go through official manual and get code from it.
I noticed that
SipManager.newInstance(getApplicationContext());
returns null. Documentation says that it happens when SIP API is not supported by device. However I use LG G6 with Android 7.0 and I successfully test third-party SIP clients from Google Play. So I doubt that API is not supported really. How could I check that?
My manifest has all permissions (INTERNET
and USE_SIP
)
Permission for USE_SIP
is granted by user
The Problem is that Android SDK is not supported over all the devices.
you can check first whether it is supported on current device:
Sometime API is supported but not VOIP. I tested on
Moto E 2nd Gen.
andMoto X 2014, 1st Gen.
Both API and VOIP is not supported on Moto X and Only API is supported on Moto E, but VOIP is not.To avoid this caveat, you can use 3rd party APIs such as Doubango.
Source: SIP on Android: This Article discusses this problem in detail and suggest alternative APIs.