mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix compilation without tunnel
This commit is contained in:
parent
d0095948b9
commit
1716178e38
2 changed files with 8 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue