### Install and Run Project Source: https://github.com/frejun-tech/integration-workflow-examples/blob/main/voip-dialer-widget/README.md Install dependencies and run the development server. Create a .env file with your OAuth credentials. ```bash npm install npm run dev # opens http://localhost:5173 ``` ```dotenv VITE_CLIENT_ID="" VITE_CLIENT_SECRET="" ``` -------------------------------- ### Initialize and Start Softphone Web SDK Source: https://context7.com/frejun-tech/integration-workflow-examples/llms.txt Initializes the Softphone SDK, logs in with OAuth, and starts the softphone with event listeners and audio elements. Ensure the necessary HTML audio elements are present. ```javascript import { Softphone } from '@frejun/softphone-web-sdk'; let softphone = null; let isMuted = false; let isOnHold = false; async function startSoftphone(accessToken, email) { softphone = new Softphone(); // Authenticate the softphone session await softphone.login({ type: 'OAuth2.0', token: accessToken, email }); const audioElements = { remote: document.getElementById('sip-remote-audio'), //