On November 22, Pipecat shipped version 1.17 with a native SIP transport built on baresip-python. The change reads like a line in a release note, but it moves a surprising amount of your stack. A bot can now register with any SIP server, receive and place calls, and exchange audio and DTMF with no websocket serializer, no public HTTPS endpoint, and no media-streams plumbing in between. The Daily or Twilio bridge you used to lean on becomes optional.
That is a good change. It is also a change in what you are testing. When your agent was a WebSocket endpoint behind a carrier bridge, SIP state was someone else's problem. REGISTER, NAT keepalive, DTMF timing, REFER semantics, concurrent call bookkeeping. Now those live in your process, in your logs, and in your failure modes. If your test matrix still looks like "connect, say hello, hang up", half the things that can go wrong will not fire until a customer is on the line. We have written before about what happens when a SIP carrier swap quietly changes the audio and signaling under your agent; owning the SIP stack is the same class of risk amplified, because now the code that used to be in the carrier's data center is in your repo.

What actually changed under your bot
Pipecat is not the only framework heading this direction. Plivo Labs published a shared SIP/RTP agent transport that lets a LiveKit or Pipecat bot register with any SIP provider and place calls over RTP. Dograh's walkthrough notes the same shift: the new SIPTransport answers dial-in calls, places dial-out calls, and supports DTMF in both directions, hold, and SIP REFER to pass a call on. The pattern is a voice agent framework turning itself into a first-class SIP user agent, not a WebSocket client that a telephony vendor happens to drive.
The surface area you inherit is concrete. Registration with a registrar, including refresh cadence and NAT keepalive. Call-ID management when a bot restarts or an account is shared across multiple connections. A jitter buffer that Pipecat has tuned tighter than the baresip default. DTMF generation and detection. REFER for blind and attended transfers. Route headers when a registered account dials outside its domain. None of this used to show up in your logs.
The question the next section answers: which of these failure modes are worth building a repeatable test for, and what does the test actually look like.
Registration drift is the first thing that will bite you
The registration path is not stateless. Pipecat 1.17 includes a fix that makes multiple SIPConnections on one account share a single REGISTER, because each connection was calling ua.register() and the stack was replacing the account's registration every time. A replaced registration sends a REGISTER with expires=0, which a registrar can treat as a dropped binding. The bug was invisible on one call. It showed up on concurrent calls to a shared account, which is exactly the shape of a production agent.
Three tests pull their weight here.
- Register, hold, refresh. Open a call, keep it open past the registration interval, verify the far end's BYE actually reaches the bot. This is not academic. On a 12-minute call placed from a Daily SIP client directly to a Twilio trunk over TLS, the connection was dropped on the way and the far end's BYE never arrived, so the bot stayed in the call until its idle timeout. The fix routes a registered account's calls through its registrar so the registration refresh keeps one connection alive. If your test never runs past the registration interval, you never see the problem.
- Shared account, concurrent calls. Fire three inbound calls at the same account inside the same second. All three should be answered, and the registrar should see one REGISTER, not three. The Pipecat fix adds a unit test where three connections connecting at once plus one later send one register request and all report registered. That is the exact shape of the production assertion you want.
- Restart with a stale binding. Kill the bot mid-call, bring it back, place a new call. The expected behavior is that a fresh Call-ID re-REGISTER replaces the stale binding with a 200 and no 503 stacking. If your agent is deployed with a rolling restart, this is a weekly event.

DTMF now lives in your audio pipeline
When the carrier bridge owned DTMF, you received events. With a native SIP transport, DTMF is RFC 2833 (or 4733) frames inside your audio pipeline, and you emit the same thing outbound. Both directions have their own failure modes.
Inbound DTMF failures are usually detection timing. Callers press a digit, the bot is still speaking, the barge-in logic throws away the frames carrying the digit. You end up with a test that passes the first try (silent caller presses "2") and fails in production (caller presses "2" while the agent reads the menu). Build the test with the agent still speaking when the digit arrives. Measure both detection latency and whether the agent's TTS is actually cancelled, not just paused.
Outbound DTMF is worse, because the failures are silent. You dial an IVR, you send digits, the IVR does not respond, and you have no idea whether it was the digit duration, the inter-digit gap, the RFC 2833 payload type negotiation, or the fact that your trunk re-encoded the audio and smeared the tones. The test needs a real IVR on the far side and an assertion against the IVR's response, not a log check in your own process. Roark's simulation testing dials your agent over real PSTN and WebRTC, which means the test exercises the RTP path end to end rather than mocking it.
REFER is where attended transfers die quietly
Blind transfers are mostly fine. The agent sends REFER, the far end sends 202 Accepted, the agent drops the call. Attended transfers are not fine. The agent is expected to hold the first call, dial the destination, complete the consultation, then send the REFER with a Replaces header. That is three SIP dialogs, two sets of NOTIFY messages, and a fallback path when the destination never picks up.
The tests that matter:
- Blind REFER with a working destination. 202 Accepted, bye-bye.
- Blind REFER where the destination rings and nobody answers. The agent should recover and tell the caller, not sit mute.
- Attended REFER with Replaces. Full three-way dialog state. Verify the first caller ends up connected to the destination, not to a dropped leg.
- REFER refused. Some registrars return a 405 for unregistered targets. The agent should surface the failure to the caller cleanly.

The failure mode worth watching for is the half-landed transfer: REFER goes out, the caller hears "transferring you now", the agent stops listening, and the far end never picks up. The caller is talking to no one. You cannot catch this from transcripts alone, because the transcript ends at the moment the agent went silent. You need to score the call on dead air after the transfer intent, which is an audio-native metric, not a text one.
The jitter buffer change is a latency test, not a vibe check
Pipecat's new jitter buffer is tighter than the baresip default. A tighter de-jitter window should cut turn latency on SIP calls, at the cost of less cushion before packets are considered late. That makes you more sensitive to upstream jitter spikes, which is the kind of regression you want measured, not guessed at.
Two things to test when you adopt the native transport:
- Baseline end-of-utterance to first-token-of-audio latency, measured over the SIP path, not the WebRTC path. If you were tuning against a WebRTC bridge, your p50 and p95 numbers move. Capture the new baseline before you ship.
- Degraded network behavior. Inject packet loss and jitter on the RTP path and measure how often the bot produces audio glitches, late turn-takes, or cut-off words. The tighter buffer trades resilience for responsiveness. We covered the shape of that tradeoff in testing voice AI agents under packet loss and jitter; the same methodology applies here, but the buffer values and the failure modes shift when the RTP endpoint is your bot instead of a carrier bridge.
Neither is a unit test. Both want a test harness that dials the bot over real telephony, records the audio, and scores it against audio-native metrics (pronunciation, pace and pauses, interruptions, dead air). Roark's audio-native models score the sound of the call, not just the transcript, which is the right instrument for a jitter-buffer regression.
Sip trace in logs is a compliance problem
A pragmatic one. The Pipecat SIP transport exposes sip_trace, which logs every SIP message verbatim, including SDP that contains digest-auth material and is explicitly flagged as not for production. It is the right tool for debugging and the wrong tool for production. If your agent ships logs to a SaaS, your SIP password is in them.
The test here is a log-scan test. On every build, boot the agent with production-like configuration and grep the logs for the strings that should never appear: Authorization: Digest, your SIP password, your trunk credentials. Fail the build if they do. This is the kind of regression that stays fixed until someone adds a debug flag "just for one incident" and forgets to remove it.
Where simulation fits
Every test above has one thing in common. It is useless unless the test actually drives SIP. A WebSocket mock will not surface registration drift, will not surface DTMF timing, will not surface REFER state, will not surface jitter-buffer regressions. You need a caller that dials your bot's SIP endpoint over PSTN or SIP, holds the call long enough to matter, presses digits, hangs up at the wrong time, and does it on the schedule your CI runs.
That is where Roark's simulation testing fits. Simulations dial your agent over real phone calls and WebRTC, built from personas, scenarios, run plans, and schedules, and can be triggered automatically over HTTP so runs can gate CI. The personas carry distinct voices, accents, speech pace, emotional register, and background noise, which matters for native SIP specifically, because codec choice and packet loss interact with how the ASR hears a stressed or accented caller. When a run fails, the failure files as an issue against the metric it missed, and the call becomes a replayable regression test, which is the right shape for a protocol-sensitive feature like native SIP. The one-click Pipecat integration is documented at docs.roark.ai.
The migration pattern we would recommend if you are moving from a bridge to native SIP:
- Build a baseline simulation suite against your current bridge-based agent. Latency, DTMF success, transfer success, dead air, caller sentiment.
- Stand up the native SIP agent behind the same phone number or a parallel one.
- Run the same suite. Compare. The deltas are your actual migration risk, not the ones you imagined.
- Keep the suite on a schedule. The first regression after the migration will come from a dependency bump, not from code you wrote.
What to take away
Pipecat 1.17 is a quiet release that moves a loud amount of responsibility. The native SIP transport is the right architecture for a voice agent that wants control of its own telephony, and the ecosystem (Plivo Labs' shared transport, LiveKit's SIP work, the Kamailio and FreeSWITCH examples) is converging on the same pattern. The protocol state that the bridge used to hide is now yours. Test it like you own it, because you do.
If your current test suite does not cover registration refresh, concurrent calls on a shared account, inbound and outbound DTMF, REFER, the jitter-buffer baseline, and a log-scan for credential leaks, those are the seven tests to add before you ship a native-SIP agent. Dial them on real telephony, score them on audio-native metrics, and keep them running after launch. The failures you would rather hear about from a scheduled simulation at 3 AM than from a customer at 9 AM.

