TP-89230 | callid and dispose call

This commit is contained in:
Mayank Singh
2024-11-25 07:50:06 +05:30
parent 50df4d7051
commit 3c96f53665
2 changed files with 3 additions and 3 deletions

View File

@@ -70,8 +70,8 @@ function extractUserCallModelUpdatedPush(rawResponse) {
if (jsonData?.pushType === pushResponseTypes.CRMCreateNotifyPush) {
const crtObjectId = jsonData?.data?.crtObjectId;
const parsedObject = parseQuerystring(jsonData?.data?.crmURL);
const userCRTObjectId = parsedObject?.userCrtObjectId?.replace('%40', '@');
userCRTObjectId.replace('%40', '@');
let userCRTObjectId = parsedObject?.userCrtObjectId?.replace('%40', '@');
userCRTObjectId = userCRTObjectId.replace('%40', '@');
const phoneNumber = parsedObject?.phone;
const lan = parsedObject?.loanaccountnumber;
const callId = parsedObject?.unique_id;

View File

@@ -167,7 +167,7 @@ class AmeyoAdapter implements IAdapter {
}
if (data?.type === MessagingType.ON_AMEYO_CALL_DISCONNECTED) {
this.callbacks.onCallDisconnected(data?.data);
ameyoHangupUser(this.sessionId, this.currentCallMetadata?.crtObjectId);
ameyoHangupUser(this.sessionId, this.currentCallMetadata?.userCRTObjectId);
this.currentCallMetadata = {...this.currentCallMetadata, ...data?.data}
}
if (data?.type === MessagingType.ON_AMEYO_AGENT_ON_BREAK) {