From d80cd34a887e7e64a01d78e5c3309e34c46b9676 Mon Sep 17 00:00:00 2001 From: Martin Dimitrov Date: Thu, 29 May 2025 22:22:20 -0700 Subject: [PATCH] change back to audio first --- packages/doorman-client/src/utils/TwimlUtils.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/doorman-client/src/utils/TwimlUtils.ts b/packages/doorman-client/src/utils/TwimlUtils.ts index 56bd547..839b653 100644 --- a/packages/doorman-client/src/utils/TwimlUtils.ts +++ b/packages/doorman-client/src/utils/TwimlUtils.ts @@ -3,21 +3,19 @@ import { InfoResponseClient } from '../../../doorman-api/src/functions/api/door/ export function doorOpenTwiml(config: InfoResponseClient): VoiceResponse { const twiml = new Twilio.twiml.VoiceResponse(); - - // pause for some time - twiml.pause({ length: 1 }); - - // press digit - twiml.play({ digits: config.pressKey }); // configured in doorman what button to click and passed into this function - + // play audio twiml.play('https://buzzer-2439-prod.twil.io/buzzing_up_boosted.mp3'); - // pause again + // press digit + twiml.play({ digits: config.pressKey }); // configured in doorman what button to click and passed into this function + + // pause twiml.pause({ length: 1 }); - + // exit twiml.hangup(); + // @ts-ignore return twiml; }