sip-node-2026
v0.1.1
Published
Node.js bindings for the sip-core library
Readme
sip-node-2026
A blazing-fast, memory-safe, pure-Rust SIP engine packaged for Node.js.
This package is a drop-in native binding to sip-core-2026, providing full SIP/SDP protocol capabilities, state-machine transaction management, and automated event loops directly inside Node.js.
Installation
npm install sip-node-2026Usage
const sip = require('sip-node-2026');
async function run() {
// Start the SIP User Agent
const ua = new sip.NodeUserAgent("127.0.0.1:0");
console.log(`UserAgent running on: ${ua.localAddr}`);
// Place a call
try {
const callKey = await ua.makeCall("sip:[email protected]:5060", null);
console.log(`Call placed! Transaction Key:`, callKey);
} catch (e) {
console.error("Failed to place call:", e);
}
}
run();Features
- 100% Feature Complete: Call setup, teardown, hold, resume, and transfer.
- DTMF Support: Send RFC 4733 standard DTMF tones to navigate IVR menus.
- Safe & Fast: No C/C++ memory leaks or segfaults; backed entirely by Rust's Tokio runtime.
- TypeScript Support: Ships with full
index.d.tstyping.
For full architecture details, check out the core repository.
