1
0
Fork 0
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:
Evangelos Ribeiro Tzaras 2021-04-01 18:24:09 +02:00
parent 5a7c22c80f
commit 71cbc5c636

View file

@ -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]);