change back to audio first
This commit is contained in:
parent
95f84ff9a7
commit
d80cd34a88
@ -3,21 +3,19 @@ import { InfoResponseClient } from '../../../doorman-api/src/functions/api/door/
|
|||||||
|
|
||||||
export function doorOpenTwiml(config: InfoResponseClient): VoiceResponse {
|
export function doorOpenTwiml(config: InfoResponseClient): VoiceResponse {
|
||||||
const twiml = new Twilio.twiml.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
|
// play audio
|
||||||
twiml.play('https://buzzer-2439-prod.twil.io/buzzing_up_boosted.mp3');
|
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 });
|
twiml.pause({ length: 1 });
|
||||||
|
|
||||||
// exit
|
// exit
|
||||||
twiml.hangup();
|
twiml.hangup();
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return twiml;
|
return twiml;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user