mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
linphonecore.c: instead friend list only when starting linphonecore, because it relies on the linphone configuration file which is not available earlier
This commit is contained in:
parent
e746c7876b
commit
c440e2d0e8
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue