Enable RTCP-XR and quality reporting ONLY for sip.linphone.org accounts

This reverts commit 7afb2dd8db.
This commit is contained in:
Gautier Pelloux-Prayer 2014-07-10 14:24:16 +02:00
parent 9c4731a8fc
commit 19c48bf370
3 changed files with 30 additions and 14 deletions

View file

@ -18,12 +18,6 @@ audio_jitt_comp=60
video_jitt_comp=60 video_jitt_comp=60
nortp_timeout=30 nortp_timeout=30
disable_upnp=1 disable_upnp=1
rtcp_xr_enabled=1
rtcp_xr_rcvr_rtt_mode=all
rtcp_xr_rcvr_rtt_max_size=10000
rtcp_xr_stat_summary_enabled=1
rtcp_xr_voip_metrics_enabled=1
[sound] [sound]
playback_dev_id= playback_dev_id=
@ -35,8 +29,3 @@ dtmf_player_amp=0.1
[misc] [misc]
max_calls=10 max_calls=10
[proxy_default_values]
quality_reporting_collector=sip:voip-metrics@sip.linphone.org
quality_reporting_enabled=1
quality_reporting_interval=180

View file

@ -164,9 +164,13 @@ public class LinphonePreferences {
private TransportType tempTransport; private TransportType tempTransport;
private boolean tempAvpfEnabled = false; private boolean tempAvpfEnabled = false;
private int tempAvpfRRInterval = 0; private int tempAvpfRRInterval = 0;
private String tempQualityReportingCollector;
private boolean tempQualityReportingEnabled = false;
private int tempQualityReportingInterval = 0;
private boolean tempEnabled = true; private boolean tempEnabled = true;
private boolean tempNoDefault = false; private boolean tempNoDefault = false;
public AccountBuilder(LinphoneCore lc) { public AccountBuilder(LinphoneCore lc) {
this.lc = lc; this.lc = lc;
} }
@ -231,6 +235,21 @@ public class LinphonePreferences {
return this; return this;
} }
public AccountBuilder setQualityReportingCollector(String collector) {
tempQualityReportingCollector = collector;
return this;
}
public AccountBuilder setQualityReportingEnabled(boolean enable) {
tempQualityReportingEnabled = enable;
return this;
}
public AccountBuilder setQualityReportingInterval(int interval) {
tempQualityReportingInterval = interval;
return this;
}
public AccountBuilder setEnabled(boolean enable) { public AccountBuilder setEnabled(boolean enable) {
tempEnabled = enable; tempEnabled = enable;
return this; return this;
@ -283,6 +302,9 @@ public class LinphonePreferences {
prxCfg.enableAvpf(tempAvpfEnabled); prxCfg.enableAvpf(tempAvpfEnabled);
prxCfg.setAvpfRRInterval(tempAvpfRRInterval); prxCfg.setAvpfRRInterval(tempAvpfRRInterval);
prxCfg.enableQualityReporting(tempQualityReportingEnabled);
prxCfg.setQualityReportingCollector(tempQualityReportingCollector);
prxCfg.setQualityReportingInterval(tempQualityReportingInterval);
LinphoneAuthInfo authInfo = LinphoneCoreFactory.instance().createAuthInfo(tempUsername, tempUserId, tempPassword, null, null, tempDomain); LinphoneAuthInfo authInfo = LinphoneCoreFactory.instance().createAuthInfo(tempUsername, tempUserId, tempPassword, null, null, tempDomain);

View file

@ -306,9 +306,14 @@ public class SetupActivity extends FragmentActivity implements OnClickListener {
} }
builder.setExpires("604800") builder.setExpires("604800")
.setOutboundProxyEnabled(true); .setOutboundProxyEnabled(true)
builder.setAvpfEnabled(true); .setAvpfEnabled(true)
builder.setAvpfRRInterval(3); .setAvpfRRInterval(3)
.setQualityReportingCollector("sip:voip-metrics@sip.linphone.org")
.setQualityReportingEnabled(true)
.setQualityReportingInterval(180);
mPrefs.setStunServer(getString(R.string.default_stun)); mPrefs.setStunServer(getString(R.string.default_stun));
mPrefs.setIceEnabled(true); mPrefs.setIceEnabled(true);
mPrefs.setPushNotificationEnabled(true); mPrefs.setPushNotificationEnabled(true);