Author Message
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
Hi all,

we use the JS Client SDK for softphone capabilties. We want to receive the voice mail number to let the user interact with the voice mailbox.
So, we use the following code to retreive the voice mail number:

let sophouser = SoftphoneClient.createUser(userConfig);
let vmService = sophouser.getVoiceMessaging();

let vmNum = vmService.getVoicemailNumber();
let vmWaiting = vmService.getVoiceMessagingStatus().isMessageWaiting();

vmService.addOnVoiceMessagingStatusChangedCallback((messagingStatus) => {
vmWaiting = messagingStatus.isMessageWaiting();
});

vmService.addOnVoicemailNumberChangedCallback((newNumber) => {
vmNum = newNumber;
});



So, getVoicemailNumber() returns always null/undefined and we can not get it done to receive the voice mail number...
We set the EC500VOICEMAILNUMBER Parameter and on physical phones or IX Workplace the number is passed through the phone. But not to JS Client SDK via Avaya Aura Web Gateway.
In Avaya Aura Device Services at Dynamic Configuration we set the following parameter:
SET EC500VOICEMAILNUMBER 249

Here is the console output from browser:


[3/10/2021, 11:52:23 AM, UTC+01:00] NetworkProvider: CallGatewayProvider,
MESSAGE RECEIVED:,{
"notification": {
"application": "CSA",
"contents": {
"messageType": "EndpointConfigurationUpdate",
"voiceMailNumber": null
},
"resource": "https://tkwebgw.megatech.local:443/csa/bsid/bfaf6bd4-155e-47af-a6a9-06309df5ba93/resources/tenants/default/users/self/clients/bfaf6bd4-155e-47af-a6a9-06309df5ba93/calls",
"service": "telephony",
"version": "1"
}
}

AvayaClientServices.min.js:1 [3/10/2021, 11:52:23 AM, UTC+01:00] VoiceMessagingService: Starting the service
AvayaClientServices.min.js:1 [3/10/2021, 11:52:23 AM, UTC+01:00] VoiceMessagingService: Service started successfully
AvayaClientServices.min.js:1 [3/10/2021, 11:52:23 AM, UTC+01:00] VoiceMessagingService: Service is available
AvayaClientServices.min.js:1 [3/10/2021, 11:52:23 AM, UTC+01:00] VoiceMessagingService: New voicemail number is null


Are we missing any configuration or must the number be stored in another parameter in AADS?
We haven't found any documentation on AAWG or JS Client SDK to configure the voicemail number.

The isMessageWaiting() function is working and delivers the correct state.

Thanks,
Daniel
AndreyPetrov012024
Joined: Mar 23, 2021
Messages: 1
Offline
Hi Daniel!

Sorry for the delay. Could you please describe how you configure services for the SDK? The SDK itself is intermediator here between your application and the service.
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
Hi petrov5,

well, at client side we configured sgConfiguration and acsConfiguration of the SDK/userconfiguration.
What do you mean with "how you configure service for the SDK"? Can you please more specific? Avaya Aura Web Gateway or Avaya Aura Device Service?

As I described we set the EC500VOICEMAILNUMBER parameter on AADS, and this works with Avaya Workplace but apparently not on JS SDK.

Configuration of client:


SofphoneAppConfig: {
WebgatewayConfig: {
server: "tkwebgw.megatech.local",
port: 443,
},
//Avaya Contact Service Config
ACSConfig: {
server: "aadsconfig.megatech.local",
port: 443,
}
}

function createNetworkProviderConfig(config) {
var si = new AvayaClientServices.Config.ServerInfo(config.server, config.port, true);
var networkConfig = new AvayaClientServices.Config.NetworkProviderConfiguration(si);
return networkConfig;
}

var userConfig = new AvayaClientServices.Config.UserConfiguration();

let callCredentialProv = new AvayaClientServices.Config.CredentialProvider(username, password);
userConfig.sgConfiguration.enabled = true;
userConfig.sgConfiguration.networkProviderConfiguration = createNetworkProviderConfig(SofphoneAppConfig.WebgatewayConfig);
userConfig.sgConfiguration.credentialProvider = callCredentialProv;

userConfig.callUserConfiguration.incomingCall = true;

const acsCredentialProvider = new AvayaClientServices.Config.CredentialProvider(username, password);
const acsConfiguration = userConfig.acsConfiguration;
acsConfiguration.enabled = true;
acsConfiguration.credentialProvider = acsCredentialProvider;
acsConfiguration.networkProviderConfiguration = createNetworkProviderConfig(SofphoneAppConfig.ACSConfig);

let sophouser = SoftphoneClient.createUser(userConfig);



I haven't found any information where the voicemail-number must be configured that JS SDK receives it from the backend services (AAWG, AADS, ...)
So, I think the question is, what we have to do to receive the VoiceMessage-Number via VoiceMessage-module of the JS SDK.


Daniel
AndreyPetrov012024
Joined: Mar 23, 2021
Messages: 1
Offline
Thanks, Daniel! That was it. Could you please tell if voicemail number is configured on the user's communication profile in CM?
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
Hi,

yes, voice mail number 249 is configured on cm profile. See System Manager screenshots attached.

  • [Thumb - CM-Profile.jpg]
[Disk] Download
  • [Thumb - User-Profile.jpg]
[Disk] Download
AndreyPetrov012024
Joined: Mar 23, 2021
Messages: 1
Offline
Thanks, I'll continue investigation.
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
Hi Andrey,

are there any updates of this issue/behavior?


Daniel
AndreyPetrov012024
Joined: Mar 23, 2021
Messages: 1
Offline
Hi Daniel,

Yes, but we're still in progress. Could you please provide AAWG for when the number is missing in response from the SDK?
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
Hi Andrey,

what do you mean with "provide AAWG"? Version, logs or something else?


We have updated the AAWG to following version:

AAWG-Version:
Avaya Aura Web Gateway Services
Version: 3.9.0.0.625
©2020 Avaya, Inc. All rights reserved.

Components:
CallSignallingAgent 3.9.0.0.625
keepalived 2.1.5
avCore-tomcat 8.5.57_1_dev_20200817_1312
avCore-mss 8.0.1
avCore-cassandra 3.11.3_dev_20181115_0813
nginx 1.18.0
net-snmp 5.7.3
spiritAgentrpm 7.1.2.0.5
acsService 8.1.3.6.625
csaService 3.9.0.0.625
ups-install 3.8.1.0.dev_20210212_1641
upc-install 3.9.0.0.dev_20210212_1644
swc-install 3.9.0.0.dev_20210209_1741
avCore-cas-common 6.4.5.0.625
avCoreServices 3.9.0.0.625



Since the update, I couldn't find anything in DevTools-Client SDK Logs with "voiceMailNumber".

The following log entry seems to be the same like in the first post, but the "voiceMailNumber"-Property is missing.

AvayaClientServices.min.js:1 [5/7/2021, 8:26:54 AM, UTC+02:00] CSGPresenceAndCallProvider: Ignoring telephony notification: [Id:undefined,Type:featureStatusChanged]
AvayaClientServices.min.js:1 [5/7/2021, 8:26:54 AM, UTC+02:00] NetworkProvider: CallGatewayProvider,
MESSAGE RECEIVED:,{
"notification": {
"application": "CSA",
"contents": {
"messageType": "EndpointConfigurationUpdate"
},
"resource": "https://tkwebgw.megatech.local:443/csa/bsid/73e4852c-36b9-4bc2-9cb7-fcd7539fbc00/resources/tenants/default/users/self/clients/73e4852c-36b9-4bc2-9cb7-fcd7539fbc00/calls",
"service": "telephony",
"version": "1"
}
}


So, do you need anything else?
Attached is the complete chrome devtools console log.


Daniel
Filename localhost-1620368836538.log [Disk] Download
AndreyPetrov012024
Joined: Mar 23, 2021
Messages: 1
Offline
Ouch, sorry, I mistyped, yes, I meant the logs from the AAWG.

Thanks for posting SDK logs. Unfortunately they're not much help since the SDK is only resend the message from AAWG in that case.
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
Hi Andrey,

yeah, no problem. Attached are the AAWG logs with log level "finest".
The TimeStamp is 10 May 2021 about 08:24 - 08:25.

For example in File "CAS.log" Line 170
FINE 10 May 2021 08:25:10,059 http-nio-8451-exec-8 com.avaya.cas.notification.client - (NotificationClient.java:237) Sending notification for CSA/telephony/f76cad6f-279c-414b-b702-5957007845db contents: {messageType=EndpointConfigurationUpdate, voiceMailNumber=null}


I hope you can find the necessary infos in the logs.

Thanks for your time
Daniel
Filename csa_logs-192.168.98.165-2021_05_10-08_25_19+0200.tar.gz [Disk] Download
AndreyPetrov012024
Joined: Mar 23, 2021
Messages: 1
Offline
Hi Daniel, many thanks, I got them to solution team, will post updates here as soon as they discover what went wrong.
AndreyPetrov012024
Joined: Mar 23, 2021
Messages: 1
Offline
Hi Daniel, sorry it taking so long, this issue is particularly hard to reproduce. Could you please do the following, log in as administrator in AAWG, go to AADS configuration, and purge local cache:

General Network Settings > Device Services > Clear the local copy of the device services data

And then reproduce the issue and collect the logs?
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
Hi Andrey,

I cleared the cache and reproduced the issue.
Log Level was set to finest, the userid is "dev.test1" and the timestamp I requested the voicemail number was on 18 May 2021 at about 09:07:23

If you need any infos of AADS or something else, so please contact me.

Have you any idea whe the number is not received? Can we test anything else or post further informations to support investigation?

Thanks
Daniel
Filename csa_logs-192.168.98.165-2021_05_18-09_09_03+0200.tar.gz [Disk] Download
AndreyPetrov012024
Joined: Mar 23, 2021
Messages: 1
Offline
Hi Daniel! Thank you for your invaluable help. Sorry, I cannot tell what is causing the issue yet, need to talk to responsible people first. Will post an update shortly.
Go to:   
Mobile view