From 24eaed12119bd5b60a58b087fa771c942ae95d26 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Tue, 17 May 2011 12:51:02 +0200 Subject: [PATCH] fix flashing status bar at startup --- Classes/LinphoneUI/LinphoneManager.m | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Classes/LinphoneUI/LinphoneManager.m b/Classes/LinphoneUI/LinphoneManager.m index 4b1abd8aa..a3da09b35 100644 --- a/Classes/LinphoneUI/LinphoneManager.m +++ b/Classes/LinphoneUI/LinphoneManager.m @@ -624,19 +624,17 @@ void networkReachabilityCallBack(SCNetworkReachabilityRef target, SCNetworkReach otherButtonTitles:nil ,nil]; [error show]; } - /*IOS specific*/ - linphone_core_start_dtmf_stream(theLinphoneCore); - + } -(void) becomeActive { - if (theLinphoneCore == nil) { + /*IOS specific*/ + linphone_core_start_dtmf_stream(theLinphoneCore); + if (theLinphoneCore == nil) { //back from standby and background mode is disabled [self startLibLinphone]; - } else { - ms_message("becomming active, make sure we are registered"); - linphone_core_start_dtmf_stream(theLinphoneCore); + ms_message("becomming active, make sure we are registered"); linphone_core_refresh_registers(theLinphoneCore);//just to make sure REGISTRATION is up to date }