Project

General

Profile

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 init.properties file attached below,

when I sent this xml,

<body rid="8676088450" xmlns="http://jabber.org/protocol/httpbind" sid="b406a8e3-ac6f-4d70-b887-c1691188963a">
<iq from="550bc7a38acd14171215f3cb@192.168.1.94/opsbus_1427352828451"
    id="npq71g53"
    to="550bc7a38acd14171215f3ce@192.168.1.94"
    type="set">
  <query xmlns="http://jabber.org/protocol/bytestreams"
         sid="vxf9n471bn46">
    <streamhost
        host="192.168.1.94"
        jid="550bc7a38acd14171215f3cb@192.168.1.94"
        port="7625"/>
  </query>
</iq>
</body>

Got result,


    <body xmpp:version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="http://jabber.org/protocol/httpbind" host="vinoth-system-product-name" ack="8676088450" secure="true" xmlns:xmpp="urn:xmpp:xbosh" from="192.168.1.94">
    <iq type="error" to="550bc7a38acd14171215f3cb@192.168.1.94/opsbus_1427352828451" id="npq71g53" xmlns="jabber:client" from="550bc7a38acd14171215f3ce@192.168.1.94">
    <query sid="vxf9n471bn46" xmlns="http://jabber.org/protocol/bytestreams">
    <streamhost jid="550bc7a38acd14171215f3cb@192.168.1.94" port="7625" host="192.168.1.94"/>
    </query>
    <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>
    </error>
    </iq>
    </body>

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='http://jabber.org/protocol/httpbind' sid='67f3702a-1b76-4601-a162-efaab4380e2f'>
<iq from='550bc7a38acd14171215f3cb@192.168.1.94/opsbus_1427362885542'
    id='hu3vax16'
    to='550bc7b08acd14171215f3ce@192.168.1.94/opsbus_1427361210343'
    type='set'>
  <query xmlns='http://jabber.org/protocol/bytestreams'
         sid='4c14af56-efd9-4e52-aee0-8049151a2e7d'>
    <streamhost
        jid='550bc7a38acd14171215f3cb@192.168.1.94/opsbus_1427436963912'
        host='192.168.1.94'
        port='1080'/>
  </query>
</iq>
</body>

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@192.168.1.94/opsbus_1427362885542" from="550bc7b08acd14171215f3ce@192.168.1.94/opsbus_1427361210343" xmlns="jabber:client"><query xmlns="http://jabber.org/protocol/bytestreams" sid="4c14af56-efd9-4e52-aee0-8049151a2e7d">
    <streamhost port="1080" jid="550bc7a38acd14171215f3cb@192.168.1.94/opsbus_1427436963912" host="192.168.1.94"/>
  </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@192.168.1.94 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@192.168.1.94/opsbus_1427361210343 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

format.

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?

Thanks,

Vinoth R

On Fri, Mar 27, 2015 at 12:29 PM, support@tigase.org 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.

    (1-6/6)