Commit 40c9a6c6 authored by Simon Morlat's avatar Simon Morlat
Browse files

add option to disable TLS

change dialog test to use TCP if TLS is not available.
Indeed, because of server forwarding statelessly from UDP to TCP, there are unusal BYE retransmissions that generate dialog-unhandled BYE request.
parent fb491658
......@@ -101,8 +101,18 @@ fi
AC_SUBST(ANTLR_CFLAGS)
AC_SUBST(ANTLR_LIBS)
PKG_CHECK_MODULES(GNUTLS, gnutls, [found_gnutls=yes],foo=bar)
#PKG_CHECK_MODULES(OPENSSL, openssl, [found_openssl=yes],foo=bar)
AC_ARG_ENABLE( tls,
[ --enable-tls Enable TLS support (default=yes)],
[case "${enableval}" in
yes) use_tls=true ;;
no) use_tls=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-tls) ;;
esac],[use_tls=true])
if test "$use_tls" = "true" ; then
PKG_CHECK_MODULES(GNUTLS, gnutls, [found_gnutls=yes],
[AC_MSG_ERROR([Gnutls not found. You can use --disable-tls to turn tls support off.])] )
fi
AM_CONDITIONAL([BUILD_TLS], [test "x$found_gnutls" = "xyes" || test "x$found_openssl" = "xyes"])
TLS_CFLAGS=""
......
......@@ -289,7 +289,7 @@ static void do_simple_call(void) {
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);
marie_register_req=register_user(stack, prov, "TCP" ,1 ,CALLEE,NULL);
}
from=belle_sip_header_address_create(NULL,belle_sip_uri_create(CALLER,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