sip: origin: Allow using a local port of 0

Using a port of 0 let's the operating system decide to which port to bind to.
Additionally refuse to use priviliged ports and print a warning.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-04-11 00:22:57 +02:00
parent f7626e532f
commit 166ea8b21a
2 changed files with 7 additions and 7 deletions

View File

@@ -149,12 +149,6 @@ calls_sip_provider_load_accounts (CallsSipProvider *self)
else
port = 5060;
}
if (local_port == 0) {
if (g_strcmp0 (protocol, "TLS") == 0)
local_port = 5061;
else
local_port = 5060;
}
g_debug ("Adding origin for SIP account %s", groups[i]);