]> sjero.net Git - linphone/blobdiff - coreapi/TunnelManager.cc
Aac-eld add missing header according to RFC3640 3.3.6
[linphone] / coreapi / TunnelManager.cc
index 5b1b6dddb23e60c6ac4afe23e0ee52906cd02f9e..d1020b1b2782f6d431fefa607771a1ea4bd05173 100644 (file)
@@ -102,6 +102,10 @@ int TunnelManager::eXosipSelect(int max_fds, fd_set *s1, fd_set *s2, fd_set *s3,
 
 
 void TunnelManager::addServer(const char *ip, int port,unsigned int udpMirrorPort,unsigned int delay) {
+       if (ip == NULL) {
+               ip = "";
+               ms_warning("Adding tunnel server with empty ip, it will not work!");
+       }
        addServer(ip,port);
        mUdpMirrorClients.push_back(UdpMirrorClient(ServerAddr(ip,udpMirrorPort),delay));
 }
@@ -257,7 +261,7 @@ void TunnelManager::processTunnelEvent(const Event &ev){
                //force transport to udp
                LCSipTransports lTransport;
                
-               lTransport.udp_port=15060;
+               lTransport.udp_port=(0xDFFF&random())+1024;
                lTransport.tcp_port=0;
                lTransport.tls_port=0;
                lTransport.dtls_port=0;