Android SIP Client doesn't work with ODROID-C2

Post Reply
cioralut
Posts: 74
Joined: Sat Oct 03, 2015 10:54 pm
languages_spoken: english
ODROIDs: ODROID C1+ and ODROID C2
Location: Italy
Has thanked: 0
Been thanked: 0
Contact:

Android SIP Client doesn't work with ODROID-C2

Post by cioralut »

Hi to all
I have some problems with the Android SIP Library (android.net.sip) and ODROID-C2

ODROID C2 Informations:
Android version: 5.1.1
Kernel Version: 3.14.29 (2016 Jun 14 13:57:30)
Build number: odroidc2-eng 5.1.1 LMY47V odroidc2-eng-s905_5.1.1_master-239 test-keys

When opens the profile for making calls and/or receiving generic SIP calls (android.net.sip.SipManager.open(SipProfile localProfile, PendingIntent incomingCallPendingIntent, SipRegistrationListener listener))
I get this error:
"Attempt to invoke interface method 'void android.net.sip.ISipService.open3(android.net.sip.SipProfile, android.app.PendingIntent, android.net.sip.ISipSessionListener)' on a null object reference"

The method OPEN3 is called by ISipService (mSipService):

Code: Select all

public void open(SipProfile localProfile, PendingIntent incomingCallPendingIntent, SipRegistrationListener listener) throws SipException { 
	if (incomingCallPendingIntent == null) { 
		throw new NullPointerException("incomingCallPendingIntent cannot be null"); 
	} 
	try { 
		mSipService.open3(localProfile, incomingCallPendingIntent, createRelay(listener, localProfile.getUriString())); 
	} catch (RemoteException e) { 
		throw new SipException("open()", e); 
	}
} 
mSipService is instantiated from "SipManager.Instance(Context )".

Code: Select all

	if(mySipManager == null) {
		if(SipManager.isApiSupported(mainActivity) && SipManager.isVoipSupported(mainActivity)) {
			mySipManager = SipManager.newInstance(mainActivity);
  			return true;
  		} else {
			return false;
  		}
	}
With ODROID-C2 mSipService remain to null (view mSipServiceNULL image) while with ODROID-C1+ and other devices (tablets, smartphones) with android 4.2 ... android 5.02,
mSipService is instantiated and SIP works correctly (view mSipServiceOK image)


In this link you can find all source code of SipManager class:
https://github.com/daddy366/frameworks- ... nager.java


Is a problem of ODROID-C2 or android version?
How can I fix the problem?

Best regards

Daniele
Attachments
mSipServiceOK.png
(30.93 KiB) Downloaded 532 times
mSipServiceNULL.png
(21.19 KiB) Downloaded 532 times

Luke.go
Posts: 549
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 65 times
Been thanked: 66 times
Contact:

Re: Android SIP Client doesn't work with ODROID-C2

Post by Luke.go »

Hi, there

to solve the problem, you need the teleservice, here is it

Code: Select all

https://mega.nz/#!Ip0BlIRA!FDYlJQijcWLaqylnuiNZf8wY_-J5ou6UjCVeqzRUsS4
after download,

1. uncompress it

2. push it to odroid-c2 by using adb push

ex)

Code: Select all

$> adb push ./TeleService /system/priv-app/TeleService
3. reboot and check SIP

I think you have remount filesystem of odroid-c2 before push the file

ex)

Code: Select all

adb shell mount -o remount,rw /system
I hope it works. good luck.

cioralut
Posts: 74
Joined: Sat Oct 03, 2015 10:54 pm
languages_spoken: english
ODROIDs: ODROID C1+ and ODROID C2
Location: Italy
Has thanked: 0
Been thanked: 0
Contact:

Re: Android SIP Client doesn't work with ODROID-C2

Post by cioralut »

Hi Luke.
I followed your instructions and now works.

Thanks for your help.

Daniele

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 2 guests