rm crzero

pull/29/head
Matthew 2020-12-02 00:00:38 -05:00
parent 7ca486acba
commit 139ef1f88d
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 0 additions and 19 deletions

View File

@ -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' }));
}
}

View File

@ -2,5 +2,4 @@
export { default as Misc } from './actions/Misc'; export { default as Misc } from './actions/Misc';
// Handlers // Handlers
export { default as CRZero } from './handlers/CRZero';
export { default as PageDTMF } from './handlers/PageDTMF'; export { default as PageDTMF } from './handlers/PageDTMF';