mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
tunnel: add/improve some debug traces
This commit is contained in:
parent
9d3ddab2f1
commit
88e593e944
2 changed files with 4 additions and 3 deletions
|
|
@ -343,7 +343,7 @@ LinphoneTunnelMode TunnelManager::getMode() const {
|
|||
void TunnelManager::processUdpMirrorEvent(const Event &ev){
|
||||
if(mState != autodetecting) return;
|
||||
if (ev.mData.mHaveUdp) {
|
||||
ms_message("TunnelManager: UDP mirror test succeed");
|
||||
ms_message("TunnelManager: UDP mirror test succeed on %s:%d", mCurrentUdpMirrorClient->getServerAddress().mAddr.c_str(), mCurrentUdpMirrorClient->getServerAddress().mPort);
|
||||
if(mTunnelClient) {
|
||||
if(mTunnelizeSipPackets) doUnregistration();
|
||||
sal_set_tunnel(mCore->sal,NULL);
|
||||
|
|
@ -353,10 +353,10 @@ void TunnelManager::processUdpMirrorEvent(const Event &ev){
|
|||
}
|
||||
mState = disabled;
|
||||
} else {
|
||||
ms_message("TunnelManager: UDP mirror test failed");
|
||||
ms_message("TunnelManager: UDP mirror test failed on %s:%d", mCurrentUdpMirrorClient->getServerAddress().mAddr.c_str(), mCurrentUdpMirrorClient->getServerAddress().mPort);
|
||||
mCurrentUdpMirrorClient++;
|
||||
if (mCurrentUdpMirrorClient !=mUdpMirrorClients.end()) {
|
||||
ms_message("TunnelManager: trying another UDP mirror");
|
||||
ms_message("TunnelManager: trying another UDP mirror on %s:%d", mCurrentUdpMirrorClient->getServerAddress().mAddr.c_str(), mCurrentUdpMirrorClient->getServerAddress().mPort);
|
||||
if (mLongRunningTaskId == 0)
|
||||
mLongRunningTaskId = sal_begin_background_task("Tunnel auto detect", NULL, NULL);
|
||||
UdpMirrorClient &lUdpMirrorClient=*mCurrentUdpMirrorClient;
|
||||
|
|
|
|||
|
|
@ -361,6 +361,7 @@ void linphone_tunnel_configure(LinphoneTunnel *tunnel){
|
|||
|
||||
/* Deprecated functions */
|
||||
void linphone_tunnel_enable(LinphoneTunnel *tunnel, bool_t enabled) {
|
||||
ms_warning("linphone_tunnel_enable is deprecated - please use linphone_tunnel_set_mode instead.");
|
||||
if(enabled) linphone_tunnel_set_mode(tunnel, LinphoneTunnelModeEnable);
|
||||
else linphone_tunnel_set_mode(tunnel, LinphoneTunnelModeDisable);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue