ementById("hangupButton").disabled = true;
          document.getElementById("callButton").disabled = false;
        });

        device.on("connect", () => {
          console.log("Call connected.");
          document.getElementById("status").textContent = "Connected";
          document.getElementById("hangupButton").disabled = false;
          document.getElementById("callButton").disabled = true;
        });
      }

      // Make a call
      document.getElementById("callButton").onclick = () => {
   