03-02-2017 08:07 AM
Hi all,
I have a query regarding jabberwerx events.
I am able to get the notifications from jabberwerx while the user signs in , and changes the states like ready,not-ready and logout.
But when I try to make a call, the finese api initiates the call.But I am not getting the jabber events for this communication.
Should the jabber connection be established each time a user action takes place? Or does it work differently for client actions ?
Can you advise the event that should be listened in order to achieve it.I am trying to implement it using javascript.
Below are the code , that gets invoked when the user logs in :
_jwClient.event("messageReceived").bindWhen(
"event[xmlns='http://jabber.org/protocol/pubsub#event'] items item notification",
_eventHandler);
_jwClient.event("clientStatusChanged").bind(function(evt) {
_finesse.signIn(username, instrument, true, _signInHandler, _signInHandler);
});
Regards,
Poonam
03-02-2017 09:46 AM
Hi Poonam,
The jabberwerx connection should be established when the user signs in and disconnected when they sign out. If you are getting the agent state events, I do not see why you wouldn't get the call events. Try to use a XMPP client such as Pidgin or Adium to see if this particular agent has issues receiving dialog events. Also check in the webservices logs to see that the event is being sent.
Thanx,
Denise
03-02-2017 10:24 AM
Hi Denise,
The jabberwerx connection is established when the user signs in.I had made a mistake saying earlier that it tracks the states as well.It does not track the agent states as well.The finese api's gets executed.Even I receive the call when I try to make it.But jabber services are not responding,thus I am not able to capture the response.Is there any service of jabber that needs to be invoked for this purpose?
Thank you,
Poonam
03-02-2017 10:44 AM
Hi,
Did you make sure to connect after signing in?
//Connect to BOSH connection.
_jwClient.connect(jid, _password, jwArgs);
Other than that, there isn't anything else that needs to be done to get the events.
Thanx,
Denise
03-02-2017 12:05 PM
Hi,
Yes Denise.I had connected to BOSH server using _jwClient.connect and I have been receiving notification when user sign in.That is the only response that I obtained from jabber.
Regards,
Poonam
07-12-2017 12:09 AM
Then you should get the events.
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