Commit d8db41b7 authored by jehan's avatar jehan

make sure prov channels are cleared before testing http proxy

parent 20c8323c
......@@ -421,6 +421,7 @@ static void stateful_register_tls_with_http_proxy(void) {
belle_sip_error("No TLS support, test skipped.");
return;
}
belle_sip_provider_clean_channels(prov);
belle_sip_tls_listening_point_set_http_proxy_host(lp, test_http_proxy_addr);
belle_sip_tls_listening_point_set_http_proxy_port(lp, test_http_proxy_port);
register_test("tls",1);
......@@ -436,6 +437,7 @@ static void stateful_register_tls_with_wrong_http_proxy(void){
belle_sip_error("No TLS support, test skipped.");
return;
}
belle_sip_provider_clean_channels(prov);
belle_sip_tls_listening_point_set_http_proxy_host(lp, "mauvaisproxy.linphone.org");
belle_sip_tls_listening_point_set_http_proxy_port(lp, test_http_proxy_port);
try_register_user_at_domain(stack,prov,"tls",1,"tester",test_domain,NULL,0);
......@@ -615,6 +617,7 @@ static void register_dns_srv_tls_with_http_proxy(void){
return;
}
io_error_count=0;
belle_sip_provider_clean_channels(prov);
belle_sip_tls_listening_point_set_http_proxy_host(lp, test_http_proxy_addr);
belle_sip_tls_listening_point_set_http_proxy_port(lp, test_http_proxy_port);
req=try_register_user_at_domain(stack, prov, "TLS",1,"tester",client_auth_domain,"sip:linphone.net;transport=tls",1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment