SIP Call Flow Explained: How a Softphone Call Works

Tom Reed
Read time: 8 minutes
SIP Call Flow Explained: How a Softphone Call Works

Tom Reed · Updated 6 December 2026

A SIP call flow is the sequence of messages that sets up, runs and ends a VoIP call. A softphone first REGISTERs with the PBX. To call, it sends an INVITE, gets 100 Trying, 180 Ringing and 200 OK, replies with ACK, then audio flows over RTP. BYE ends the call.

This guide is for IT admins, MSPs and support engineers who run a business softphone on a hosted PBX. It walks through the normal life of one call, step by step, and names the error you'll see when each step breaks, so you know where to look first. The messages and their order come from the SIP standard (RFC 3261), and RFC 3665 sets out the basic call flow examples. For the full list of codes, keep our SIP response codes guide open alongside.

Looking for how calls route through menus, queues and ring groups instead? That's a different kind of "call flow", covered in our guide to visual call flow design. This post is about the SIP messages underneath.

What is a SIP call flow?

SIP (Session Initiation Protocol) is the signalling protocol that sets up, changes and tears down a call. It doesn't carry the voice itself. Once a call is agreed, the audio and video travel separately over RTP (Real-time Transport Protocol).

So every call has two parts:

  • Signalling (SIP): the requests and replies, such as "call this person", "it's ringing", "answered" and "hang up".
  • Media (RTP): the actual sound and video, sent to the addresses the two ends agreed during signalling.

The two can take different paths through the network, which is why a call can connect fine yet have no audio. Is SIP the same as VoIP? No. VoIP is the general idea of voice over the internet. SIP is one protocol many VoIP systems use for the signalling part.

How does a softphone register with the PBX?

Before a softphone can make or take calls, it has to tell the PBX where it is. That's registration:

  1. The softphone sends REGISTER: "this user can be reached at this address".
  2. The PBX replies 401 Unauthorized or 407 Proxy Authentication Required. This is a normal challenge, not an error: the PBX is asking the softphone to prove who it is.
  3. The softphone sends REGISTER again, this time with credentials worked out from the username and password.
  4. The PBX replies 200 OK. The softphone is registered.

Registration doesn't last forever. It expires, and the softphone refreshes it in the background. If it lapses, outbound calls may still work while incoming calls never arrive.

On phones there's an extra piece. A mobile softphone can't keep a connection open all day without draining the battery, so push notifications wake the app when a call comes in. Our mobile softphone push notifications guide explains how that works.

When it fails: a loop of 401 or 407 replies usually means a wrong password or auth username, and a 403 Forbidden means the PBX refused the account outright. See our guide to SIP 401 and 407 errors.

What happens when you make a call (SIP INVITE)?

When a user dials, the softphone sends an INVITE. This is the SIP request that starts a call. Inside it is an SDP (Session Description Protocol) offer: the codecs the softphone can use, and the address and port where it wants to receive audio.

The replies come back in order:

  • 100 Trying: the PBX got the INVITE and is working on it. It stops the softphone resending.
  • 180 Ringing: the other phone is ringing, so the caller hears ringback.
  • 183 Session Progress: sometimes sent instead of 180. It carries early media, such as a ringback tone or announcement played from further along the path.
  • 200 OK: the call was answered. It carries the SDP answer: the codec chosen and where to send audio.
  • ACK: the caller confirms it got the 200 OK. Now the call is set up.

Between a softphone on the PBX and an outside number, the INVITE carries on from the PBX over a SIP trunk to the carrier, and the same pattern repeats on each leg.

When it fails: the INVITE gets a final error instead of 200 OK. The common ones:

If there's no reply at all, not even 100 Trying, the INVITE never arrived. Look at the network, DNS or firewall rather than the PBX settings.

IT engineer reviewing server racks and network cabling in a data centre

How does the audio start?

Once the 200 OK and ACK are done, both ends know where to send media. Audio flows over RTP to the addresses agreed in the SDP, either directly between the two ends or through the PBX.

This is where a lot of "the call connected but I can't hear them" problems come from. If a router rewrites the SDP addresses wrongly, often because of SIP ALG or NAT, audio goes to an address that can't be reached. The result is one-way audio or silence on an otherwise healthy call. Our guide to diagnosing one-way audio and SIP ALG shows how to check.

Signalling and media can both be encrypted. The SessionTalk desktop softphone uses TLS for signalling and SRTP for media on every call, and the mobile apps do the same.

How does a SIP call end?

There are two ways a call ends, depending on whether it was answered:

  • BYE: either side hangs up an answered call. The other side replies 200 OK and the media stops.
  • CANCEL: the caller hangs up before anyone answers. The PBX confirms the CANCEL and then ends the original INVITE with 487 Request Terminated. That's normal, not a fault. Our SIP 487 guide explains when a 487 is worth a closer look.

What does a SIP ladder diagram look like?

A SIP ladder diagram (also called a SIP call flow diagram) draws each device as a vertical line, such as softphone, PBX and callee, with each message as an arrow between them, top to bottom in time order. It looks like the rungs of a ladder. Here's the same flow as a table:

StepMessageDirectionWhat it meansIf it fails you'll see
1REGISTERSoftphone → PBX"Here's where to reach me"401/407 challenge loop, 403
2401 / 407, then REGISTER with credentials, 200 OKPBX ↔ softphoneAuth challenge passed, registeredRepeated 401/407 (wrong password or auth username)
3INVITE (SDP offer)Caller → PBX → calleeStart a call, here are my codecs488, 503, 500
4100 TryingPBX → callerRequest received, working on itNo response: network or DNS problem
5180 Ringing / 183 Session ProgressCallee side → callerPhone is ringing / early media486 Busy, 480 Unavailable
6200 OK (SDP answer)Callee → callerAnswered, here's where to send audio—
7ACKCaller → calleeConfirms the answerCall drops after a short time (missing ACK)
8RTP mediaBoth waysThe actual audio and videoOne-way or no audio
9BYE / 200 OKEither sideHang up—
altCANCEL → 487Caller → PBXCaller gave up before answer— (normal)

Checklist: reading a call flow when something breaks

  • Is the softphone registered right now?
  • Did the INVITE get any reply at all (100 Trying)?
  • What was the final response code? Look it up in the response codes guide
  • Did the 200 OK get an ACK back?
  • Do the SDP addresses look reachable, not a private LAN address rewritten wrongly?
  • Did audio flow both ways once the call was answered?
  • Who sent the BYE, and when?
Technician tracing network cables in a server rack

Pair it with a hosted PBX

Pair it with a hosted PBX: when every softphone and desk phone registers to one cloud PBX, each call follows the same flow and you can check it in one set of call logs. See SessionPBX hosted PBX and how to connect a SIP trunk to a hosted PBX.

FAQ

What is the basic call flow in SIP?

The softphone registers with REGISTER. To call, it sends an INVITE, gets 100 Trying and 180 Ringing, then 200 OK when the call is answered, and replies with ACK. Audio flows over RTP, and a BYE from either side ends the call.

Is SIP the same as VoIP?

No. VoIP is any voice call carried over an IP network. SIP is the signalling protocol many VoIP systems use to set up and end calls, while RTP carries the audio itself.

What is a SIP INVITE?

An INVITE is the SIP request that starts a call. It carries an SDP offer listing the codecs the caller supports and where it wants to receive audio.

Why does a call fail after 200 OK?

Usually because the ACK never arrives, so the answering side gives up and drops the call, or because media is blocked or sent to the wrong address. Check for SIP ALG on the router with our one-way audio guide.

What's the difference between BYE and CANCEL?

BYE ends a call that has been answered. CANCEL stops a call that hasn't been answered yet, and the original INVITE then ends with 487 Request Terminated.

What is a SIP ladder diagram?

A step-by-step picture of the SIP messages passed between devices over time, with each device as a vertical line and each message as an arrow between them.

Make calls with a business softphone

Every call from the SessionTalk business softphone follows this flow on Windows, macOS, iOS and Android: the desktop softphone for laptops and PCs, and the mobile softphone for phones.

Related Articles

More from the SessionTalk blog