sasl">*****</auth>
RECV: <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'></success>
SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams"
id="6ec5a7aa" xmlns="jabber:client" to="allied.onsip.com"
version="1.0">
RECV: <?xml version='1.0'?><stream:stream xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' id='a4a2632d-0f92-4676-
a6c6-95351ea62f60' from='allied.onsip.com' version='1.0'
xml:lang='en'><stream:features><ver
xmlns='urn:xmpp:features:rosterver'><optional/></ver><bind
xmlns='urn:ietf:params:xml:ns:xmpp-bind'><required/></bind><session
xmlns='urn:ietf:params:xml:ns:xmpp-session'><optional/></session><c
hash='sha-1' ver='9e/BB7zTeVcQzdulvJBstfHooGE=' node='http://
prosody.im' xmlns='http://jabber.org/protocol/caps'/></
stream:features>
SEND: <iq id="JN_1" type="set" to="allied.onsip.com"><bind
xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>Jabber.Net</
resource></bind></iq>
RECV: <iq id='JN_1' type='error' from='allied.onsip.com'><error
type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-
stanzas'/></error></iq>
-------------------
ERROR: jabber.connection.sasl.AuthenticationFailedException: Error
binding resource: <error type="cancel"><service-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error>
--
You received this message because you are subscribed to the Google Groups "jabber-net" group.
To post to this group, send email to jabbe...@googlegroups.com.
To unsubscribe from this group, send email to jabber-net+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jabber-net?hl=en.
Oh, yes I was able to connect with psi. It authenticated because I was able to view the the roster contact list.
I compared the PSI Console with the output I got from using jabber-net. The
only difference between the two is that in the last send IQ statement in
jabber-net, there is an additional attribute: to="allied.onsip.com". Maybe
my resource name needs to be set to something else ? I get the following
messages in each:*
This is from PSI *
[SENT]
<iq type="set" id="bind_1" >
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<resource>Joel-HP</resource>
</bind>
</iq>
[REC]
<iq xmlns="jabber:client" type="result" id="bind_1" >
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<jid>ben...@allied.onsip.com/Joel-HP</jid>
</bind>
</iq>
[SENT]
<iq type="set" id="aacca" >
<session xmlns="urn:ietf:params:xml:ns:xmpp-session"/>
</iq>
[REC]<iq type="result" id="aacca" to="ben...@allied.onsip.com/Joel-HP" />
*This is from Jabber-Net*
Florob: bennifer, could you provide a XML log?
bennifer: might be a bit long ^_^
bennifer: Send: http://prosody.im/pastebin/efe070d4-ff96-4772-91dc-c6d296fd68c0
Zash: <iq id="agsXMPP_1" type="set" to="allied.onsip.com"> -- Can you drop the to attr?
bennifer: one sec..
bennifer: That's the problem, it does it automatically in the library...am I not allowed to specify the to in the iq stanza
Florob: !version allied.onsip.com
HAL: Florob: allied.onsip.com is running Prosody version unknown on Linux
Zash: Nice with a lib doing it wrong :)
bennifer: yeah, ain't that annoying lol
Zash: Prosody should handle it tho, there's compat code for it
bennifer: do you know of any c# or java libraries that SHOULD work? I've tried about 5 different libraries and they are either too old or just don't work like this one?
Zash: I'm neither a C# or Java guy
Zash: but have you looked at Stroke? (Swiften (Pretty new C++ lib) ported to Java)
waqas: Ha, it's called Stroke?
Zash: It is. http://swift.im/git/stroke/
waqas: Zash, We don't have compat code for <bind/>, because all clients seem to have gotten that right. It was even in the RFC examples.
waqas: We do have compat code for pointless <session/>, which all clients try to send blindly...
Zash: Oh
Zash: Right, then that's the bug
Florob: would setting 'to' to the JID work?
Zash: Yes
waqas: Florob, Yep
Zash: nil == bare jid
waqas: In client->server
Florob: So... agsXMPP certainly allows setting the 'to' attribute, doesn't it? It probably just auto-fills when you don't. *crosses fingers*
bennifer: do you mean setting the resource to null?
Florob: No. the 'to' attribute of the IQ stanza
Florob: to your JID
Florob: (also does this feel hackish RFC-wise to anyone else. You don't know your JID, until you did a bind, but still implicitly send stanzas to it)
waqas: Florob, The whole login sequence is probably one library call, and happens under the hood
waqas: Well, we've identified the issue. The to attribute needs to not be on the bind IQ.