mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
Disable ringer
This commit is contained in:
parent
5b7f27765f
commit
974ca9b950
1 changed files with 3 additions and 7 deletions
|
|
@ -45,6 +45,7 @@
|
|||
@"tcp", @"transport_preference",
|
||||
@"NO", @"enable_srtp_preference",
|
||||
@"YES", @"backgroundmode_preference",
|
||||
@"YES", @"outbound_proxy_preference",
|
||||
nil];
|
||||
|
||||
[defaultsToRegister addEntriesFromDictionary:appDefaults];
|
||||
|
|
@ -71,12 +72,7 @@
|
|||
linphone_core_set_device_rotation([LinphoneManager getLc], 0);
|
||||
linphone_core_set_video_device([LinphoneManager getLc], "DummyImage: Dummy (no) picture");
|
||||
|
||||
NSLog(@"linphone state: %d", linphone_core_get_global_state([LinphoneManager getLc]));
|
||||
NSBundle* myBundle = [NSBundle mainBundle];
|
||||
const char* lRing = [[myBundle pathForResource:@"01"ofType:@"wav"] cStringUsingEncoding:[NSString defaultCStringEncoding]];
|
||||
linphone_core_set_ring([LinphoneManager getLc], lRing );
|
||||
const char* lRingBack = [[myBundle pathForResource:@"01"ofType:@"wav"] cStringUsingEncoding:[NSString defaultCStringEncoding]];
|
||||
linphone_core_set_ringback([LinphoneManager getLc], lRingBack);
|
||||
linphone_core_set_ring([LinphoneManager getLc], NULL );
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
|
@ -89,7 +85,7 @@
|
|||
}
|
||||
|
||||
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
|
||||
ms_message("Kikoo");
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue