fix compilation without tunnel

This commit is contained in:
Simon Morlat 2014-11-15 11:38:06 +01:00
parent d0095948b9
commit 1716178e38
2 changed files with 8 additions and 0 deletions

View file

@ -558,6 +558,7 @@ static int sal_add_listen_port(Sal *ctx, SalAddress* addr, bool_t is_tunneled){
int result;
belle_sip_listening_point_t* lp;
if (is_tunneled){
#ifdef TUNNEL_ENABLED
if (sal_address_get_transport(addr)!=SalTransportUDP){
ms_error("Tunneled mode is only available for UDP kind of transports.");
return -1;
@ -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.");
return -1;
}
#else
ms_error("No tunnel support in library.");
return -1;
#endif
}else{
lp = belle_sip_stack_create_listening_point(ctx->stack,
sal_address_get_domain(addr),

View file

@ -63,6 +63,9 @@ bool_t linphone_tunnel_connected(const LinphoneTunnel *tunnel){
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){
}