Skip to content
Snippets Groups Projects
Commit e025d54f authored by zimio's avatar zimio
Browse files

get file_tag from file request

parent 6120c81a
No related branches found
No related tags found
No related merge requests found
...@@ -2006,8 +2006,11 @@ class FileRequestReceivedEvent(nec.NetworkIncomingEvent, HelperEvent): ...@@ -2006,8 +2006,11 @@ class FileRequestReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
if self.jingle_content: if self.jingle_content:
self.file_props.session_type = 'jingle' self.file_props.session_type = 'jingle'
self.file_props.stream_methods = xmpp.NS_BYTESTREAM self.file_props.stream_methods = xmpp.NS_BYTESTREAM
file_tag = self.jingle_content.getTag('description').getTag( desc = self.jingle_content.getTag('description')
'offer').getTag('file') if desc.getTag('offer'):
file_tag = desc.getTag('offer').getTag('file')
else:
file_tag = desc.getTag('request').getTag('file')
for child in file_tag.getChildren(): for child in file_tag.getChildren():
name = child.getName() name = child.getName()
val = child.getData() val = child.getData()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment