Subject: When retrieving a contact's VCard, Cisco CUPS returns error "Expecting bind"!
We(Enghouse) are currently Matrix to see if we can build our presence server against a few vendors, first will be cisco. So I'm using miniClient to connect to cisco CUPS using BOSH/plaintext:
I found the callback is invoked
but this callback is NEVER invoked and also all callbacks to do with Roster is NEVER invoked either
Then if I try to query VCARD on a user, it returns "Expecting bind" error. Is this because the OnBind calback is not invoked? if yes, what need to be done to get it going?
I'm wondering what I'm missing here(this is the full XML trace)
Any help is greatly appreciated!
- xmppClient.Transport = Matrix.Net.Transport.Bosh;
- private void xmppClient_OnBeforeSasl(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
- {
- e.Auto = false;
- e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.Plain;
- }
- private void xmppClient_OnLogin(object sender, Matrix.EventArgs e)
- {
- DisplayEvent("OnLogin");
- }
but this callback is NEVER invoked and also all callbacks to do with Roster is NEVER invoked either
- private void xmppClient_OnBind(object sender, JidEventArgs e)
- {
- DisplayEvent("OnBind");
- }
Then if I try to query VCARD on a user, it returns "Expecting bind" error. Is this because the OnBind calback is not invoked? if yes, what need to be done to get it going?
I'm wondering what I'm missing here(this is the full XML trace)
- SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="cucm10.local" version="1.0" >
- RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="cucm10.local" version="1.0" id="956076547C" >
- RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
- <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
- <mechanism>PLAIN</mechanism>
- <mechanism>CISCO-VTG-TOKEN</mechanism>
- </mechanisms>
- </stream:features>
- SEND: <auth mechanism="PLAIN" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">XXX</auth>
- RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
- SEND: <iq id="MX_1" to="josiel@cucm10.local" from="josiee@cucmcucm10.local" type="get" xmlns="jabber:client">
- <vCard xmlns="vcard-temp" />
- </iq>
- SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="cucm10.local" version="1.0" >
- RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="cucm10.local" version="1.0" id="956076547C" >
- RECV: <stream:error xmlns:stream="http://etherx.jabber.org/streams">
- <undefined-condition xmlns="urn:ietf:parms:xml:ns:xmpp-streams" />
- <text xml:lang="en-US.UTF-8" xmlns="urn:ietf:params:xml:ns:xmpp-streams">Expecting bind.</text>
- </stream:error>
- SEND: </stream:stream>
- RECV: </stream:stream>
- SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="cucm10.local" version="1.0" >
- RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="cucm10.local" version="1.0" id="966328E0B0" >
- RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
- <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
- <mechanism>PLAIN</mechanism>
- <mechanism>CISCO-VTG-TOKEN</mechanism>
- </mechanisms>
- </stream:features>
- SEND: <auth mechanism="PLAIN" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">XXX</auth>
- RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
- SEND: <iq id="MX_2" to="josiel@cucm10.local" from="josiee@cucmcucm10.local" type="get" xmlns="jabber:client">
- <vCard xmlns="vcard-temp" />
- </iq>
- SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="cucm10.local" version="1.0" >
- RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="cucm10.local" version="1.0" id="966328E0B0" >
- RECV: <stream:error xmlns:stream="http://etherx.jabber.org/streams">
- <undefined-condition xmlns="urn:ietf:parms:xml:ns:xmpp-streams" />
- <text xml:lang="en-US.UTF-8" xmlns="urn:ietf:params:xml:ns:xmpp-streams">Expecting bind.</text>
- </stream:error>
- SEND: </stream:stream>
- RECV: </stream:stream>