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: how to receive voicemail number via getVoiceMessaging()?   XML
 
Author Message
DanielStingl



Joined: 20/11/2013 08:10:44
Messages: 27
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

This message was edited 3 times. Last update was at 10/03/2021 06:12:41

petrov5@avaya.com



Joined: 23/03/2021 07:28:52
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: 20/11/2013 08:10:44
Messages: 27
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
AndreyPetrov



Joined: 24/03/2021 08:39:18
Messages: 3
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: 20/11/2013 08:10:44
Messages: 27
Offline

Hi,

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

[Thumb - CM-Profile.jpg]
 Filename CM-Profile.jpg [Disk] Download
 Description No description given
 Filesize 96 Kbytes
 Downloaded:  37 time(s)

[Thumb - User-Profile.jpg]
 Filename User-Profile.jpg [Disk] Download
 Description No description given
 Filesize 63 Kbytes
 Downloaded:  35 time(s)

AndreyPetrov



Joined: 24/03/2021 08:39:18
Messages: 3
Offline

Thanks, I'll continue investigation.
DanielStingl



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

Hi Andrey,

are there any updates of this issue/behavior?


Daniel
AndreyPetrov



Joined: 24/03/2021 08:39:18
Messages: 3
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: 20/11/2013 08:10:44
Messages: 27
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
 Description complete chrome devtools console log
 Filesize 94 Kbytes
 Downloaded:  0 time(s)

 
 
Go to: