Author Message
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
This questions was extracted from a previous post because of asking two questions in one post.

Hi,

if the user has a physical phone the JS SDK is not notifying any event handlers on incoming calls because of a "principal call" (isRemote = true).

How can we be notified by the JS SDK for an incoming "isRemote=true" call?


Thanks
Daniel
urban52
Joined: Mar 5, 2020
Messages: 4
Offline
Hello DanielStingl,

We are analyzing the described problem. Which Javascript SDK version are you using?

Rodrigo,
Avaya DevConnect support team.
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
Hi Rodrigo,

we are using Version 4.5.0.1 (Build 1)

Thanks
Daniel
urban52
Joined: Mar 5, 2020
Messages: 4
Offline
Hi DanielStingl,

You can get notified by the JS SDK for an incoming "isRemote=true" call when the onCallCreatedCallback is fired. There you can check if it's remote with call.isRemote()



Rodrigo
DanielStingl
Joined: Nov 20, 2013
Messages: 41
Offline
Hi Rodrigo,

I checked your suggestion and can't reproduce that.
onCallCreatedCallback is not notified on remote call which is on alerting mode. If the call is accepted on the physical phone, the call switches to state established and then onCallCreatedCallback is fired.

But it is not fired if the call is ringing on the physical phone and the JS SDK is connected too.

I set the log level in js console to verbose and following was logged:

[9/8/2020, 11:43:57 AM] NetworkProvider: CallGatewayProvider,
MESSAGE RECEIVED:,{
"notification": {
"application": "CSA",
"contents": {
"messageType": "featureStatusChanged",
"messageDataType": "application/vnd.avaya.featureStatus.v1+json",
"messageData": "{\"featureStatusList\":[{\"featureStatus\":{\"name\":\"TEAM\",\"status\":\"ON\",\"owner\":\"XXX@mydomain.de\",\"destination\":null,
\"destinationShortForm\":null,\"enhancedCallForwardingParameters\":null,\"groupCallPickupParameters\":null,\"teamFeatureParameters\":
{\"callInfoList\":[{\"callId\":\"8422\",\"isAlerting\":true,\"callingName\":\"Test, Test1\",\"callingNumber\":\" \",\"calledName\":\"Test, Test2\",\"calledNumber\":\" \"}]
,\"delayedRinger\":10,\"ringCount\":1,\"idle\":true}}}]}"
},
"resource": "https://tkwebgw:443/csa/bsid/62f6dfd8-cbaf-4158-aff2-1bd93e5d6727/resources/tenants/default/users/self/clients/62f6dfd8-cbaf-4158-aff2-1bd93e5d6727/calls",
"service": "telephony",
"version": "1"
}
}

AvayaClientServices.min.js:931 [9/8/2020, 11:43:57 AM] CSGPresenceAndCallProvider: Ignoring telephony notification: [Id:undefined,Type:featureStatusChanged]





If the physical phone is logged out and the JS SDK is the only connected softphone, after the above log messages the SDK receive a "callIncoming" message:


NetworkProvider: CallGatewayProvider,
MESSAGE RECEIVED:,{
"notification": {
"application": "CSA",
"contents": {
"callId": "f22ebc63-d338-4547-be63-6b4cfd719be5",
"messageType": "callIncoming",
"messageDataType": "application/vnd.avaya.csa.callaction.v1+json",
"messageData": "{\"action\":\"INITIAL_MEDIA\",\"actionDetails\":{\"targetCallId\":\"REMOVED\",\"targetRemoteAddress\":\"REMOVED\",\"subject\":null,\"participants\":
...



So I think the WebGateway is not notifying the client or am I wrong?

Thanks
Daniel
Go to:   
Mobile view