// a modern sip stack
SIP without the hangover.
A modern SIP stack for voice apps and AI agents.
npm install usestraw
# answer the phone from Node
$ npm install usestraw
$ STRAW_DEBUG=1 node agent.ts
● online for 600 s
● call incoming from sip:[email protected]
● call live PCMU to 198.51.100.7:18610
-
Built for developers
Calls are plain data. Audio is Web Streams.
-
Voice for the next generation
Any TransformStream can answer, so your AI agent can too.
-
Open source
MIT licensed, zero dependencies.
import { connect } from "usestraw"
const phone = await connect(process.env.SIP_URL)
for await (const call of phone.incoming) {
void call.accept(new TransformStream()) // callers hear themselves
}
The whole app
Put your voice agent where the TransformStream is, and it answers the phone. Calling out works like fetch, and every call says why it ended.
Runs in Node 22.12 and up, and in browsers over WebSocket and WebRTC. Node speaks G.711, without SRTP. No DTMF, hold or transfer yet. All limits