call-gpt icon indicating copy to clipboard operation
call-gpt copied to clipboard

<Record> Flag on TwiML not working.

Open mercuryyy opened this issue 9 months ago • 0 comments

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

mercuryyy avatar May 23 '24 02:05 mercuryyy