mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Use quality reporting when configuring a new linphone account, and migrate existing linphone accounts to send quality report.
Also enable RTCP-XR by default.
This commit is contained in:
parent
33c938f874
commit
e01f0ad6e8
5 changed files with 34 additions and 0 deletions
|
|
@ -1157,12 +1157,30 @@ static LinphoneCoreVTable linphonec_vtable = {
|
|||
const char* addr = linphone_proxy_config_get_addr(proxy);
|
||||
// we want to enable AVPF for the proxies
|
||||
if( addr && strstr(addr, "sip.linphone.org") != 0 ){
|
||||
Linphone_log(@"Migrating proxy config to use AVPF");
|
||||
linphone_proxy_config_enable_avpf(proxy, TRUE);
|
||||
}
|
||||
proxies = proxies->next;
|
||||
}
|
||||
[self lpConfigSetBool:TRUE forKey:@"avpf_migration_done"];
|
||||
}
|
||||
/* Quality Reporting migration */
|
||||
if( [self lpConfigBoolForKey:@"quality_report_migration_done" forSection:@"app"] == FALSE ){
|
||||
const MSList* proxies = linphone_core_get_proxy_config_list(theLinphoneCore);
|
||||
while(proxies){
|
||||
LinphoneProxyConfig* proxy = (LinphoneProxyConfig*)proxies->data;
|
||||
const char* addr = linphone_proxy_config_get_addr(proxy);
|
||||
// we want to enable quality reporting for the proxies that are on linphone.org
|
||||
if( addr && strstr(addr, "sip.linphone.org") != 0 ){
|
||||
Linphone_log(@"Migrating proxy config to send quality report");
|
||||
linphone_proxy_config_set_quality_reporting_collector(proxy, "sip:voip-metrics@sip.linphone.org");
|
||||
linphone_proxy_config_set_quality_reporting_interval(proxy, 180);
|
||||
linphone_proxy_config_enable_quality_reporting(proxy, TRUE);
|
||||
}
|
||||
proxies = proxies->next;
|
||||
}
|
||||
[self lpConfigSetBool:TRUE forKey:@"quality_report_migration_done"];
|
||||
}
|
||||
|
||||
[self setupNetworkReachabilityCallback];
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,11 @@ auto_net_state_mon=0
|
|||
keepalive_period=30000
|
||||
ping_with_options=0
|
||||
sip_random_port=0
|
||||
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
|
||||
|
||||
[rtp]
|
||||
audio_jitt_comp=60
|
||||
|
|
|
|||
|
|
@ -14,6 +14,11 @@ auto_net_state_mon=0
|
|||
keepalive_period=30000
|
||||
ping_with_options=0
|
||||
sip_random_port=0
|
||||
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
|
||||
|
||||
[rtp]
|
||||
audio_jitt_comp=60
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@
|
|||
<entry name="publish" overwrite="true">0</entry>
|
||||
<entry name="dial_escape_plus" overwrite="true">0</entry>
|
||||
<entry name="avpf" overwrite="true">1</entry>
|
||||
<entry name="quality_reporting_collector" overwrite="true">sip:voip-metrics@sip.linphone.org</entry>
|
||||
<entry name="quality_reporting_enabled" overwrite="true">1</entry>
|
||||
<entry name="quality_reporting_interval" overwrite="true">180</entry>
|
||||
</section>
|
||||
|
||||
<section name="wizard">
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@
|
|||
<entry name="publish" overwrite="true">0</entry>
|
||||
<entry name="dial_escape_plus" overwrite="true">0</entry>
|
||||
<entry name="avpf" overwrite="true">1</entry>
|
||||
<entry name="quality_reporting_collector" overwrite="true">sip:voip-metrics@sip.linphone.org</entry>
|
||||
<entry name="quality_reporting_enabled" overwrite="true">1</entry>
|
||||
<entry name="quality_reporting_interval" overwrite="true">180</entry>
|
||||
</section>
|
||||
|
||||
<section name="wizard">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue