From c440e2d0e891fa8165524018411fe0eeb94fa604 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 27 Apr 2016 11:22:14 +0200 Subject: [PATCH] linphonecore.c: instead friend list only when starting linphonecore, because it relies on the linphone configuration file which is not available earlier --- coreapi/linphonecore.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index e84f8e5d2..5a6918c49 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -1571,6 +1571,8 @@ void linphone_core_reload_ms_plugins(LinphoneCore *lc, const char *path){ } static void linphone_core_start(LinphoneCore * lc) { + linphone_core_add_friend_list(lc, NULL); + sip_setup_register_all(lc->factory); sound_config_read(lc); net_config_read(lc); @@ -1588,6 +1590,7 @@ static void linphone_core_start(LinphoneCore * lc) { } #endif + linphone_core_notify_display_status(lc,_("Ready")); lc->auto_net_state_mon=lc->sip_conf.auto_net_state_mon; linphone_core_set_state(lc,LinphoneGlobalOn,"Ready"); @@ -1726,8 +1729,6 @@ static void linphone_core_init(LinphoneCore * lc, const LinphoneCoreVTable *vtab lc->data=userdata; lc->ringstream_autorelease=TRUE; - linphone_core_add_friend_list(lc, NULL); - linphone_task_list_init(&lc->hooks); internal_vtable->notify_received = linphone_core_internal_notify_received;