Compare commits
No commits in common. "d80cd34a887e7e64a01d78e5c3309e34c46b9676" and "4f7ecfa5a3b83f612b96841787fd06e5b4ff1472" have entirely different histories.
d80cd34a88
...
4f7ecfa5a3
@ -3,19 +3,21 @@ 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();
|
||||||
|
|
||||||
// play audio
|
// pause for some time
|
||||||
twiml.play('https://buzzer-2439-prod.twil.io/buzzing_up_boosted.mp3');
|
twiml.pause({ length: 1 });
|
||||||
|
|
||||||
// press digit
|
// press digit
|
||||||
twiml.play({ digits: config.pressKey }); // configured in doorman what button to click and passed into this function
|
twiml.play({ digits: config.pressKey }); // configured in doorman what button to click and passed into this function
|
||||||
|
|
||||||
// pause
|
// play audio
|
||||||
|
twiml.play('https://buzzer-2439-prod.twil.io/buzzing_up_boosted.mp3');
|
||||||
|
|
||||||
|
// pause again
|
||||||
twiml.pause({ length: 1 });
|
twiml.pause({ length: 1 });
|
||||||
|
|
||||||
// exit
|
// exit
|
||||||
twiml.hangup();
|
twiml.hangup();
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return twiml;
|
return twiml;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,9 +78,6 @@ export const EditPage = () => {
|
|||||||
valueAsNumber: true,
|
valueAsNumber: true,
|
||||||
})} />
|
})} />
|
||||||
</FormField>
|
</FormField>
|
||||||
<FormField label="Unlock key" constraintText="Key to press to buzz up on Intercom">
|
|
||||||
<input {...register("pressKey")} />
|
|
||||||
</FormField>
|
|
||||||
<FormField
|
<FormField
|
||||||
errorText={fallbackNumbersError}
|
errorText={fallbackNumbersError}
|
||||||
label="Fallback numbers"
|
label="Fallback numbers"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user