From 4df63c37b522e028b6eedb9ce8e2f9d3647939f9 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Fri, 28 Oct 2011 21:30:41 +0200 Subject: [PATCH] fix exception because in call view is shown twice for outgoing calls. (ios5) --- Classes/LinphoneUI/LinphoneManager.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneUI/LinphoneManager.m b/Classes/LinphoneUI/LinphoneManager.m index af401c7a0..da5c342d9 100644 --- a/Classes/LinphoneUI/LinphoneManager.m +++ b/Classes/LinphoneUI/LinphoneManager.m @@ -137,9 +137,11 @@ extern void libmssilk_init(); break; case LinphoneCallConnected: - [callDelegate displayIncallFromUI:mCurrentViewController + if (linphone_call_get_dir(currentCall)==LinphoneCallIncoming){ + [callDelegate displayIncallFromUI:mCurrentViewController forUser:lUserName withDisplayName:lDisplayName]; + } break; case LinphoneCallError: {