t>
      let device;

      // Fetch the Twilio token from the backend
      async function getToken() {
        const response = await fetch("http://localhost:3000/token");
        const data = await response.json();
        return data.token;
      }

      // Initialize Twilio Client Device with token
      async function initializeDevice() {
        const token = await getToken();

        device = new Twilio.Device(token, {
          debug: true,
        });

        device.on("ready", () => {
        