diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index e6f98fa9b..c32a6ce22 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -1861,6 +1861,15 @@ int linphone_core_get_sip_transport_timeout(LinphoneCore *lc) { return lc->sal->get_transport_timeout(); } +bool_t linphone_core_get_dns_set_by_app(LinphoneCore *lc) { + return lc->dns_set_by_app; +} + +void linphone_core_set_dns_servers_app(LinphoneCore *lc, const bctbx_list_t *servers){ + lc->dns_set_by_app = (servers != NULL); + linphone_core_set_dns_servers(lc, servers); +} + void linphone_core_set_dns_servers(LinphoneCore *lc, const bctbx_list_t *servers){ lc->sal->set_dns_servers(servers); } diff --git a/coreapi/linphonecore_jni.cc b/coreapi/linphonecore_jni.cc index 81658c4b2..c38b55f3c 100644 --- a/coreapi/linphonecore_jni.cc +++ b/coreapi/linphonecore_jni.cc @@ -4909,7 +4909,7 @@ extern "C" void Java_org_linphone_core_LinphoneChatRoomImpl_sendChatMessage(JNIE ,jlong chatroom_ptr ,jobject message ,jlong messagePtr) { - + linphone_chat_room_send_chat_message_2((LinphoneChatRoom*)chatroom_ptr, (LinphoneChatMessage*)messagePtr); } @@ -7693,7 +7693,7 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setDnsServers(JNIEnv *e } } } - linphone_core_set_dns_servers((LinphoneCore*)lc, l); + linphone_core_set_dns_servers_app((LinphoneCore*)lc, l); bctbx_list_free_with_data(l, ms_free); } @@ -7792,7 +7792,7 @@ JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCallImpl_setListener(JNIEn linphone_call_cbs_set_user_data(cbs, env->NewWeakGlobalRef(jlistener)); linphone_call_cbs_set_tmmbr_received(cbs, _on_tmmbr_received); linphone_call_add_callbacks(call, cbs); - + linphone_call_set_next_video_frame_decoded_callback(call, _next_video_frame_decoded_callback, env->NewWeakGlobalRef(jlistener)); } diff --git a/coreapi/private.h b/coreapi/private.h index 37d433c90..bc33c4184 100644 --- a/coreapi/private.h +++ b/coreapi/private.h @@ -127,7 +127,6 @@ #define STRING_SET(field, value) do{ if (field){bctbx_free(field);field=NULL;}; field=bctbx_strdup(value); }while(0) #define STRING_TRANSFER(field, newvalue) do{ if (field){bctbx_free(field);field=NULL;}; field=newvalue; }while(0) - #ifdef __cplusplus #define getPlatformHelpers(lc) static_cast(lc->platform_helper) #endif diff --git a/coreapi/private_structs.h b/coreapi/private_structs.h index 3bcfc4d78..0b68e7c8b 100644 --- a/coreapi/private_structs.h +++ b/coreapi/private_structs.h @@ -822,6 +822,7 @@ namespace LinphonePrivate { char *update_check_current_version; \ bctbx_list_t *chat_rooms; \ bctbx_list_t *callsCache; \ + bool_t dns_set_by_app; \ #ifdef SQLITE_STORAGE_ENABLED #define LINPHONE_CORE_STRUCT_FIELDS \ diff --git a/include/linphone/core.h b/include/linphone/core.h index c8e876c6a..4856a5177 100644 --- a/include/linphone/core.h +++ b/include/linphone/core.h @@ -183,8 +183,7 @@ typedef struct _LinphoneCoreVTable{ LinphoneCoreSubscriptionStateChangedCb subscription_state_changed; /**