sip: provider: Fall back to reasonable values for local-port property
This commit is contained in:
@@ -159,6 +159,12 @@ calls_sip_provider_load_accounts (CallsSipProvider *self)
|
|||||||
else
|
else
|
||||||
port = 5060;
|
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]);
|
g_debug ("Adding origin for SIP account %s", groups[i]);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user