SIP Message Diff
Compare two SIP messages
header by header
Paste the same message from two points in the path — before and after an SBC, or from a working call and a failing one — and see what was added, removed or rewritten: the start line, every header, and the SDP body. Deterministic, free, nothing stored.
No account · nothing stored · no AI call
What it compares
Every header, matched by name instead of by line
A text diff of two SIP messages is mostly noise, because header order and spelling vary between stacks. This comparison parses both messages first.
| Part | How it is compared |
|---|---|
start line | The request line or status line of each message. A rewritten Request-URI is where number manipulation and routing rules show up. |
header names | Matched case-insensitively, with compact forms expanded: v is Via, i is Call-ID, m is Contact, f and t are From and To. |
changed | The header is in both messages with a different value. Both values are shown side by side. |
only in A / only in B | A header that one hop removed or added: a stripped Identity or P-Asserted-Identity, an added Record-Route or Session-Expires. |
repeated headers | Via, Route and Record-Route values are compared as an ordered list, since their order is the path. |
folded lines | A header continued on the next line is joined before comparing, so line wrapping alone is never reported as a change. |
body | Lines found only in one body are listed for each side: a rewritten c= address, a new media port, codecs removed from the m= line. |
offer and answer | When A is a request and B a response and both carry SDP, the offer/answer rules are applied as well. |
Where it helps
Three comparisons that find the cause
Each needs two captures of the same kind of message, taken at different points or times.
Before and after the SBC
The ingress and egress copies of one INVITE show every rewrite: Request-URI,
From and P-Asserted-Identity, Contact, dropped Supported options, removed codecs. B2BUA vs proxy → · Via chains →A working call against a failing one
Two INVITEs from the same endpoint, one that completes and one that is answered 403, 404 or 488. The header that differs is the first thing to check. SIP 403 guide → · SIP 488 guide →
Before and after a change
The same call captured on either side of a firmware upgrade, trunk migration or header-manipulation rule confirms the change did what was intended and nothing else. Route and Record-Route → · Identity header decoder →
FAQ
SIP message comparison questions
What is compared, which differences are normal, and where the messages go.
What does a SIP message diff show?
It lines up two SIP messages by header name and reports four things: headers whose value changed, headers present only in the first message, headers present only in the second, and headers that are identical. The start line (Request-URI or status line) and the body are compared as well. Header names are matched case-insensitively and compact forms are expanded, so
v: and Via: are treated as the same header.Which headers are expected to differ between two legs of the same call?
Via, Max-Forwards and Content-Length change at every hop. Record-Route and Route change as proxies add or consume entries. Across a proxy, Call-ID, CSeq and the From and To tags stay the same. Across a B2BUA or SBC they are usually all new, because the far side is a separate dialog, and Contact is rewritten to keep the SBC in the path. A difference in any other header is a deliberate rewrite or a stripped header and is worth reading. The B2BUA vs proxy guide covers the distinction.
Can I compare a request with a response?
Yes. Headers are compared the same way whatever the two messages are. When the first is a request and the second a response and both carry SDP, such as an INVITE and its 200 OK, the SDP offer/answer rules are applied to the two bodies as well. The SDP offer/answer checker does only that part.
Does header order matter?
Header names are sorted for display, so the order in which different headers appear does not affect the result. For a header that appears more than once, such as
Via, Route or Record-Route, the values are compared as an ordered list, because their order carries meaning: it is the path the message took or must take.Are my SIP messages stored?
No. The comparison runs on the SIPSymposium MCP endpoint as a deterministic function; the text is parsed, the result is returned, and nothing is kept. No AI model is involved and no account is needed. The same tool is available inside Claude, Cursor or VS Code through the SIPSymposium MCP server.
Two messages show the rewrite, not the outcome.
Whether the call then failed on a timer, an authentication loop or media is in the rest of the trace. The analyzer reads all of it.