Commit 8a9c6754 authored by Dan Pascu's avatar Dan Pascu

Honor the account.sip.always_use_my_proxy setting

parent ce6d8e4c
......@@ -291,9 +291,14 @@ class SessionItem(QObject):
self.offer_in_progress = True
account = self.session.account
settings = SIPSimpleSettings()
if isinstance(account, Account) and account.sip.outbound_proxy is not None:
proxy = account.sip.outbound_proxy
uri = SIPURI(host=proxy.host, port=proxy.port, parameters={'transport': proxy.transport})
if isinstance(account, Account):
if account.sip.outbound_proxy is not None:
proxy = account.sip.outbound_proxy
uri = SIPURI(host=proxy.host, port=proxy.port, parameters={'transport': proxy.transport})
elif account.sip.always_use_my_proxy:
uri = SIPURI(host=account.id.domain)
else:
uri = self.uri
else:
uri = self.uri
self.status = Status('Looking up destination')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment