mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 20:48:07 +00:00
Fix registration when disabling tunnel.
This commit is contained in:
parent
90d30b20c7
commit
6d682291e9
1 changed files with 7 additions and 0 deletions
|
|
@ -342,6 +342,13 @@ void TunnelManager::enable(bool isEnable) {
|
|||
|
||||
#ifdef USE_BELLESIP
|
||||
sal_disable_tunnel(mCore->sal);
|
||||
// Set empty transports to force the setting of regular transport, otherwise it is not applied
|
||||
LCSipTransports lTransport;
|
||||
lTransport.udp_port = 0;
|
||||
lTransport.tcp_port = 0;
|
||||
lTransport.tls_port = 0;
|
||||
lTransport.dtls_port = 0;
|
||||
linphone_core_set_sip_transports(mCore, &lTransport);
|
||||
#else
|
||||
eXosip_transport_hook_register(NULL);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue