[jitsi-dev] Strange Behavior of org.jivesoftware.smackx.workgroup.agent.AgentSession


#1

Hi All,

        I am trying to develop a fastpath plugin for queued chat requests.
It uses
1) org.jivesoftware.smackx.workgroup.agent.Agent
2) org.jivesoftware.smackx.workgroup.agent.AgentSession

I edited the code where XMPP login is happening in jitsi the class I edited
is
net.java.sip.communicator.impl.protocol.jabber.LoginByPasswordStrategy.

I added following code in login

        Collection<String> agentWork =
Agent.getWorkgroups("sales@workgroup.192.168.1.77","haridas@192.168.1.77
",connection);
        Iterator <String> agentWorks = agentWork.iterator();
        AgentSession agentSession = new AgentSession(agentWorks.next(),
connection);
        agentSession.setOnline(true);

        System.out.println("Agent Count: "+
agentSession.getAgentRoster().getAgentCount());

I got loggedin to fastpath; But getAgentRoster giving 0 for agent count and
also I am not getting the agentList from AgentRoster.

But I am getting it if I remove all jitsi XMPP account and tried to create
a new connection

What might be the issue...

Regards,
Haridas

···

--
So close , No matter how far