Please login or register to access secure site features.

Note: By continuing to use DevConnect Program Services you agree to our latest Registered Member Terms.

Sign in using DevConnect ID

Forgot password?

Trouble logging in?

Submit a ticket for Registration Support.

I have an SSO ID

?
sign in

Don't have a DevConnect or SSO ID ?

Create a DevConnect account or join the program.

register now
^
Forum Index » Avaya Client SDK - General » JS SDK: Reset manual presence state causes automatic presence state offline   XML
 
Author Message
DanielStingl



Joined: 20/11/2013 08:10:44
Messages: 34
Offline

Hello,

we have some trouble with the presence module of JS SDK 4.15.0.0.

We used the samples from https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/guide/publishing_presence.gsp

After login, we publish automatic presence like following:
 selfPresence.setPhoneState(AvayaClientServices.Services.Presence.PhonePresenceState.PRESENCE_STATE_AVAILABLE);
 selfPresence.setVideoState(AvayaClientServices.Services.Presence.VideoPresenceState.PRESENCE_STATE_AVAILABLE);
 selfPresence.setEnterpriseIMState(AvayaClientServices.Services.Presence.IMPresenceState.PRESENCE_STATE_AVAILABLE);
 presenceService.publishAutomaticPresence();


Then, the user publishes manual presence state:
 presenceService.publishManualState(AvayaClientServices.Services.Presence.PresenceManualState.PRESENCE_STATE_BUSY);


The manual state will be published and distributed to other clients.

But how should we clear the manual state correctly? We are resetting the manual state with unspecified:
 presenceService.publishManualState(AvayaClientServices.Services.Presence.ManualPresenceState.PRESENCE_STATE_UNSPECIFIED);


With this, there is a strange behavior:
We receive 2 presenceupdate events, one with overall-availability "offline" and a following one with "available".
But many times we are receiving the events in reversed order. At first the "available" and then the "offline" event. So, the last user presence received from the JS SDK is "offline".
IX Workplace for Windows also receives the offline presence.

Please see the attached log file which contains the chrome console log output from JS SDK.

Are we anything missing here? Is the publishManualState with unspecified the incorrect way to reset a manual state?
Any other ideas where to investigate?

Thanks
Daniel
 Filename localhost-1631793036697.log [Disk] Download
 Description chrome devtools console log
 Filesize 7 Kbytes
 Downloaded:  64 time(s)

This message was edited 2 times. Last update was at 16/09/2021 07:13:26

akhalimov@avaya.com



Joined: 24/09/2021 02:33:02
Messages: 1
Offline

Hi DanielStingl,

Could you, please, provide versions that you are using of Javascript SDK, AAWG, PMM?
Thank you in advance!

Best regards,
Albert,
Avaya DevConnect support team.
DanielStingl



Joined: 20/11/2013 08:10:44
Messages: 34
Offline

Hi,

the following versions are we using:

Javascript SDK: 4.15.0.0

Avaya Aura Web Gateway Services
Version: 3.9.0.0.625

PMM: I found following version in System Manager - Elements - Avaya Breeze - Service Management - Services:
PresenceServices: 8.1.4.0.69
CallEventControl: 3.8.0.2.380204
EventingConnector: 3.8.0.2.380204

Breeze:
Breeze Version: 3.8.0.2.380204


Thanks for investigating.

Daniel
aKhalimov



Joined: 01/10/2021 02:55:18
Messages: 7
Offline

DanielStingl,

Thank you for your information.
We were able to reproduce it and started to work on it. We will keep you posted about progress regarding this issue.

Best regards,
Albert,
Avaya DevConnect support team.

 
 
Go to: