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
ae232b82
Commit
ae232b82
authored
Feb 19, 2014
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit the time window for processing a DNS lookup to the current session
parent
51b45c0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
sessions.py
blink/sessions.py
+7
-5
No files found.
blink/sessions.py
View file @
ae232b82
...
...
@@ -303,6 +303,7 @@ class BlinkSession(QObject):
self
.
direction
=
None
self
.
__dict__
[
'active'
]
=
False
self
.
lookup
=
None
self
.
conference
=
None
self
.
sip_session
=
None
self
.
stream_descriptions
=
None
...
...
@@ -505,9 +506,9 @@ class BlinkSession(QObject):
uri
=
self
.
uri
else
:
uri
=
self
.
uri
lookup
=
DNSLookup
()
notification_center
.
add_observer
(
self
,
sender
=
lookup
)
lookup
.
lookup_sip_proxy
(
uri
,
settings
.
sip
.
transport_list
)
self
.
lookup
=
DNSLookup
()
notification_center
.
add_observer
(
self
,
sender
=
self
.
lookup
)
self
.
lookup
.
lookup_sip_proxy
(
uri
,
settings
.
sip
.
transport_list
)
def
add_stream
(
self
,
stream_description
):
assert
self
.
state
==
'connected'
...
...
@@ -625,6 +626,7 @@ class BlinkSession(QObject):
self
.
timer
.
stop
()
self
.
streams
.
clear
()
self
.
lookup
=
None
self
.
sip_session
=
None
self
.
stream_descriptions
=
None
self
.
_sibling
=
None
...
...
@@ -684,7 +686,7 @@ class BlinkSession(QObject):
def
_NH_DNSLookupDidSucceed
(
self
,
notification
):
notification
.
center
.
remove_observer
(
self
,
sender
=
notification
.
sender
)
if
self
.
state
not
in
(
'ending'
,
'ended'
,
'deleted'
)
:
if
notification
.
sender
is
self
.
lookup
:
routes
=
notification
.
data
.
result
if
routes
:
self
.
sip_session
=
Session
(
self
.
account
)
...
...
@@ -694,7 +696,7 @@ class BlinkSession(QObject):
def
_NH_DNSLookupDidFail
(
self
,
notification
):
notification
.
center
.
remove_observer
(
self
,
sender
=
notification
.
sender
)
if
self
.
state
not
in
(
'ending'
,
'ended'
,
'deleted'
)
:
if
notification
.
sender
is
self
.
lookup
:
self
.
_terminate
(
reason
=
'Destination not found'
,
error
=
True
)
def
_NH_SIPSessionNewOutgoing
(
self
,
notification
):
...
...
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