
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-softphone-lite
Advanced tools
npm install --save react-softphone
import React from 'react'
import SoftPhone from 'react-softphone'
import { WebSocketInterface } from 'jssip';
const config = {
domain: 'sip-server@your-domain.io', // sip-server@your-domain.io
uri: 'sip:sip-user@your-domain.io', // sip:sip-user@your-domain.io
password: 'secret', // PASSWORD ,
ws_servers: 'wss://sip-user@your-domain.io:8089/ws', //ws server
sockets: new WebSocketInterface('wss://sip-server@your-domain.io:8089/ws'),
display_name: '***',//jssip Display Name
debug: false // Turn debug messages on
};
const setConnectOnStartToLocalStorage =(newValue)=>{
// Handle save the auto connect value to local storage
return true
}
const setNotifications =(newValue)=>{
// Handle save the Show notifications of an incoming call to local storage
return true
}
const setCallVolume =(newValue)=>{
// Handle save the call Volume value to local storage
return true
}
const setRingVolume =(newValue)=>{
// Handle save the Ring Volume value to local storage
return true
}
function App() {
return (
<div className="App">
<header className="App-header">
<SoftPhone
callVolume={33} //Set Default callVolume
ringVolume={44} //Set Default ringVolume
connectOnStart={false} //Auto connect to sip
notifications={false} //Show Browser Notification of an incoming call
config={config} //Voip config
setConnectOnStartToLocalStorage={setConnectOnStartToLocalStorage} // Callback function
setNotifications={setNotifications} // Callback function
setCallVolume={setCallVolume} // Callback function
setRingVolume={setRingVolume} // Callback function
timelocale={'UTC+3'} //Set time local for call history
/>
</header>
</div>
);
}
export default App;

MIT © prinze77
This hook is created using create-react-hook.
FAQs
Webrtc Softphone React
The npm package react-softphone-lite receives a total of 16 weekly downloads. As such, react-softphone-lite popularity was classified as not popular.
We found that react-softphone-lite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.