diff --git a/src/pbx/handlers/CRZero.ts b/src/pbx/handlers/CRZero.ts deleted file mode 100644 index 5abbe71..0000000 --- a/src/pbx/handlers/CRZero.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* eslint-disable consistent-return */ -import ARI from 'ari-client'; -import { Handler, PBX } from '../../class'; - -export default class CRZero extends Handler { - constructor(pbx: PBX) { - super(pbx); - this.app = 'cr-zero'; - this.options = { available: true }; - } - - public async run(event: ARI.Event, channel: ARI.Channel) { - const playback = await channel.play({ - media: 'sound:pbx-transfer', - }, undefined); - playback.once('PlaybackFinished', () => channel.move({ app: 'page-dtmf' })); - } -} diff --git a/src/pbx/index.ts b/src/pbx/index.ts index bd48785..646977b 100644 --- a/src/pbx/index.ts +++ b/src/pbx/index.ts @@ -2,5 +2,4 @@ export { default as Misc } from './actions/Misc'; // Handlers -export { default as CRZero } from './handlers/CRZero'; export { default as PageDTMF } from './handlers/PageDTMF';