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; }