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:
@@ -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]);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user