diff --git a/Classes/LinphoneManager.h b/Classes/LinphoneManager.h index 3d1bb38b7..a527c4f6a 100644 --- a/Classes/LinphoneManager.h +++ b/Classes/LinphoneManager.h @@ -99,6 +99,7 @@ struct NetworkReachabilityContext { typedef struct _LinphoneManagerSounds { SystemSoundID call; SystemSoundID message; + SystemSoundID vibrate; } LinphoneManagerSounds; @interface LinphoneManager : NSObject { diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 0aa9d60d7..4f3802a13 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -257,6 +257,7 @@ struct codec_name_pref_table codec_pref_table[]={ [LinphoneLogger log:LinphoneLoggerWarning format:@"Can't set \"message\" system sound"]; } } + sounds.vibrate = kSystemSoundID_Vibrate; logs = [[NSMutableArray alloc] init]; database = NULL; diff --git a/Classes/PhoneMainView.m b/Classes/PhoneMainView.m index 01f66a209..40f318f36 100644 --- a/Classes/PhoneMainView.m +++ b/Classes/PhoneMainView.m @@ -603,6 +603,7 @@ static PhoneMainView* phoneMainViewInstance=nil; || [UIApplication sharedApplication].applicationState == UIApplicationStateActive) { if(![self removeInhibitedEvent:kLinphoneTextReceived]) { AudioServicesPlaySystemSound([LinphoneManager instance].sounds.message); + AudioServicesPlaySystemSound([LinphoneManager instance].sounds.vibrate); } } }