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
7858626b
Commit
7858626b
authored
Nov 05, 2015
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapted to the latest changes in python-sipsimple
parent
020dc188
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
sessions.py
blink/sessions.py
+4
-6
No files found.
blink/sessions.py
View file @
7858626b
...
...
@@ -39,7 +39,8 @@ from sipsimple.core import SIPCoreError, SIPURI, ToHeader
from sipsimple.lookup import DNSLookup
from sipsimple.session import Session
from sipsimple.streams import MediaStreamRegistry
from
sipsimple.streams.msrp
import
FileSelector
,
ExternalVNCServerHandler
,
ExternalVNCViewerHandler
,
ScreenSharingStream
from sipsimple.streams.msrp.filetransfer import FileSelector
from sipsimple.streams.msrp.screensharing import ExternalVNCServerHandler, ExternalVNCViewerHandler, ScreenSharingStream
from sipsimple.threading import run_in_thread, run_in_twisted_thread
from blink.configuration.settings import BlinkSettings
...
...
@@ -241,8 +242,7 @@ class StreamDescription(object):
self.attributes = kw
def create_stream(self):
registry
=
MediaStreamRegistry
()
cls
=
registry
.
get
(
self
.
type
)
cls = MediaStreamRegistry.get(self.type)
return cls(**self.attributes)
def __repr__(self):
...
...
@@ -3759,9 +3759,7 @@ class BlinkFileTransfer(object):
self._terminate(failure_reason='Destination not found')
return
self.sip_session = Session(self.account)
registry
=
MediaStreamRegistry
()
cls
=
registry
.
get
(
'file-transfer'
)
self
.
stream
=
cls
(
self
.
file_selector
,
'sendonly'
,
transfer_id
=
self
.
id
)
self.stream = MediaStreamRegistry.FileTransferStream(self.file_selector, 'sendonly', transfer_id=self.id)
self.handler = self.stream.handler
self.sip_session.connect(ToHeader(self._uri), routes, [self.stream])
...
...
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