mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-06 03:25:31 +00:00
sip: provider: Fall back to reasonable values for local-port property
This commit is contained in:
parent
5a7c22c80f
commit
71cbc5c636
1 changed files with 6 additions and 0 deletions
|
@ -159,6 +159,12 @@ 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]);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue