mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
remove useless code
This commit is contained in:
parent
47dba0d21a
commit
505aadc5bd
1 changed files with 9 additions and 23 deletions
|
|
@ -2837,32 +2837,18 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) {
|
|||
([LinphoneManager bundleFile:[self lpConfigStringForKey:@"local_ring" inSection:@"sound"].lastPathComponent]
|
||||
?: [LinphoneManager bundleFile:@"notes_of_the_optimistic.caf"])
|
||||
.lastPathComponent;
|
||||
NSString * notif_type;
|
||||
if (floor(NSFoundationVersionNumber) >= NSFoundationVersionNumber_iOS_8_0) {
|
||||
//IOS 8 and more
|
||||
notif_type = @".voip";
|
||||
} else {
|
||||
// IOS 7 and below
|
||||
notif_type = @"";
|
||||
}
|
||||
NSString *timeout;
|
||||
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_9_x_Max) {
|
||||
timeout = @";pn-timeout=0";
|
||||
} else {
|
||||
timeout = @"";
|
||||
}
|
||||
|
||||
NSString *silent;
|
||||
if (floor(NSFoundationVersionNumber) >= NSFoundationVersionNumber_iOS_8_0) {
|
||||
silent = @";pn-silent=1";
|
||||
|
||||
NSString *timeout;
|
||||
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_9_x_Max) {
|
||||
timeout = @";pn-timeout=0";
|
||||
} else {
|
||||
silent = @"";
|
||||
timeout = @"";
|
||||
}
|
||||
|
||||
|
||||
NSString *params = [NSString
|
||||
stringWithFormat:@"app-id=%@%@.%@;pn-type=apple;pn-tok=%@;pn-msg-str=IM_MSG;pn-call-str=IC_MSG;pn-"
|
||||
@"call-snd=%@;pn-msg-snd=msg.caf%@%@",
|
||||
[[NSBundle mainBundle] bundleIdentifier], notif_type, APPMODE_SUFFIX, tokenString, ring, timeout, silent];
|
||||
stringWithFormat:@"app-id=%@.voip.%@;pn-type=apple;pn-tok=%@;pn-msg-str=IM_MSG;pn-call-str=IC_MSG;pn-"
|
||||
@"call-snd=%@;pn-msg-snd=msg.caf%@;pn-silent=1",
|
||||
[[NSBundle mainBundle] bundleIdentifier], APPMODE_SUFFIX, tokenString, ring, timeout];
|
||||
|
||||
LOGI(@"Proxy config %s configured for push notifications with contact: %@",
|
||||
linphone_proxy_config_get_identity(proxyCfg), params);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue