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: publishNote does not notify other clients   XML
 
Author Message
DanielStingl



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

Hi,

we have a web application where the user should set the presence note. The JS SDK is initialized and presence can be received and sent.
When we call publishManualState() of the PresenceService sdk class the manual state changed for e. g. in IX Workplace Client too.

When we call publishNote() of PresenceService , the passed note will neither be distributed to IX Workplace nor a test app based on ix windows sdk. The note of the received event is empty.

Bute the eventhandler getPresenceListSubscription().addOnPresenceReceivedCallback whithin the same web application instance receives the updated presence note.


Base was the last code sample of the Publish Presence sample https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/guide/publishing_presence.gsp

Any ideas why the published presence note is not distributed to other clients / client technologies?

thanks
Daniel
lfarias



Joined: 07/10/2019 15:20:02
Messages: 46
Offline

Hello DanielStingl,

We are analyzing the described problem, please specify which versions are you using of Javascript SDK, Native SDK, AAWG, PMM.

Leandro,
Avaya DevConnect support team.
DanielStingl



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

Hi,

we use the following versions:

Javascript SDK:
4.5.0.1 (Build 1)

Avaya Aura Web Gateway Services
Version: 3.7.0.1.353
Components:
CallSignallingAgent 3.7.0.1.353
keepalived 1.3.5
avCore-tomcat 8.0.53_1_dev_20181229_1224
avCore-mss 8.0.1
avCore-cassandra 3.11.3_dev_20181115_0813
nginx 1.10.3
net-snmp 5.7.3
spiritAgentrpm 7.1.2.0.5
acsService 8.0.0.5.353
csaService 3.7.0.1.353
ups-install 3.7.0.1.dev_20200131_1742
upc-install 3.5.2.0.dev_20200131_1745
swc-install 3.7.0.1.dev_20200108_1427
avCore-cas-common 6.1.0.1.353
avCoreServices 3.7.0.1.353


Presence:
Counter Name Counter Value
PS Startup Thu Apr 02 12:14:02 CEST 2020
PS Version 8.1.0.0.277
Breeze Version 3.6.0.1.360106


Thanks
Daniel
DanielStingl



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

Hi,

this topic is over an year old. Now, we use JS SDK 4.15.0.0, but this issue still appears.

If we set an presence note on JS SDK, the Avaya IX Workplace Client (Windows) will not receive the presence note.

The JavaScript SDK writes the following logs:

[9/16/2021, 10:00:57 AM, UTC+02:00] PresenceService: API called: PresenceService.publishNote
[9/16/2021, 10:00:57 AM, UTC+02:00] CSGPresenceAndCallProvider: Current presence subscription container should be valid, using it

[9/16/2021, 10:00:57 AM, UTC+02:00] NetworkProvider: CallGatewayProvider,PROVIDER:,RestProvider,URL:,https://tkwebgw.domain.local:443/csa/bsid/62341353-183b-4e33-99c4-b8af0e4ada86/resources/users/self/manual-presence-publications/note,
MESSAGE SENT:,{
  "presencePublication": {
    "note": {
      "content": "test"
    }
  }
},
OPTIONS SENT:,{
  "sendType": "PUT",
  "timeout": 30000,
  "urlSuffix": "",
  "dataType": "text",
  "processData": true,
  "url": "https://tkwebgw.domain.local:443/csa/bsid/62341353-183b-4e33-99c4-b8af0e4ada86/resources/users/self/manual-presence-publications/note",
  "headers": {
    "Accept": "application/vnd.avaya.csa.error.v1+json, application/vnd.avaya.presence.presence-pub.v1+json",
    "Content-Type": "application/vnd.avaya.presence.presence-pub.v1+json"
  }
}
AvayaClientServices.min.js:1 [9/16/2021, 10:00:57 AM, UTC+02:00] NetworkProvider: CallGatewayProvider,
MESSAGE RECEIVED:,,
HEADERS RECEIVED:,cache-control: no-cache,no-store,must-revalidate,private
content-length: 0
expires: Thu, 01 Jan 1970 00:00:00 GMT
pragma: no-cache

AvayaClientServices.min.js:1 [9/16/2021, 10:00:57 AM, UTC+02:00] NetworkProvider: CallGatewayProvider,
MESSAGE RECEIVED:,{
  "notification": {
    "application": "CSA",
    "contents": {
      "rlPresenceUpdatedEvent": "REMOVED"
    },
    "resource": "https://tkwebgw.domain.local:443/csa/bsid/62341353-183b-4e33-99c4-b8af0e4ada86/resources/users/self/clients/62341353-183b-4e33-99c4-b8af0e4ada86/presence-subscriptions",
    "service": "presence",
    "version": "1"
  }
}

AvayaClientServices.min.js:1 [9/16/2021, 10:00:57 AM, UTC+02:00] CSGPresenceAndCallProvider: Received notification 
{
    "presentities": [{
            "userIdentity": {
                "userId": "dev.test1@customer-domain.de",
                "addressSpaceId": null,
                "clientId": null
            },
            "status": "active",
            "terminationReason": null,
            "retryAfter": null
        }
    ],
    "presenceDocuments": [{
            "presenceDoc": {
                "userIdentity": {
                    "userId": "dev.test1@customer-domain.de",
                    "addressSpaceId": null,
                    "clientId": null
                }
            },
            "presenceSummary": {
                "stateEnum": "AVAILABLE",
                "availabilityDescription": "manual-note",
                "lastChanged": null
            },
            "manualState": null,
            "mode": null,
            "note": {
                "content": "test",
                "setAt": "2021-09-16T10:00:57.442+02:00"
            },
            "channelPresence": [{
                    "presenceAutomaticPublication": null,
                    "phone": {
                        "subType": "Avaya.PS",
                        "stateEnum": "AVAILABLE",
                        "contact": "sips:213@customer-domain.de",
                        "lastChanged": "2021-09-16T10:00:57.442+02:00"
                    },
                    "video": {
                        "subType": "Avaya.PS",
                        "stateEnum": "AVAILABLE",
                        "contact": "sips:213@customer-domain.de",
                        "lastChanged": "2021-09-16T10:00:57.442+02:00"
                    },
                    "im": {
                        "subType": "Avaya.PS",
                        "stateEnum": "AVAILABLE",
                        "contact": "dev.test1@customer-domain.de",
                        "lastChanged": "2021-09-16T10:00:57.442+02:00"
                    },
                    "calendar": null
                }
            ]
        }
    ],
    "watcherInfo": null
}

AvayaClientServices.min.js:1 [9/16/2021, 10:00:57 AM, UTC+02:00] CSGPresenceAndCallProvider: Processing presence document for User ID dev.test1@customer-domain.de
AvayaClientServices.min.js:1 [9/16/2021, 10:00:57 AM, UTC+02:00] CSGPresenceAndCallProvider: Received presence status of dev.test1@customer-domain.de
AvayaClientServices.min.js:1 [9/16/2021, 10:00:57 AM, UTC+02:00] PresenceService: Received presence information dev.test1@customer-domain.de
PresenceLogic.js?5d6e:22 Presence: dev.test1@customer-domain.de - PRESENCE_STATE_AVAILABLE
AvayaClientServices.min.js:1 [9/16/2021, 10:00:57 AM, UTC+02:00] ContactsService: Using first E.164 phone number as Phone/Video channel presence address
PresenceLogic.js?5d6e:43 SelfPresence received PRESENCE_STATE_AVAILABLE
AvayaClientServices.min.js:1 [9/16/2021, 10:01:11 AM, UTC+02:00] NetworkProvider: AMMMessagingProvider,Received pong response.
AvayaClientServices.min.js:1 [9/16/2021, 10:01:11 AM, UTC+02:00] NetworkProvider: CallGatewayProvider,Received pong response.
AvayaClientServices.min.js:1 [9/16/2021, 10:01:21 AM, UTC+02:00] NetworkProvider: CallGatewayProvider,
MESSAGE RECEIVED:,{
  "notification": {
    "application": "CSA",
    "contents": {
      "rlPresenceUpdatedEvent": "REMOVED"
    },
    "resource": "https://tkwebgw.domain.local:443/csa/bsid/62341353-183b-4e33-99c4-b8af0e4ada86/resources/users/self/clients/62341353-183b-4e33-99c4-b8af0e4ada86/presence-subscriptions",
    "service": "presence",
    "version": "1"
  }
}


Attached is a screenshot from ix workplace on windows where you can see that the presence note is not displayed.
Other JS SDK clients receive the presence note so I think AAWG is distributing the presence note correctly.

So, where can investigate why the presence not is not displayed in IX Workplace Windows client?

Thanks
Daniel
[Thumb - Screenshot_Workplace.jpg]
 Filename Screenshot_Workplace.jpg [Disk] Download
 Description No description given
 Filesize 19 Kbytes
 Downloaded:  64 time(s)

This message was edited 1 time. Last update was at 16/09/2021 08:15:40

DanielStingl



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

Hi,

are there any news for this issue?

We are using the following versions:

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


Daniel
Arturas



Joined: 14/12/2020 10:17:09
Messages: 13
Offline

Hello, Daniel!

Thank you for your question,
we will investigate this,
and come back soon.

Arturas,
JSCSDK team

Thank you,
Arturas Lapinskas,
Software Designer,
Avaya JSCSDK development team
 
 
Go to: