mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
add debug logs for troubeshooting android failed tests
This commit is contained in:
parent
0353ade4a6
commit
1052ffc610
2 changed files with 9 additions and 4 deletions
|
|
@ -1672,6 +1672,7 @@ static unsigned int linphone_call_get_n_active_streams(const LinphoneCall *call)
|
|||
**/
|
||||
const LinphoneCallParams * linphone_call_get_current_params(LinphoneCall *call){
|
||||
SalMediaDescription *md=call->resultdesc;
|
||||
int all_streams_encrypted = 0;
|
||||
#ifdef VIDEO_ENABLED
|
||||
VideoStream *vstream;
|
||||
#endif
|
||||
|
|
@ -1698,17 +1699,21 @@ const LinphoneCallParams * linphone_call_get_current_params(LinphoneCall *call){
|
|||
|
||||
switch (call->params->media_encryption) {
|
||||
case LinphoneMediaEncryptionZRTP:
|
||||
if (linphone_call_all_streams_encrypted(call) && linphone_call_get_authentication_token(call)) {
|
||||
if ((all_streams_encrypted = linphone_call_all_streams_encrypted(call)) && linphone_call_get_authentication_token(call)) {
|
||||
call->current_params->media_encryption=LinphoneMediaEncryptionZRTP;
|
||||
} else {
|
||||
ms_message("Encryption was resquested to be %s, but isn't effective (all_streams_encrypted=%i, auth_token=%s)",
|
||||
linphone_media_encryption_to_string(call->params->media_encryption), all_streams_encrypted, call->auth_token);
|
||||
call->current_params->media_encryption=LinphoneMediaEncryptionNone;
|
||||
}
|
||||
break;
|
||||
case LinphoneMediaEncryptionDTLS:
|
||||
case LinphoneMediaEncryptionSRTP:
|
||||
if (linphone_call_get_n_active_streams(call)==0 || linphone_call_all_streams_encrypted(call)) {
|
||||
if (linphone_call_get_n_active_streams(call)==0 || (all_streams_encrypted = linphone_call_all_streams_encrypted(call))) {
|
||||
call->current_params->media_encryption = call->params->media_encryption;
|
||||
} else {
|
||||
ms_message("Encryption was resquested to be %s, but isn't effective (all_streams_encrypted=%i)",
|
||||
linphone_media_encryption_to_string(call->params->media_encryption), all_streams_encrypted);
|
||||
call->current_params->media_encryption=LinphoneMediaEncryptionNone;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ bool_t call_with_params2(LinphoneCoreManager* caller_mgr
|
|||
wait_for(callee_mgr->lc,caller_mgr->lc,&callee_mgr->stat.number_of_LinphoneCallEncryptedOn,initial_callee.number_of_LinphoneCallEncryptedOn+1);
|
||||
{
|
||||
const LinphoneCallParams* call_param = linphone_call_get_current_params(callee_call);
|
||||
BC_ASSERT_EQUAL(linphone_call_params_get_media_encryption(call_param),linphone_core_get_media_encryption(caller_mgr->lc), int, "%d");
|
||||
BC_ASSERT_EQUAL(linphone_call_params_get_media_encryption(call_param),linphone_core_get_media_encryption(callee_mgr->lc), int, "%d");
|
||||
call_param = linphone_call_get_current_params(linphone_core_get_current_call(caller_mgr->lc));
|
||||
BC_ASSERT_EQUAL(linphone_call_params_get_media_encryption(call_param),linphone_core_get_media_encryption(caller_mgr->lc), int, "%d");
|
||||
|
||||
|
|
@ -3460,6 +3460,7 @@ void two_accepted_call_in_send_only(void) {
|
|||
MSList *lcs=NULL;
|
||||
|
||||
marie = linphone_core_manager_new("marie_rc");
|
||||
linphone_core_use_files(marie->lc, TRUE);
|
||||
pauline = linphone_core_manager_new(transport_supported(LinphoneTransportTls) ? "pauline_rc" : "pauline_tcp_rc");
|
||||
laure = linphone_core_manager_new("laure_rc");
|
||||
|
||||
|
|
@ -3469,7 +3470,6 @@ void two_accepted_call_in_send_only(void) {
|
|||
|
||||
accept_call_in_send_only_base(pauline,marie,lcs);
|
||||
|
||||
|
||||
reset_counters(&marie->stat);
|
||||
accept_call_in_send_only_base(laure,marie,lcs);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue