Commit 9b2f4358 authored by Adrian Georgescu's avatar Adrian Georgescu

Fixed auto_answer when using Bonjour

parent a291e5e4
......@@ -5243,7 +5243,13 @@ class IncomingRequest(QObject):
self.dialog.username_label.setText(contact.name or session.remote_identity.display_name or address)
settings = SIPSimpleSettings()
if settings.audio.auto_answer and contact and contact.settings.auto_answer and settings.audio.auto_answer_interval:
try:
if settings.audio.auto_answer and contact.settings.auto_answer and settings.audio.auto_answer_interval:
auto_answer_interval = settings.audio.auto_answer_interval
except AttributeError:
pass
else:
if auto_answer_interval > 0:
self.dialog.setAutoAnswer(settings.audio.auto_answer_interval)
self._auto_answer_timer = QTimer()
self._auto_answer_timer.setInterval(settings.audio.auto_answer_interval * 1000)
......
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