title: Jingle-Android Filetransfer
body: <p>I am trying to implement a file transfer via jingle in my app. Can anybody please help </p>
  
  <p>me with this error? I dont why it says service-unavailable when the server can handle file </p>
  
  <p>transfer using spark, so i guess i might forgot something about the providers or extensions </p>
  
  <p>that should be added.</p>
  
  <p>I already have this:</p>
  
  <pre><code>    pm.addIQProvider("jingle", "http://jabber.org/protocol/jingle",
              new org.jivesoftware.smackx.provider.JingleProvider());
  
      pm.addExtensionProvider("description", "http://jabber.org/protocol/jingle/description/audio",
              new org.jivesoftware.smackx.provider.JingleContentDescriptionProvider.Audio());
  
      pm.addExtensionProvider("description", "http://jabber.org/protocol/jingle/description/audio",
              new org.jivesoftware.smackx.provider.JingleContentDescriptionProvider.Audio());
  
      pm.addExtensionProvider("transport", "http://jabber.org/protocol/jingle/transport/ice",
              new org.jivesoftware.smackx.provider.JingleTransportProvider.Ice());
  
      pm.addExtensionProvider("transport", "http://jabber.org/protocol/jingle/transport/raw-udp",
              new org.jivesoftware.smackx.provider.JingleTransportProvider.RawUdp());
  
      pm.addExtensionProvider("busy", "http://jabber.org/protocol/jingle/info/audio",
              new org.jivesoftware.smackx.provider.JingleContentInfoProvider.Audio.Busy());
  
      pm.addExtensionProvider("hold", "http://jabber.org/protocol/jingle/info/audio",
              new org.jivesoftware.smackx.provider.JingleContentInfoProvider.Audio.Hold());
  
      pm.addExtensionProvider("mute", "http://jabber.org/protocol/jingle/info/audio",
              new org.jivesoftware.smackx.provider.JingleContentInfoProvider.Audio.Mute());
  
      pm.addExtensionProvider("queued", "http://jabber.org/protocol/jingle/info/audio",
              new org.jivesoftware.smackx.provider.JingleContentInfoProvider.Audio.Queued());
  
      pm.addExtensionProvider("ringing", "http://jabber.org/protocol/jingle/info/audio",
              new org.jivesoftware.smackx.provider.JingleContentInfoProvider.Audio.Ringing());
  </code></pre>
  
  <p>The logs says:</p>
  
  <p>D/SMACK   (19570): 07:57:35 PM RCV  (1079353408): </p>
  
  <pre><code>     &lt;iq type="error" id="u63Ey-6" 
           from="1@localhost.localdomain/Smack" 
           to="a@localhost.localdomain/Smack"&gt;
       &lt;jingle xmlns="urn:xmpp:jingle:1" 
               initiator="a@localhost.localdomain/Smack" 
               responder="1@localhost.localdomain/Smack" 
               action="transport-info" sid="4522287730196205154"&gt;
            &lt;content creator="initiator" name="JingleMediaManager"&gt;
               &lt;description xmlns="urn:xmpp:jingle:apps:rtp:1"&gt;
                  &lt;payload-type id="0" name="PCMU" channels="1" clockrate="16000"/&gt;
                  &lt;payload-type id="3" name="gsm" channels="1" clockrate="0"/&gt;
                  &lt;payload-type id="4" name="g723" channels="1" clockrate="0"/&gt;
               &lt;/description&gt;
               &lt;transport xmlns="http://www.xmpp.org/extensions/xep-0177.html#ns"/&gt;
                 &lt;transport xmlns="http://www.xmpp.org/extensions/xep-0177.html#ns"&gt;
                  &lt;candidate generation="0" ip="192.168.123.102" port="10562"/&gt;
               &lt;/transport&gt;
            &lt;/content&gt;
       &lt;/jingle&gt;
       &lt;error code="503" type="cancel"&gt;
            &lt;service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/&gt;
       &lt;/error&gt;&lt;/iq&gt;
  </code></pre>