mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Fix call not paused when entering conference.
This commit is contained in:
parent
7c514d326b
commit
ab498e8e8c
3 changed files with 6 additions and 3 deletions
|
|
@ -194,6 +194,9 @@ int linphone_core_enter_conference(LinphoneCore *lc){
|
|||
if (linphone_core_sound_resources_locked(lc)) {
|
||||
return -1;
|
||||
}
|
||||
if (lc->current_call != NULL) {
|
||||
linphone_core_pause_call(lc, lc->current_call);
|
||||
}
|
||||
LinphoneConference *conf=&lc->conf_ctx;
|
||||
if (conf->local_participant==NULL) add_local_endpoint(conf,lc);
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -1471,8 +1471,8 @@ extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_resumeCall(JNIEnv *env,j
|
|||
extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isInConference(JNIEnv *env,jobject thiz,jlong pCore) {
|
||||
return linphone_core_is_in_conference((LinphoneCore *) pCore);
|
||||
}
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_enterConference(JNIEnv *env,jobject thiz,jlong pCore) {
|
||||
linphone_core_enter_conference((LinphoneCore *) pCore);
|
||||
extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_enterConference(JNIEnv *env,jobject thiz,jlong pCore) {
|
||||
return 0 == linphone_core_enter_conference((LinphoneCore *) pCore);
|
||||
}
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_leaveConference(JNIEnv *env,jobject thiz,jlong pCore) {
|
||||
linphone_core_leave_conference((LinphoneCore *) pCore);
|
||||
|
|
|
|||
|
|
@ -607,7 +607,7 @@ public interface LinphoneCore {
|
|||
void enableEchoLimiter(boolean val);
|
||||
|
||||
boolean isInConference();
|
||||
void enterConference();
|
||||
boolean enterConference();
|
||||
void leaveConference();
|
||||
|
||||
void addToConference(LinphoneCall call);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue