stop warning about missing tls

This commit is contained in:
Simon Morlat 2014-04-16 15:35:10 +02:00
parent f8cd001a22
commit 92762859a4
2 changed files with 7 additions and 3 deletions

View file

@ -1955,9 +1955,11 @@ static int apply_transports(LinphoneCore *lc){
transport_error(lc,"tcp",tr->tcp_port);
}
}
if (tr->tls_port!=0){
if (sal_listen_port (sal,anyaddr,tr->tls_port,SalTransportTLS,TRUE)!=0){
transport_error(lc,"tls",tr->tls_port);
if (linphone_core_sip_transport_supported(LinphoneTransportTls)){
if (tr->tls_port!=0){
if (sal_listen_port (sal,anyaddr,tr->tls_port,SalTransportTLS,TRUE)!=0){
transport_error(lc,"tls",tr->tls_port);
}
}
}
apply_user_agent(lc);

View file

@ -542,6 +542,8 @@ static void _call_with_ice(bool_t random_ports) {
CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallStreamsRunning,2));
CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&marie->stat.number_of_LinphoneCallStreamsRunning,2));
CU_ASSERT_TRUE(check_ice(pauline,marie,LinphoneIceStateHostConnection));
liblinphone_tester_check_rtcp(marie,pauline);
/*then close the call*/
linphone_core_terminate_all_calls(pauline->lc);