call-gpt
call-gpt copied to clipboard
<Record> Flag on TwiML not working.
So i tried few combination from - https://www.twilio.com/docs/voice/twiml/stream
I tried having the <Record> flag set in different location while editing app.js, either errors the app, or does not record on Twilio.
app.post('/incoming', (req, res) => {
res.status(200);
res.type('text/xml');
res.end(`
<Response>
// tried here
<Connect>
// tried here
<Stream url="wss://${process.env.SERVER}/connection" Record="true" />
<Record transcribe="true" playBeep="false" />
</Connect>
</Response>
`);
});