From e978289165a51bdc37ff6cef3fb1d9914efec41e Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 1 Dec 2020 19:23:45 -0500 Subject: [PATCH] fixes --- src/class/PBX.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/class/PBX.ts b/src/class/PBX.ts index 7d0cf14..d95cd44 100644 --- a/src/class/PBX.ts +++ b/src/class/PBX.ts @@ -33,7 +33,7 @@ export default class PBX { await channel.play({ media: 'sound:please-enter-the-pn', }, undefined); - channel.on('ChannelDtmfReceived', async (ev, chan) => { + channel.on('ChannelDtmfReceived', async (ev) => { if (status === 0) { if (ev.digit === '#') { await channel.play({ @@ -60,13 +60,13 @@ export default class PBX { try { const ch = await this.client.getDMChannel(member.userID); if (ch) { - ch.createMessage(`***Error Occurred over PBX Paging:*** ${page.message}`); + ch.createMessage(`***An error has occurred while trying to process your page request over the PBX.***\n*${page.message}*\n\nPlease check your parameters and try again.`); } } catch { this.client.util.handleError(new Error(page.message)); } const playback = await channel.play({ - media: 'sound:an-error-has-occurred', + media: 'sound:request-error', }, undefined); playback.on('PlaybackFinished', () => channel.hangup()); }