From d137da46321d0e0a283ab7533db446ecd7921752 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 15 Dec 2016 08:55:33 +0100 Subject: [PATCH] Fix crash when outgoing calls --- Classes/LinphoneManager.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index aa949b751..0f4e9579a 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -652,10 +652,10 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char const LinphoneAddress *addr = linphone_call_get_remote_address(call); NSString *address = [FastAddressBook displayNameForAddress:addr]; - LinphoneCallLog *callLog = linphone_call_get_call_log(call); - NSString *callId = [NSString stringWithUTF8String:linphone_call_log_get_call_id(callLog)]; if (state == LinphoneCallIncomingReceived) { + LinphoneCallLog *callLog = linphone_call_get_call_log(call); + NSString *callId = [NSString stringWithUTF8String:linphone_call_log_get_call_id(callLog)]; /*first step is to re-enable ctcall center*/ CTCallCenter *lCTCallCenter = [[CTCallCenter alloc] init];