rm crzero
parent
7ca486acba
commit
139ef1f88d
|
@ -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' }));
|
||||
}
|
||||
}
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue