Use random port instead of fixed 15060 for tunnel transport.

This commit is contained in:
Ghislain MARY 2013-01-21 12:01:41 +01:00
parent 622af47cb2
commit a6c1410623

View file

@ -257,7 +257,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;