Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
ramtin #1
User title: RamTin
Member since Mar 2013 · 26 posts
Group memberships: Members
Show profile · Link to this post
Subject: Can't Send File
Hi Alex,
C#
AgsXMPP

i can't send file to Ejabberd Sever Like Nimbuzz

Xml=>

  1. SEND: <iq id="agsXMPP_39" to="testing@nimbuzz.com/Nimbuzz_Symbian25" type="set"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="41246188-159e-4399-a277-3c37683eb6c0"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="trv.PNG" size="4084"><range /></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field type="list-single" var="stream-method"><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>
  2.  
  3. RECV: <iq xmlns="jabber:client" from="testing@nimbuzz.com/Nimbuzz_Symbian25" to="tsrst2010@nimbuzz.com/28357056311381950746116033" type="error" id="agsXMPP_39"><error code="400" type="cancel"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /><no-valid-streams xmlns="http://jabber.org/protocol/si" /></error></iq>


when with nimbuzz messenger send a file to myId , i get this xml =>

  1. RECV: <message xmlns="jabber:client" from="testing@nimbuzz.com" to="tsrst2010@nimbuzz.com" type="normal" id="file_1178085158"><body>testing has uploaded the file 92580357444476628906.png to your personal file store.</body><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" size="14339" name="92580357444476628906.png"><thumbnail>http://filestore.nimbuzz.com/thumbnails/63/16/df/09/0f/a2/1381950991061.png</thumbnail><x xmlns="jabber:x:data" type="result"><field var="tags"><value>image</value></field><field var="timestamp"><value>2013-10-16T19:16:31.045Z</value></field></x></file><list xmlns="nimbuzz:filestore" hash="1381950991354" /><request xmlns="urn:xmpp:receipts" /></message>


so how can i send file to this ?
thanks
This post was edited on 2013-10-17, 21:26 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
agsXMPP implements the Si file transfer like it is described here:
http://xmpp.org/extensions/xep-0096.html

It looks like the Nimbuzz messenger has a modified implementation of this. So to get this working you have to reverse study and reverse engineer the protocols of the Nimbuzz messenger.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS