NTP-15303 | transfer diconnect event addition

This commit is contained in:
Mayank Singh
2024-11-29 15:21:32 +05:30
parent 480f7c4f61
commit e4941ef265
2 changed files with 10 additions and 0 deletions

1
.npmrc
View File

@@ -0,0 +1 @@
registry=http://localhost:4873/

View File

@@ -43,6 +43,7 @@ let http = createRequestObject();
enum pushResponseTypes {
UserCallModelUpdatedPush = 'UserCallModelUpdatedPush',
CustomerCallMemberUpdatedPush = 'CustomerCallMemberUpdatedPush',
CRMCreateNotifyPush = 'CRMCreateNotifyPush',
UserCCRuntimeUpdatedPush = 'UserCCRuntimeUpdatedPush',
UserLoggedOffPush = 'UserLoggedOffPush'
@@ -85,6 +86,14 @@ function extractUserCallModelUpdatedPush(rawResponse) {
res = jsonData;
sendCallStatusMessage(res);
}
if (jsonData.pushType === pushResponseTypes.CustomerCallMemberUpdatedPush) {
const payload = jsonData?.data;
// handle for transfer call
if (payload?.isDisposing &&
payload?.associationType === 'transfer.association' &&
payload?.status === 'hungup')
sendCallStatusMessage(jsonData);
}
if (jsonData.pushType === pushResponseTypes.UserCCRuntimeUpdatedPush) {
const payload = jsonData?.data;
//handle ameyo erroronous condition