- fixed bug in checking of record audio permission

- do not load baresip lib if it has already been loaded
- removed call uri adapter when call comes in
This commit is contained in:
Juha Heinanen
2018-11-23 16:52:35 +02:00
parent c454544e92
commit db7538f9db
4 changed files with 29 additions and 19 deletions

View File

@ -329,6 +329,8 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved) {
JNIEXPORT void JNICALL
Java_com_tutpro_baresip_BaresipService_baresipStart(JNIEnv *env, jobject instance, jstring javaPath) {
LOGD("Starting baresip\n");
BaresipContext *pctx = (BaresipContext *)(&g_ctx);
JavaVM *javaVM = pctx->javaVM;
jint res = (*javaVM)->GetEnv(javaVM, (void **) &env, JNI_VERSION_1_6);