Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
hardboy111 #1
Member since Apr 2007 · 13 posts
Group memberships: Members
Show profile · Link to this post
Subject: File Transfer Error
Hi,

Im trying to transfer a file using the example code from the MiniClient in my agsxmpp based client. The problem is when I send the first IQ message (the one where you negoitate the features) the server returns with error 503:
<iq xmlns="jabber:client" from="gaimclient@mymachine" to="agsxmppclient@mymachine/agsXMPP" type="error" id="agsXMPP_5"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="ac8fb65f-8037-4e16-a68c-9f4878ffdcfa"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" size="6" name="tester.txt"><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><error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>

Im using Wildfire as my server for both the sending and receving clients. The recevining client is signed in using Gaim. Also to give you some back ground im hosting the wildfire server locally on my machine, my agsxmpp based client and the gaim client are also on the same machine...I can send messages between them without any problem..

Any help would be greatly appreciated
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
did you try it with 2 MiniClients?
I don't know if Gaim supports the SOCKS5 bytestreams.

But in your log it looks like you send the iq to a Bare Jid which is wrong. The iq must be send to the Full Jid.

Alex
Avatar
sang_sorn #3
User title: Adisorn S.
Member since Dec 2007 · 1 post · Location: Bangkok
Group memberships: Members
Show profile · Link to this post
I have found this problem too. After i change jid to full jid (with resource)
it's work..

but i still have another problem. i wish to send file on miniclientWM5 (CF), I have port JEP65Socket Class and frmFileTransfer Class to CF
but still not implement Disco manager ... i cannot send file ... Would it be because i don't implement Disco manager ?
Avatar
Alex #4
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by sang_sorn:
I have found this problem too. After i change jid to full jid (with resource)
it's work..
Iq's go always to full Jids. Same applies to the file transfer iq's.

Quote by sang_sorn:
but i still have another problem. i wish to send file on miniclientWM5 (CF), I have port JEP65Socket Class and frmFileTransfer Class to CF
but still not implement Disco manager ... i cannot send file ... Would it be because i don't implement Disco manager ?
no, disco is not used in our file transfer example. The problem must be somewhere else.
Please attach you port of the JEP65Socket here, it may be useful for others as well and help us to find the problem.
Which server (proxy) are you using?

Alex
Avatar
.net_developer #5
Member since Sep 2015 · 41 posts
Group memberships: Members
Show profile · Link to this post
whyat should be given in resource?"agsXMPP" or the id of user?
Avatar
Alex #6
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You get the resource of your contacts in the OnPresence event.
Please make yourself familiar with resources, bare Jid and full Jid.

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