Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
9b2f4358
Commit
9b2f4358
authored
Jun 23, 2021
by
Adrian Georgescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed auto_answer when using Bonjour
parent
a291e5e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
sessions.py
blink/sessions.py
+13
-7
No files found.
blink/sessions.py
View file @
9b2f4358
...
...
@@ -5243,13 +5243,19 @@ 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
:
self
.
dialog
.
setAutoAnswer
(
settings
.
audio
.
auto_answer_interval
)
self
.
_auto_answer_timer
=
QTimer
()
self
.
_auto_answer_timer
.
setInterval
(
settings
.
audio
.
auto_answer_interval
*
1000
)
self
.
_auto_answer_timer
.
setSingleShot
(
True
)
self
.
_auto_answer_timer
.
timeout
.
connect
(
self
.
_auto_answer
)
self
.
_auto_answer_timer
.
start
()
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
)
self
.
_auto_answer_timer
.
setSingleShot
(
True
)
self
.
_auto_answer_timer
.
timeout
.
connect
(
self
.
_auto_answer
)
self
.
_auto_answer_timer
.
start
()
self
.
dialog
.
user_icon
.
setPixmap
(
contact
.
icon
.
pixmap
(
48
))
self
.
dialog
.
audio_stream
.
setVisible
(
self
.
audio_stream
is
not
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment