Commit c4bf7958 authored by jehan's avatar jehan

make sure only one transport is configured

parent 5273d7c7
......@@ -532,10 +532,13 @@ static void sip_config_read(LinphoneCore *lc)
if (tr.udp_port>0 && random_port){
tr.udp_port=random_port;
tr.tls_port=tr.tcp_port=0; /*make sure only one transport is active at a time*/
}else if (tr.tcp_port>0 && random_port){
tr.tcp_port=random_port;
tr.tls_port=tr.udp_port=0; /*make sure only one transport is active at a time*/
}else if (tr.tls_port>0 && random_port){
tr.tls_port=random_port;
tr.udp_port=tr.tcp_port=0; /*make sure only one transport is active at a time*/
}
#ifdef __linux
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment