Fixed handling of call action when baresip app was not running

This commit is contained in:
Juha Heinanen
2021-01-21 15:37:33 +02:00
parent 2038a3170a
commit 31fa509d34
3 changed files with 37 additions and 1 deletions

View File

@ -562,6 +562,9 @@ Java_com_tutpro_baresip_BaresipService_baresipStart(JNIEnv *env, jobject instanc
for (le = list_head(uag_list()); le != NULL; le = le->next)
ua_print_status_log(le->data);
jmethodID startedId = (*env)->GetMethodID(env, g_ctx.mainActivityClz, "started", "()V");
(*env)->CallVoidMethod(env, g_ctx.mainActivityObj, startedId);
LOGI("running main loop ...\n");
err = re_main(signal_handler);