diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index 2029ed228..b575da0b3 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -111,6 +111,9 @@ instance->currentCallContextBeforeGoingBackground.call = 0; } else { [[PhoneMainView instance ] displayIncomingCall:call]; + // in this case, the ringing sound comes from the notification. + // To stop it we have to do the iOS7 ring fix... + [self fixRing]; } } } diff --git a/Classes/PhoneMainView.m b/Classes/PhoneMainView.m index c43a87534..ee5dc90b5 100644 --- a/Classes/PhoneMainView.m +++ b/Classes/PhoneMainView.m @@ -345,6 +345,7 @@ static PhoneMainView* phoneMainViewInstance=nil; int count = 0; count += linphone_core_get_missed_calls_count([LinphoneManager getLc]); count += [ChatModel unreadMessages]; + count += linphone_core_get_calls_nb([LinphoneManager getLc]); [[UIApplication sharedApplication] setApplicationIconBadgeNumber:count]; }