Fix crash when outgoing calls

This commit is contained in:
Benjamin Reis 2016-12-15 08:55:33 +01:00
parent cd93c10576
commit d137da4632

View file

@ -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];