Learn / Walkthrough

A phone call over the internet

A softphone on the laptop calls extension 200 through a phone system (PBX). Follow the call from ring to hang-up, and find the audio packets that never arrived.

  1. Placing the call

    Packet 1

    The laptop sends a SIP INVITE. Its body (SDP) offers G.711 audio and says which port to send the voice to.

    Think about it: What does the other side need from this message?

    Who is calling, who is called, and where and how to send audio.

  2. Ringing

    Packet 3

    180 Ringing: the phone at extension 200 is ringing.

  3. Answered

    Packet 4

    200 OK after 2.1 seconds: someone picked up. The PBX's SDP says where to send the laptop's audio.

  4. Confirmed

    Packet 5

    The laptop acknowledges the answer. The call is set up.

  5. The voice starts

    Packet 6

    Audio travels as RTP: one packet every 20 milliseconds in each direction, each with a sequence number and timestamp.

    Think about it: How many voice packets does each side send per second?

    Fifty: one every 20 ms.

  6. A gap in the voice

    Packet 130

    The sequence numbers in this direction jump by three: two packets never arrived. A few are hidden by the phone; many sound like choppy audio.

    Think about it: Where could the packets have been lost?

    Anywhere on the path, often on Wi-Fi. The capture shows the loss, not where it happened.

  7. Hanging up

    Packet 600

    SIP BYE ends the call, and the PBX confirms with 200 OK.