mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 06:38:08 +00:00
improve test reliability for rctp
This commit is contained in:
parent
67a542a46a
commit
e03a53dea2
9 changed files with 15 additions and 7 deletions
|
|
@ -2282,7 +2282,8 @@ static void report_bandwidth(LinphoneCall *call, MediaStream *as, MediaStream *v
|
|||
call->stats[LINPHONE_CALL_STATS_AUDIO].upload_bandwidth=(as!=NULL) ? (media_stream_get_up_bw(as)*1e-3) : 0;
|
||||
call->stats[LINPHONE_CALL_STATS_VIDEO].download_bandwidth=(vs!=NULL) ? (media_stream_get_down_bw(vs)*1e-3) : 0;
|
||||
call->stats[LINPHONE_CALL_STATS_VIDEO].upload_bandwidth=(vs!=NULL) ? (media_stream_get_up_bw(vs)*1e-3) : 0;
|
||||
ms_message("bandwidth usage: audio=[d=%.1f,u=%.1f] video=[d=%.1f,u=%.1f] kbit/sec",
|
||||
ms_message("bandwidth usage for call [%p]: audio=[d=%.1f,u=%.1f] video=[d=%.1f,u=%.1f] kbit/sec",
|
||||
call,
|
||||
call->stats[LINPHONE_CALL_STATS_AUDIO].download_bandwidth,
|
||||
call->stats[LINPHONE_CALL_STATS_AUDIO].upload_bandwidth ,
|
||||
call->stats[LINPHONE_CALL_STATS_VIDEO].download_bandwidth,
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 9e7ea53dca1ae7447d320b37b14dd4d58e0f67fe
|
||||
Subproject commit d90b00711f794814fe670c846ca162704df883c7
|
||||
2
oRTP
2
oRTP
|
|
@ -1 +1 @@
|
|||
Subproject commit bb43f9fcd2325bdf44e9a244cc4502b7d5de71d9
|
||||
Subproject commit fcc51caa15def815189a388e878877a5354850e6
|
||||
|
|
@ -103,7 +103,7 @@ static void check_rtcp(LinphoneCoreManager* caller, LinphoneCoreManager* callee)
|
|||
c1=linphone_core_get_current_call(caller->lc);
|
||||
c2=linphone_core_get_current_call(callee->lc);
|
||||
|
||||
for (i=0; i<12 /*=6s*/; i++) {
|
||||
for (i=0; i<24 /*=12s need at least one exchange of SR to maybe 10s*/; i++) {
|
||||
if (linphone_call_get_audio_stats(c1)->round_trip_delay >0.0
|
||||
&& linphone_call_get_audio_stats(c2)->round_trip_delay >0.0
|
||||
&& (!linphone_call_log_video_enabled(linphone_call_get_call_log(c1)) || linphone_call_get_video_stats(c1)->round_trip_delay>0.0)
|
||||
|
|
@ -133,7 +133,11 @@ bool_t call_with_params(LinphoneCoreManager* caller_mgr
|
|||
stats initial_caller=caller_mgr->stat;
|
||||
stats initial_callee=callee_mgr->stat;
|
||||
bool_t result=FALSE;
|
||||
|
||||
char hellopath[256];
|
||||
/*use playfile for callee to avoid locking on capture card*/
|
||||
linphone_core_use_files (callee_mgr->lc,TRUE);
|
||||
snprintf(hellopath,sizeof(hellopath), "%s/sounds/hello8000.wav", liblinphone_tester_file_prefix);
|
||||
linphone_core_set_play_file(callee_mgr->lc,hellopath);
|
||||
if (!caller_params){
|
||||
CU_ASSERT_PTR_NOT_NULL(linphone_core_invite_address(caller_mgr->lc,callee_mgr->identity));
|
||||
}else{
|
||||
|
|
|
|||
BIN
tester/images/nowebcamCIF.jpg
Normal file
BIN
tester/images/nowebcamCIF.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
|
|
@ -96,6 +96,7 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char*
|
|||
char ringbackpath[256]={0};
|
||||
char rootcapath[256]={0};
|
||||
char dnsuserhostspath[256]={0};
|
||||
char nowebcampath[256]={0};
|
||||
|
||||
if (path==NULL) path=".";
|
||||
|
||||
|
|
@ -113,11 +114,13 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char*
|
|||
sprintf(dnsuserhostspath, "%s/%s", path, userhostsfile);
|
||||
sal_set_dns_user_hosts_file(lc->sal, dnsuserhostspath);
|
||||
|
||||
sprintf(ringpath, "%s/%s", path, "oldphone.wav");
|
||||
sprintf(ringbackpath, "%s/%s", path, "ringback.wav");
|
||||
snprintf(ringpath,sizeof(ringpath), "%s/sounds/oldphone.wav",path);
|
||||
snprintf(ringbackpath,sizeof(ringbackpath), "%s/sounds/ringback.wav", path);
|
||||
linphone_core_set_ring(lc, ringpath);
|
||||
linphone_core_set_ringback(lc, ringbackpath);
|
||||
|
||||
snprintf(nowebcampath, sizeof(nowebcampath), "%s/images/nowebcamCIF.jpg", path);
|
||||
linphone_core_set_static_picture(lc,nowebcampath);
|
||||
return lc;
|
||||
}
|
||||
|
||||
|
|
|
|||
BIN
tester/sounds/hello8000.wav
Normal file
BIN
tester/sounds/hello8000.wav
Normal file
Binary file not shown.
BIN
tester/sounds/oldphone.wav
Normal file
BIN
tester/sounds/oldphone.wav
Normal file
Binary file not shown.
BIN
tester/sounds/ringback.wav
Normal file
BIN
tester/sounds/ringback.wav
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue