static void misc_config_read (LinphoneCore *lc) {
LpConfig *config=lc->config;
lc->max_call_logs=lp_config_get_int(config,"misc","history_max_size",15);
+ lc->max_calls=lp_config_get_int(config,"misc","max_calls",NB_MAX_CALLS);
}
static void linphone_core_init (LinphoneCore * lc, const LinphoneCoreVTable *vtable, const char *config_path,
lc->ringstream=NULL;
}
+int linphone_core_get_max_calls(LinphoneCore *lc) {
+ return lc->max_calls;
+}
+
+
typedef struct Hook{
LinphoneCoreIterateHook fun;
void *data;
int linphone_core_terminate_conference(LinphoneCore *lc);
int linphone_core_get_conference_size(LinphoneCore *lc);
+int linphone_core_get_max_calls(LinphoneCore *lc);
+
#ifdef __cplusplus
}
#endif
extern "C" void Java_org_linphone_LinphoneManager_hackSpeakerState(JNIEnv* env,jobject thiz,jboolean speakerOn){
msandroid_hack_speaker_state(speakerOn);
+}
// End Galaxy S hack functions
+
+
+extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_getMaxCalls(JNIEnv *env,jobject thiz,jlong pCore) {
+ return (jint) linphone_core_get_max_calls((LinphoneCore *) pCore);
}
bool_t use_preview_window;
int device_rotation;
bool_t ringstream_autorelease;
+ int max_calls;
};
bool_t linphone_core_can_we_add_call(LinphoneCore *lc);
void transferCallToAnother(LinphoneCall callToTransfer, LinphoneCall destination);
LinphoneCall findCallFromUri(String uri);
+
+ int getMaxCalls();
+
}