06-03-2015 08:12 AM
Hi,
We are developing a custom desktop XMPP client application. The client is currently working using an OpenFire server. We are investigating the use of the CUP server instead in order to integrate voice functionality with the Cisco phones. We already have a CUP server operational, and some employees use Cisco's Jabber desktop client with no issues. However, when attempting to connect to the CUP server using our custom XMPP client or when using Spark Instant Messenger, I receive a bind conflict error (even though the user is logged out everywhere else). The XMPP traffic is shown below. Do I have to authenticate with the CUCM server as well as the CUP server?
Thank you,
Matt
XMPP Traffic:
SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="cucmimpvm01.elliottelectric.com" version="1.0" >
RECV: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en-US.UTF-8' id='53F79685AED' from='cucmimpvm01.elliottelectric.com' version='1.0'>
RECV: <stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required/></starttls></stream:features>
SEND: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
RECV: <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="cucmimpvm01.elliottelectric.com" version="1.0" >
RECV: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en-US.UTF-8' id='53F79685AED' from='cucmimpvm01.elliottelectric.com' version='1.0'>
RECV: <stream:features><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">AG1hdHR0ZXN0AHN1cGR1ZGU3</auth>
RECV: <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="cucmimpvm01.elliottelectric.com" version="1.0" >
RECV: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en-US.UTF-8' id='53F79685AED' from='cucmimpvm01.elliottelectric.com' version='1.0'>
RECV: <stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features>
SEND: <iq id="MX_1" type="set"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>Matrix</resource></bind></iq>
RECV: <iq id='MX_1' type='error'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><error code='409' type='cancel'><conflict xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>
RECV: </stream:stream>
SEND: </stream:stream>
06-04-2015 01:47 PM
I have some questions:
1. What browser are you using (if you're using a browser - you don't say)?
2. What does your BOSH URL look like? Sanitize it if you need to.
3. What are the security settings on the CUP server? Is it set to secure web connection or is that option unchecked?
06-04-2015 02:02 PM
Hi Nicholas,
I’m not using a browser because it’s a desktop client, not a web-based client. I am also not using BOSH since it’s a desktop client. The server is setup for secure mode, both for XMPP and web clients.
Thanks for your help,
Matt
06-04-2015 02:10 PM
In that case, what library and language are you using? Smack and Java?
Also, have you tried connecting with another client, like Jitsi or Pidgin? Those work fine for me. If those clients connect for you okay, then it's probably something in your XMPP library or your code, and that's not something I can help you with.
06-05-2015 05:39 AM
I am using Matrix XMPP library for VB.NET.
I have not tried Jitsi or Pidgin, but I have tried Spark Instant Messenger.
06-08-2015 11:17 AM
Are you able to login with Spark? Spark works fine with our Cisco IM&P server.
I recommend Jitsi for debugging things like this. It creates unencrypted Wireshark PCAP files in a log directory, which you can examine to see what's going on during the login process.
06-08-2015 11:36 AM
Spark is not successfully logging in.
I receive the error message: "Unable to login due to account already signed in."
We have needed to move forward with OpenFire server for now and may have time to revisit this issue later.
09-06-2023 03:32 AM
@MattPelo7 did you get solutions?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide