
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
stacklab-voip-api
Advanced tools
API para integração com servidores VOIP/SIP.
npm install wavoip-api
import Wavoip from 'wavoip-api';
const wavoip = new Wavoip();
// Configuração do servidor SIP
const config = {
websocketURL: 'wss://seu-servidor-sip.com:8089', // Opcional - URL do websocket
sipConfig: {
uri: 'sip:usuario@seu-servidor-sip.com', // URI SIP do usuário
password: 'senha-do-usuario', // Senha do usuário
websocketUri: 'wss://seu-servidor-sip.com:8089/ws', // URI do websocket SIP
},
};
// Conectar ao servidor
const connection = wavoip.connect('seu-device-token', config);
// Eventos disponíveis
connection.socket.on('connect', () => {
console.log('Conectado ao servidor');
});
connection.socket.on('disconnect', reason => {
console.log('Desconectado do servidor:', reason);
});
// Métodos disponíveis
connection.getCurrentDeviceStatus(); // Obtém o status atual do dispositivo
connection.getCurrentQRCode(); // Obtém o QR Code atual
connection.callStart(params); // Inicia uma chamada
connection.endCall(); // Finaliza a chamada atual
connection.acceptCall(); // Aceita uma chamada recebida
connection.rejectCall(); // Rejeita uma chamada recebida
connection.mute(); // Ativa o mudo
connection.unMute(); // Desativa o mudo
websocketURL
: URL do servidor websocket (opcional)sipConfig.uri
: URI SIP do usuário (ex: sip:usuario@servidor.com)sipConfig.password
: Senha do usuáriosipConfig.websocketUri
: URI do websocket SIPMIT
FAQs
API para integração com servidores VOIP/SIP
The npm package stacklab-voip-api receives a total of 59 weekly downloads. As such, stacklab-voip-api popularity was classified as not popular.
We found that stacklab-voip-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.