linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] setUsername method not found


From: android android
Subject: Re: [Linphone-developers] setUsername method not found
Date: Mon, 10 Jun 2013 19:41:08 +0530

Hi,

I was also facing same problem but now i solved problem. Solution is simple. Go to submodules/linphone/coreapi/linphonecore_jni.cc

Edit linphonecore_jni.cc file.

The change is - replace JNIEXPORT with extern "C" and remove JNICALL keyword in all this getter / setters of linphone auth info.

/*
 * Class:     org_linphone_core_LinphoneAuthInfoImpl
 * Method:    setUsername
 * Signature: (JLjava/lang/String;)V
 */
extern "C" void Java_org_linphone_core_LinphoneAuthInfoImpl_setUsername (JNIEnv *env, jobject, jlong auth_info, jstring jusername) {
const char* username = jusername?env->GetStringUTFChars(jusername, NULL):NULL;
linphone_auth_info_set_username((LinphoneAuthInfo*)auth_info,username);
if (username) env->ReleaseStringUTFChars(jusername, username);
}

Thanks & Regards

Kaushik Parmar


On Mon, Jun 10, 2013 at 7:37 PM, Leonard Fodje <address@hidden> wrote:
Dear all,
 
Anyone found a solution yet?
 
Thanks,
 
Leonard
 
Sent: Thursday, May 9, 2013 10:22 AM
Subject: Re: [Linphone-developers] setUsername method not found
 
Hi,
 
I am facing the same problem if anyone find the solution please share it.
 
Thanks,
 
Yakub


On Thu, May 9, 2013 at 10:33 AM, Future Lian <address@hidden> wrote:
I met the same problem without any solution


2013/5/6 Alexey Novak <address@hidden>
Hi there,

I finally managed to build linPhone and import it into my Eclipse environment without any errors. Can launch it without errors as well.

Although whenever I'm trying to register a SIP account I get the following error:
java.lang.UnsatisfiedLinkError: Native method not found:  org.linphone.core.LinphoneAuthInfoImpl.setUsername

I'm trying to look in the code and project properties but not sure what to look for.
Any help would be much appreciated.

Thanks,
Alex
 
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers



 
--
Future Lian

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers

 


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]