TP-89230 | callid and dispose call
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user