From 36561bbc4446ba276692c8ea001a0416976adcf2 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 20 Nov 2014 11:25:04 +0100 Subject: [PATCH] Create the tunnel object before remote provisioning so that it can successfully be configured. --- coreapi/linphonecore.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 3ead49966..b434feebb 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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;