cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
769
Views
0
Helpful
5
Replies

Team XMPP Subscription

Badar Ali
Level 1
Level 1

Hi,

 

I am trying to subscribe to team events in Cisco Ajax Xmpp Library for the Supervisor, but am unable to do so. Is there any sample or documentation regarding CAXL for getting a subscription of the team via Xmpp connection?

 

Thanks.

1 Accepted Solution

Accepted Solutions

Badar Ali
Level 1
Level 1

Team subscription in CAXL is done by sending an Iq in the following format:

            var builder = new jabberwerx.NodeBuilder("{http://jabber.org/protocol/pubsub}pubsub");
            builder.element("subscribe").attribute("node", "/finesse/api/Team/" + teamId + "/Users").
            attribute("jid", jid);
            xmppClient.sendIq("set", "pubsub." + domain, builder.data, callback, 5000);

View solution in original post

5 Replies 5

dekwan
Cisco Employee
Cisco Employee

Hi,

 

I am assuming that you are not building a Finesse gadget and are using the XMPP library to get the events.

 

There isn't a sample on how to subscribe to a supervisor's team using the CAXL library. Have you done it manually to make sure that you have the proper steps? If not, take a look at this tutorial: https://developer.cisco.com/docs/finesse/#!basic-supervisor-rest-apis

 

Thanx,

Denise

Yes, I have followed the steps mentioned in the document. I was able to get
a subscription via pidgin.

However, I am looking for a way to implement the same using CAXL.

Can you help me with that?

Thanks.

Sorry, I haven't had the need to implement subscribing to a team. Maybe there are folks in this community that have done it and can help.

 

Thanx,

Denise

Badar Ali
Level 1
Level 1

Team subscription in CAXL is done by sending an Iq in the following format:

            var builder = new jabberwerx.NodeBuilder("{http://jabber.org/protocol/pubsub}pubsub");
            builder.element("subscribe").attribute("node", "/finesse/api/Team/" + teamId + "/Users").
            attribute("jid", jid);
            xmppClient.sendIq("set", "pubsub." + domain, builder.data, callback, 5000);

Thank you for posting your solution for others in the community!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: