Hi, I'm trying to setup a basic test sample of file transfer useing SIP XEP-0096 XMPP extension.
for may test case I run openfire on CentOS6.4-64Bit Virtual Box. iptables is off.
Storage solution is based on DB (mysql).
It seems that receiver doesn't negotiates well with the sender, Could you please have a look at logcats and my sample code(Attached)?
Sender LogCat Main Part:
<iq id="0CLs6-8" to="receiver@192.168.1.103/Smack" from="sender@192.168.1.103/Smack" type="set"><si xmlns="http://jabber.org/protocol/si" id="jsi_1046878061513112725" mime-type="image/png" profile="http://jabber.org/protocol/si/profile/file-transfer"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="avatar1.png" size="9838" ><desc>avatar1.png</desc></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x type="form" xmlns="jabber:x:data"><field var="stream-method" type="list-single"><option><value>http://jabber.org/protocol/bytestreams</value></option><option><value>http://jabber.org/protocol/ibb</value></option></field></x></feature></si></iq>
Receiver LogCat:
03-04 20:00:12.638: I/System.out(11605): ??:??:?? بعدازظهر RCV (1319091388): <iq id="p197h-8" to="receiver@192.168.1.103/Smack" from="sender@192.168.1.103/Smack" type="set"><si xmlns="http://jabber.org/protocol/si" id="jsi_7540764729070309750" mime-type="image/png" profile="http://jabber.org/protocol/si/profile/file-transfer"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="avatar1.png" size="9838"><desc>avatar1.png</desc></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field var="stream-method" type="list-single"><option><value>http://jabber.org/protocol/bytestreams</value></option><option><value>http://jabber.org/protocol/ibb</value></option></field></x></feature></si></iq>
I'm working on a customized version of Xabber Client (https://github.com/redsolution/xabber-android/).
Please look at Provider method invokatins in OnCreate Activity if I missed something.
I define a FileTransferLister acccording to a tutorial from the link bellowm if I didn't miss any part.:
http://harryjoy.com/2012/08/18/file-transfer-in-android-with-asmack-and-openfire /
Any help or idea would be appreciated
I aim to put a step by step guid as a document in this forum, maybe usefull for feautures.
Best Regards
Vahid
Thanks a lot.