Commit 36561bbc authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Create the tunnel object before remote provisioning so that it can successfully be configured.

parent 227002d1
......@@ -1502,7 +1502,6 @@ static void linphone_core_start(LinphoneCore * lc) {
misc_config_read(lc);
ui_config_read(lc);
#ifdef TUNNEL_ENABLED
lc->tunnel=linphone_core_tunnel_new(lc);
if (lc->tunnel) {
linphone_tunnel_configure(lc->tunnel);
}
......@@ -1630,6 +1629,10 @@ static void linphone_core_init(LinphoneCore * lc, const LinphoneCoreVTable *vtab
sal_set_user_pointer(lc->sal,lc);
sal_set_callbacks(lc->sal,&linphone_sal_callbacks);
#ifdef TUNNEL_ENABLED
lc->tunnel=linphone_core_tunnel_new(lc);
#endif
lc->network_last_check = 0;
lc->network_last_status = FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment