mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 04:26:27 +00:00
Merge branch 'master' of git.linphone.org:linphone-iphone
This commit is contained in:
commit
7e4a6cdb53
6 changed files with 28 additions and 17 deletions
|
|
@ -932,7 +932,11 @@ static void hideSpinner(LinphoneCall* call, void* user_data) {
|
||||||
} else {
|
} else {
|
||||||
switch (linphone_call_get_state(call)) {
|
switch (linphone_call_get_state(call)) {
|
||||||
case LinphoneCallPaused:
|
case LinphoneCallPaused:
|
||||||
[ms appendFormat:@"%@", NSLocalizedString(@"Paused (tap to resume)", nil), nil];
|
if(!linphone_core_sound_resources_locked(linphone_call_get_core(call))) {
|
||||||
|
[ms appendFormat:@"%@", NSLocalizedString(@"Paused (tap to resume)", nil), nil];
|
||||||
|
} else {
|
||||||
|
[ms appendFormat:@"%@", NSLocalizedString(@"Paused", nil), nil];
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case LinphoneCallOutgoingInit:
|
case LinphoneCallOutgoingInit:
|
||||||
case LinphoneCallOutgoingProgress:
|
case LinphoneCallOutgoingProgress:
|
||||||
|
|
@ -1242,7 +1246,9 @@ static void hideSpinner(LinphoneCall* call, void* user_data) {
|
||||||
if (linphone_core_is_in_conference(lc)) {
|
if (linphone_core_is_in_conference(lc)) {
|
||||||
linphone_core_leave_conference(lc);
|
linphone_core_leave_conference(lc);
|
||||||
}
|
}
|
||||||
linphone_core_resume_call([LinphoneManager getLc], selectedCall);
|
if(!linphone_core_sound_resources_locked(lc)) {
|
||||||
|
linphone_core_resume_call([LinphoneManager getLc], selectedCall);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[self updateUIFromLinphoneState: YES];
|
[self updateUIFromLinphoneState: YES];
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,14 @@ extern void libmsbcg729_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void) onCall:(LinphoneCall*) call StateChanged: (LinphoneCallState) new_state withMessage: (const char *) message {
|
-(void) onCall:(LinphoneCall*) call StateChanged: (LinphoneCallState) new_state withMessage: (const char *) message {
|
||||||
|
if(new_state == LinphoneCallReleased) {
|
||||||
|
if(linphone_call_get_user_pointer(call) != NULL) {
|
||||||
|
free (linphone_call_get_user_pointer(call));
|
||||||
|
linphone_call_set_user_pointer(call, NULL);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const char* lUserNameChars=linphone_address_get_username(linphone_call_get_remote_address(call));
|
const char* lUserNameChars=linphone_address_get_username(linphone_call_get_remote_address(call));
|
||||||
NSString* lUserName = lUserNameChars?[[[NSString alloc] initWithUTF8String:lUserNameChars] autorelease]:NSLocalizedString(@"Unknown",nil);
|
NSString* lUserName = lUserNameChars?[[[NSString alloc] initWithUTF8String:lUserNameChars] autorelease]:NSLocalizedString(@"Unknown",nil);
|
||||||
if (new_state == LinphoneCallIncomingReceived) {
|
if (new_state == LinphoneCallIncomingReceived) {
|
||||||
|
|
@ -269,9 +277,6 @@ extern void libmsbcg729_init();
|
||||||
[callDelegate displayInCall:call FromUI:mCurrentViewController forUser:lUserName withDisplayName:lDisplayName];
|
[callDelegate displayInCall:call FromUI:mCurrentViewController forUser:lUserName withDisplayName:lDisplayName];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LinphoneCallReleased:
|
|
||||||
free (linphone_call_get_user_pointer(call));
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -270,9 +270,9 @@
|
||||||
|
|
||||||
mIncomingCallActionSheet = [[UIActionSheet alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@" %@ is calling you",nil),[displayName length]>0?displayName:username]
|
mIncomingCallActionSheet = [[UIActionSheet alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@" %@ is calling you",nil),[displayName length]>0?displayName:username]
|
||||||
delegate:cd
|
delegate:cd
|
||||||
cancelButtonTitle:NSLocalizedString(@"Decline",nil)
|
cancelButtonTitle:nil
|
||||||
destructiveButtonTitle:NSLocalizedString(@"Answer",nil)
|
destructiveButtonTitle:NSLocalizedString(@"Answer",nil)
|
||||||
otherButtonTitles:nil];
|
otherButtonTitles:NSLocalizedString(@"Decline",nil),nil];
|
||||||
|
|
||||||
mIncomingCallActionSheet.actionSheetStyle = UIActionSheetStyleDefault;
|
mIncomingCallActionSheet.actionSheetStyle = UIActionSheetStyleDefault;
|
||||||
if ([LinphoneManager runningOnIpad]) {
|
if ([LinphoneManager runningOnIpad]) {
|
||||||
|
|
@ -320,8 +320,8 @@
|
||||||
|
|
||||||
-(void) displayInCall: (LinphoneCall*) call FromUI:(UIViewController*) viewCtrl forUser:(NSString*) username withDisplayName:(NSString*) displayName {
|
-(void) displayInCall: (LinphoneCall*) call FromUI:(UIViewController*) viewCtrl forUser:(NSString*) username withDisplayName:(NSString*) displayName {
|
||||||
[mMainScreenWithVideoPreview showPreview:NO];
|
[mMainScreenWithVideoPreview showPreview:NO];
|
||||||
if (self.presentedViewController != (UIViewController*)mIncallViewController && (call == 0x0 ||
|
if (self.presentedViewController != (UIViewController*)mIncallViewController /*&& (call == 0x0 ||
|
||||||
linphone_call_get_dir(call)==LinphoneCallIncoming)){
|
linphone_call_get_dir(call)==LinphoneCallIncoming)*/){
|
||||||
[self presentModalViewController:(UIViewController*)mIncallViewController animated:true];
|
[self presentModalViewController:(UIViewController*)mIncallViewController animated:true];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,11 +24,11 @@
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>3.5.0</string>
|
<string>3.5.2</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.1.2</string>
|
<string>1.3</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
<string>PhoneMainView</string>
|
<string>PhoneMainView</string>
|
||||||
<key>NSMainNibFile~ipad</key>
|
<key>NSMainNibFile~ipad</key>
|
||||||
|
|
|
||||||
|
|
@ -1596,7 +1596,7 @@
|
||||||
HAVE_SILK,
|
HAVE_SILK,
|
||||||
);
|
);
|
||||||
GCC_THUMB_SUPPORT = NO;
|
GCC_THUMB_SUPPORT = NO;
|
||||||
GCC_VERSION = com.apple.compilers.llvmgcc42;
|
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
submodules/linphone/coreapi,
|
submodules/linphone/coreapi,
|
||||||
submodules/linphone/mediastreamer2/include,
|
submodules/linphone/mediastreamer2/include,
|
||||||
|
|
@ -1635,7 +1635,7 @@
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 3.1;
|
IPHONEOS_DEPLOYMENT_TARGET = 3.1;
|
||||||
LIBRARY_SEARCH_PATHS = "";
|
LIBRARY_SEARCH_PATHS = "";
|
||||||
LINK_WITH_STANDARD_LIBRARIES = YES;
|
LINK_WITH_STANDARD_LIBRARIES = YES;
|
||||||
PROVISIONING_PROFILE = "32E63D15-36ED-474A-8157-8DD0770DF063";
|
PROVISIONING_PROFILE = "B8ED8915-B69D-40DA-9B89-1700C44B156B";
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
};
|
};
|
||||||
name = DistributionAdhoc;
|
name = DistributionAdhoc;
|
||||||
|
|
@ -1662,7 +1662,7 @@
|
||||||
HAVE_SILK,
|
HAVE_SILK,
|
||||||
);
|
);
|
||||||
GCC_THUMB_SUPPORT = NO;
|
GCC_THUMB_SUPPORT = NO;
|
||||||
GCC_VERSION = com.apple.compilers.llvmgcc42;
|
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
submodules/linphone/coreapi,
|
submodules/linphone/coreapi,
|
||||||
submodules/linphone/mediastreamer2/include,
|
submodules/linphone/mediastreamer2/include,
|
||||||
|
|
@ -1938,7 +1938,7 @@
|
||||||
HAVE_SILK,
|
HAVE_SILK,
|
||||||
);
|
);
|
||||||
GCC_THUMB_SUPPORT = NO;
|
GCC_THUMB_SUPPORT = NO;
|
||||||
GCC_VERSION = com.apple.compilers.llvmgcc42;
|
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
submodules/linphone/coreapi,
|
submodules/linphone/coreapi,
|
||||||
submodules/linphone/mediastreamer2/include,
|
submodules/linphone/mediastreamer2/include,
|
||||||
|
|
@ -2005,7 +2005,7 @@
|
||||||
HAVE_SILK,
|
HAVE_SILK,
|
||||||
);
|
);
|
||||||
GCC_THUMB_SUPPORT = NO;
|
GCC_THUMB_SUPPORT = NO;
|
||||||
GCC_VERSION = com.apple.compilers.llvmgcc42;
|
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
submodules/linphone/coreapi,
|
submodules/linphone/coreapi,
|
||||||
submodules/linphone/mediastreamer2/include,
|
submodules/linphone/mediastreamer2/include,
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit bad6c152f1521de8648d47c70e9321b7668b40b5
|
Subproject commit 2d669353c3eda22e63023fde2f3cde7b437d2c81
|
||||||
Loading…
Add table
Reference in a new issue