Adding custom function to new linphone SDK.
As the developers guided i built liblinphone android sdk by adding small function to bellesip C code . Also added related entry to linphonecore_jni.cc and built linphone-android-sdk. On documentation page it said that wrapper will be generated automatically for native functions . But After building AAR and added that to the linphone project I can not see my method in Core methods . I tried both -DENABLE_JAVA_WRAPPER=NO
and -DENABLE_JAVA_WRAPPER=YES
.
I tried adding
JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCoreImpl_setCutomFunction(JNIEnv *env, jobject thiz, jlong lc, jint tik, jint tik_size) {
settiks(tiks, tik_size);
}linphonecore_jni
I expected that I can call native method in linphone java code . All methods are populating except my custom method in core. Is there any additional step apart from adding linphonesdk AAR library file to linphone project .