service-unavailable in socks5

Vinoth Rajendran
Added almost 4 years ago

I have installed Tigase 5.2.3. Trying to use XEP-0065 protocol for file(any file format audio, video etc) transfer both one-to-one and group chat. Using converse.js as my web client and my file attached below,

when I sent this xml,

<body rid="8676088450" xmlns="" sid="b406a8e3-ac6f-4d70-b887-c1691188963a">
<iq from="550bc7a38acd14171215f3cb@"
  <query xmlns=""

Got result,

    <body xmpp:version="1.0" xmlns:stream="" xmlns="" host="vinoth-system-product-name" ack="8676088450" secure="true" xmlns:xmpp="urn:xmpp:xbosh" from="">
    <iq type="error" to="550bc7a38acd14171215f3cb@" id="npq71g53" xmlns="jabber:client" from="550bc7a38acd14171215f3ce@">
    <query sid="vxf9n471bn46" xmlns="">
    <streamhost jid="550bc7a38acd14171215f3cb@" port="7625" host=""/>
    <error type="cancel" code="503">
    <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
    <text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Service not available.</text>

Do we need to open 7625 port in tigase?

Is this client side protocol?

I need a document to use XEP-0065 Protocol tigase?

Replies (6)

Added by Vinoth Rajendran almost 4 years ago

Can I have a update on this?

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 4 years ago

This behavior of Tigase XMPP Server is correct, as you sent iq packet to bare jid and in this case you wanted iq packet no to be delivered to XMPP client but handled by XMPP server on client behalf. I suppose you wanted to pass this stanza to client which should start file transfer and in this case you should sent stanza to recipients full jid (with resource part).

Added by Vinoth Rajendran almost 4 years ago

Now I am sending this stanza for Requester Initiates S5B Negotiation:

<body rid='5696201902' xmlns='' sid='67f3702a-1b76-4601-a162-efaab4380e2f'>
<iq from='550bc7a38acd14171215f3cb@'
  <query xmlns=''

In log file :

2015-03-27 11:47:28.174 [in_5-message-router]  MessageRouter.processPacket()  FINEST:   Possible infinite loop, dropping packet: from=sess-man@vinoth-system-product-name, to=sess-man@vinoth-system-product-name, DATA=<iq type="error" id="hu3vax16" to="550bc7a38acd14171215f3cb@" from="550bc7b08acd14171215f3ce@" xmlns="jabber:client"><query xmlns="" sid="4c14af56-efd9-4e52-aee0-8049151a2e7d">
    <streamhost port="1080" jid="550bc7a38acd14171215f3cb@" host=""/>
  </query><error type="cancel" code="503"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Service not available.</text></error></iq>, SIZE=610, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=error

This Service not available error is occured.

Please guide me to achieve XEP-0065 protocol.

When I sent file which location tigase will save that file.

I have add proxy/component-id[S]=proxy@ to property file.

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 4 years ago

This response you can also get if you send iq packet to full jid which is not connected (when 550bc7b08acd14171215f3ce@ is not available). This case is suggested by service-unavailable error.

As for Socks5 Proxy component this component is not responsible for handling requests you pasted. This component is only used for activation of bytestream proxy, if your S5B connection will use bytestream proxy.

When I sent file which location tigase will save that file.

Socks5 Proxy component WILL NOT save file anywhere. This is realtime proxy in which when two clients connect to proxy then clients can exchange informations in realtime, so both clients need to be connected to same proxy in same time to make it work.

Added by Anonymous almost 4 years ago

Thanks for your replay.

XEP-0065 will not full fill my requirements.

My requirements is that, I wanted to share file, video, audio and other


It should me stored in server.

It should be fast one when compared to other.

Can you please suggest me a protocol which full fill my requirement?


Vinoth R

On Fri, Mar 27, 2015 at 12:29 PM, wrote:

Added by Vinoth Rajendran almost 4 years ago

And one more thing is that, even receipt is offline, I can sent file to him.

After come online file send to him.

Simply in one word, file is like a text message.