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