usestraw

// a modern sip stack

SIP without the hangover.

A modern SIP stack for voice apps and AI agents.

npm install usestraw
Read the docs
The usestraw mascot, a smiling glass with a straw
~/voice-app zsh
# 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
agent.ts
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