Merge pull request #26 from navi-commons/NTP-15328/beep-sound-addition
NTP-15328 | beep sound addition
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## 1.0.92 (2024-12-24)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/adapter-ameyo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 1.0.91 (2024-12-23)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/adapter-ameyo
|
||||
|
||||
@@ -129,6 +129,11 @@ class AmeyoAdapter implements IAdapter {
|
||||
|
||||
}
|
||||
|
||||
|
||||
_getElementFromDomById = (elementId: string): HTMLElement | null => {
|
||||
return document.getElementById(elementId);
|
||||
};
|
||||
|
||||
_onListenForCorsBypassResponse = (payload: GenericObject) => {
|
||||
if(payload?.data?.requestKey !== RequestKeys.AMEYO_HEARTBEAT && !payload?.data?.err) {
|
||||
this.metricProcessor.pushCounterMetric({
|
||||
@@ -235,6 +240,8 @@ class AmeyoAdapter implements IAdapter {
|
||||
this.currentCallState = CALL_STATES.CALL_DISCONNECTED;
|
||||
ameyoHangupUser(this.sessionId, this.currentCallMetadata?.userCRTObjectId);
|
||||
this.currentCallMetadata = {...this.currentCallMetadata, ...data?.data}
|
||||
(this._getElementFromDomById("beep") as HTMLAudioElement)?.play();
|
||||
|
||||
}
|
||||
if (data?.type === MessagingType.ON_AMEYO_AGENT_ON_BREAK) {
|
||||
this.isAgentAvailable = false;
|
||||
@@ -436,6 +443,10 @@ class AmeyoAdapter implements IAdapter {
|
||||
id: 'dtmfTone',
|
||||
src: 'https://public-assets.np.navi-gi.in/jarvis/dtmf.wav',
|
||||
});
|
||||
createElement("audio", {
|
||||
id: "beep",
|
||||
src: "https://public-assets.np.navi-gi.in/jarvis/beep.wav",
|
||||
});
|
||||
const onSipSetupReadyEvent = new CustomEvent('onSipSetupReady', {
|
||||
detail: {message: 'Custom page loaded event triggered'}
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@universal-call-sdk/adapter-ameyo",
|
||||
"version": "1.0.91",
|
||||
"version": "1.0.92",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -9,7 +9,7 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@universal-call-sdk/common": "^1.0.42"
|
||||
"@universal-call-sdk/common": "^1.0.43"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.11.1",
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## 1.0.43 (2024-12-24)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/common
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 1.0.42 (2024-12-23)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/common
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@universal-call-sdk/common",
|
||||
"version": "1.0.42",
|
||||
"version": "1.0.43",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## 1.0.48 (2024-12-24)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 1.0.47 (2024-12-23)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/core
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@universal-call-sdk/core",
|
||||
"version": "1.0.47",
|
||||
"version": "1.0.48",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
Reference in New Issue
Block a user