Don't work file transfer (xep 0234, 0065)

2019-09-19 18:19发布

问题:

I am developing an application for the iPhone. I will implement a chat with GoogleTalk XMPP in our application. I want to transfer files using SOCKS5 Bytestream (http://xmpp.org/extensions/xep-0234.html # hash). I can not initialize the session. I send request "session-initiate". 

<jingle xmlns='urn:xmpp:jingle:1'
          action='session-initiate'
          initiator='romeo@montague.lit/orchard'
          sid='851ba2'>
      <content creator='initiator' name='a-file-offer'>

The server returns an error "code= 503 service-unavailable".

Could you tell what the problem is? Can I access this service? What other way I can implement a file transfer using GoogleTalk XMPP?

回答1:

Did you wrap this in an IQ stanza? If not, that's the problem, but I'm surprised you didn't just get disconnected. If you did, then check that the to address is correct; error 503 can either be a routing error, or can be returned from a receiving client that doesn't implement the protocol in question.



标签: iphone xmpp