Commit 1716178e authored by Simon Morlat's avatar Simon Morlat

fix compilation without tunnel

parent d0095948
...@@ -558,6 +558,7 @@ static int sal_add_listen_port(Sal *ctx, SalAddress* addr, bool_t is_tunneled){ ...@@ -558,6 +558,7 @@ static int sal_add_listen_port(Sal *ctx, SalAddress* addr, bool_t is_tunneled){
int result; int result;
belle_sip_listening_point_t* lp; belle_sip_listening_point_t* lp;
if (is_tunneled){ if (is_tunneled){
#ifdef TUNNEL_ENABLED
if (sal_address_get_transport(addr)!=SalTransportUDP){ if (sal_address_get_transport(addr)!=SalTransportUDP){
ms_error("Tunneled mode is only available for UDP kind of transports."); ms_error("Tunneled mode is only available for UDP kind of transports.");
return -1; return -1;
...@@ -567,6 +568,10 @@ static int sal_add_listen_port(Sal *ctx, SalAddress* addr, bool_t is_tunneled){ ...@@ -567,6 +568,10 @@ static int sal_add_listen_port(Sal *ctx, SalAddress* addr, bool_t is_tunneled){
ms_error("Could not create tunnel listening point."); ms_error("Could not create tunnel listening point.");
return -1; return -1;
} }
#else
ms_error("No tunnel support in library.");
return -1;
#endif
}else{ }else{
lp = belle_sip_stack_create_listening_point(ctx->stack, lp = belle_sip_stack_create_listening_point(ctx->stack,
sal_address_get_domain(addr), sal_address_get_domain(addr),
......
...@@ -63,6 +63,9 @@ bool_t linphone_tunnel_connected(const LinphoneTunnel *tunnel){ ...@@ -63,6 +63,9 @@ bool_t linphone_tunnel_connected(const LinphoneTunnel *tunnel){
return FALSE; return FALSE;
} }
bool_t linphone_tunnel_get_activated(const LinphoneTunnel *tunnel){
return FALSE;
}
void linphone_tunnel_enable_logs_with_handler(LinphoneTunnel *tunnel, bool_t enabled, OrtpLogFunc logHandler){ void linphone_tunnel_enable_logs_with_handler(LinphoneTunnel *tunnel, bool_t enabled, OrtpLogFunc logHandler){
} }
......
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