Fix calls initiated with SIP registrarless account.

cusax-fix
Sebastien Vincent 16 years ago
parent 3e4f3066c5
commit 9b89700cd3

@ -1838,12 +1838,20 @@ private void initOutboundProxy(SipAccountID accountID)
//First init the proxy address
String proxyAddressStr =
accountID
.getAccountPropertyString(ProtocolProviderFactory.PROXY_ADDRESS);
.getAccountPropertyString(ProtocolProviderFactory.
PROXY_ADDRESS);
if(proxyAddressStr == null || proxyAddressStr.trim().length() == 0)
{
proxyAddressStr = accountID
.getAccountPropertyString(ProtocolProviderFactory.SERVER_ADDRESS);
.getAccountPropertyString(ProtocolProviderFactory.
SERVER_ADDRESS);
if(proxyAddressStr == null || proxyAddressStr.trim().length() == 0)
{
/* registrarless account */
return;
}
}
InetAddress proxyAddress = null;

Loading…
Cancel
Save