Commit 8a5777b5 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Use UDP for dialog test if TLS is not available.

parent 323dc894
......@@ -286,7 +286,11 @@ static void do_simple_call(void) {
callee_listener_callbacks.listener_destroyed=listener_destroyed;
pauline_register_req=register_user(stack, prov, "TCP" ,1 ,CALLER,NULL);
marie_register_req=register_user(stack, prov, "TLS" ,1 ,CALLEE,NULL);
if (belle_sip_provider_get_listening_point(prov, "tls")) {
marie_register_req=register_user(stack, prov, "TLS" ,1 ,CALLEE,NULL);
} else {
marie_register_req=register_user(stack, prov, "UDP" ,1 ,CALLEE,NULL);
}
from=belle_sip_header_address_create(NULL,belle_sip_uri_create(CALLER,test_domain));
to=belle_sip_header_address_create(NULL,belle_sip_uri_create(CALLEE,test_domain));
......
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