/* Wrapper generated by lp-gen-wrappers, do not edit*/
/**
* Linphone tunnel object.
* @external LinphoneTunnel
**/
/**
* Set the tunnel mode. The tunnel mode can be 'enable', 'disable' or 'auto' If the mode is set to 'auto',
* the tunnel manager will try to established an RTP session with the tunnel server on the UdpMirrorPort.
* If the connection fail, the tunnel is automatically activated whereas the tunnel is automatically disabled
* if the connection succeed.
* @member {linphone.TunnelMode} external:LinphoneTunnel#mode
**/
/**
* Get added servers
* @member {Array.<Object>} external:LinphoneTunnel#servers
* @readonly
**/
/**
* Set whether SIP packets must be directly sent to a UA or pass through the tunnel
* @member {boolean} external:LinphoneTunnel#sipEnabled
**/
/**
* Add a tunnel server configuration.
* @function external:LinphoneTunnel#addServer
* @param {external:LinphoneTunnelConfig} tunnel_config - LinphoneTunnelConfig object
* @returns {void}
**/
/**
* Remove all tunnel server addresses previously entered with
* @function external:LinphoneTunnel#cleanServers
* @returns {void}
**/
/**
* Check whether the tunnel is connected
* @function external:LinphoneTunnel#connected
* @returns {boolean}
**/
/**
* Retrieve optional http proxy configuration previously set with
* @function external:LinphoneTunnel#getHttpProxy
* @param {string} host - http proxy host
* @param {number} port - http proxy port
* @param {string} username - Optional http proxy username if the proxy request authentication. Currently only basic authentication is supported. Use NULL if not needed.
* @param {string} passwd - Optional http proxy password. Use NULL if not needed.
* @returns {void}
**/
/**
* Force reconnection to the tunnel server. This method is useful when the device switches from wifi to Edge/3G
* or vice versa. In most cases the tunnel client socket won't be notified promptly that its connection
* is now zombie, so it is recommended to call this method that will cause the lost connection to be closed
* and new connection to be issued.
* @function external:LinphoneTunnel#reconnect
* @returns {void}
**/
/**
* Remove a tunnel server configuration.
* @function external:LinphoneTunnel#removeServer
* @param {external:LinphoneTunnelConfig} tunnel_config - LinphoneTunnelConfig object
* @returns {void}
**/
/**
* Set an optional http proxy to go through when connecting to tunnel server.
* @function external:LinphoneTunnel#setHttpProxy
* @param {string} host - http proxy host
* @param {number} port - http proxy port
* @param {string} username - Optional http proxy username if the proxy request authentication. Currently only basic authentication is supported. Use NULL if not needed.
* @param {string} passwd - Optional http proxy password. Use NULL if not needed.
* @returns {void}
**/
/**
* Set authentication info for the http proxy
* @function external:LinphoneTunnel#setHttpProxyAuthInfo
* @param {string} username - User name
* @param {string} passwd - Password
* @returns {void}
**/