Linphone配置大全
non_localizable_custom.xml
<bool name="auto_answer_calls">false</bool>
LinphoneActivity.java
// boolean useFirstLoginActivity = getResources().getBoolean(R.bool.display_account_wizard_at_first_start);
// if (LinphonePreferences.instance().isProvisioningLoginViewEnabled()) {
// Intent wizard = new Intent();
// wizard.setClass(this, RemoteProvisioningLoginActivity.class);
// wizard.putExtra("Domain", LinphoneManager.getInstance().wizardLoginViewDomain);
// startActivityForResult(wizard, REMOTE_PROVISIONING_LOGIN_ACTIVITY);
// } else if (useFirstLoginActivity && LinphonePreferences.instance().isFirstLaunch() || LinphoneManager.getLc().getProxyConfigList().length == 0) {
// if (LinphonePreferences.instance().getAccountCount() > 0) {
// LinphonePreferences.instance().firstLaunchSuccessful();
// } else {
// startActivityForResult(new Intent().setClass(this, AssistantActivity.class), FIRST_LOGIN_ACTIVITY);
// }
// }
3.设置自动以视频方式接听电话
LinphonePreferences.instance().setAutomaticallyAcceptVideoRequests(true);
LinphonePreferences.instance().setInitiateVideoCall(true)
LinphonePreferences.instance().setDebugEnabled(true);
LinphoneManager.getLc().setMaxCalls(数量);
/res/raw/linphonerc_default 文件
keepalive_period=30000
- 8.打开和关闭linphone的调试Debug开关
LinphonePreferences.instance().setDebugEnabled(false)