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
4d445f90
Commit
4d445f90
authored
Mar 10, 2014
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close dialog if session is ended while in a proposal
parent
9a6b3c7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
sessions.py
blink/sessions.py
+12
-0
No files found.
blink/sessions.py
View file @
4d445f90
...
...
@@ -3902,6 +3902,7 @@ class SessionManager(object):
notification_center
=
NotificationCenter
()
notification_center
.
add_observer
(
self
,
name
=
'SIPSessionNewIncoming'
)
notification_center
.
add_observer
(
self
,
name
=
'SIPSessionDidEnd'
)
notification_center
.
add_observer
(
self
,
name
=
'SIPSessionDidFail'
)
notification_center
.
add_observer
(
self
,
name
=
'SIPSessionProposalRejected'
)
notification_center
.
add_observer
(
self
,
name
=
'SIPSessionHadProposalFailure'
)
...
...
@@ -4142,6 +4143,17 @@ class SessionManager(object):
self
.
incoming_requests
.
remove
(
incoming_request
)
self
.
update_ringtone
()
def
_NH_SIPSessionDidEnd
(
self
,
notification
):
try
:
incoming_request
=
next
(
incoming_request
for
incoming_request
in
self
.
incoming_requests
if
incoming_request
.
session
is
notification
.
sender
)
except
StopIteration
:
return
if
incoming_request
.
dialog
.
position
is
not
None
:
bisect
.
insort_left
(
self
.
dialog_positions
,
incoming_request
.
dialog
.
position
)
incoming_request
.
dialog
.
hide
()
self
.
incoming_requests
.
remove
(
incoming_request
)
# Ringtone is updated in BlinkSessionDidEnd
def
_NH_SIPSessionProposalRejected
(
self
,
notification
):
try
:
incoming_request
=
next
(
incoming_request
for
incoming_request
in
self
.
incoming_requests
if
incoming_request
.
session
is
notification
.
sender
)
...
...
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