public void setTunnelPort(int port) {
   TunnelConfig config = getTunnelConfig();
   if (config != null) {
     config.setPort(port);
     LinphoneManager.getInstance().initTunnelFromConf();
   }
 }
 public void setTunnelHost(String host) {
   TunnelConfig config = getTunnelConfig();
   if (config != null) {
     config.setHost(host);
     LinphoneManager.getInstance().initTunnelFromConf();
   }
 }
 public int getTunnelPort() {
   TunnelConfig config = getTunnelConfig();
   if (config != null) {
     return config.getPort();
   } else {
     return -1;
   }
 }
 public String getTunnelHost() {
   TunnelConfig config = getTunnelConfig();
   if (config != null) {
     return config.getHost();
   } else {
     return null;
   }
 }
 public TunnelConfig getTunnelConfig() {
   if (getLc().isTunnelAvailable()) {
     if (tunnelConfig == null) {
       TunnelConfig servers[] = getLc().tunnelGetServers();
       if (servers.length > 0) {
         tunnelConfig = servers[0];
       } else {
         tunnelConfig = new TunnelConfig();
         tunnelConfig.setDelay(500);
       }
     }
     return tunnelConfig;
   } else {
     return null;
   }
 }