Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
SIP and VoIP Troubleshooting - Hands-On Packet Labs
New
Rating: 4.8 out of 5(10 ratings)
107 students

SIP and VoIP Troubleshooting - Hands-On Packet Labs

Find real SIP and VoIP faults in captures with Wireshark: registration, failed calls, one-way audio, quality, security
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Read SIP methods, status codes, headers, SDP and dialogs in a real packet capture.
  • Capture and analyse calls with sngrep, tshark and Wireshark on a router between your phone systems.
  • Fix registration faults: 401 digest challenges, wrong realm, expiry and NAT keepalive.
  • Diagnose failed calls with the codes 404, 480, 486, 503, 407 and 488.
  • Find one-way audio, a wrong SDP address and symmetric RTP problems from the packets.
  • Compare codecs, transcoding and DTMF methods on Asterisk and FreeSWITCH.
  • Measure loss, jitter, delay and MOS-style quality numbers with tc netem and tshark.
  • Use a troubleshooting playbook and fail2ban to solve and protect a small SIP lab.
  • SIP and VoIP Troubleshooting: Hands-On Packet Labs
  • SIP Troubleshooting with Wireshark, sngrep and tshark
  • VoIP Troubleshooting for Beginners: SIP, RTP, FreeSWITCH
  • Hands-On SIP Analysis: Asterisk, FreeSWITCH, Packet Capture

Course content

1 section • 31 lectures • 1h 58m total length
  • V01_welcome_and_course_map2:57
  • V02_lab_preparation_where_to_practice_and_how_to_get_h7:31
  • V03_the_lab_network_four_hosts_and_a_router4:20
  • V04_install_freeswitch_without_a_token3:42
  • V05_install_asterisk_and_basic_pjsip_configuration4:03
  • V06_sip_clients_sipp_and_pjsua3:44
  • V07_methods_and_status_codes3:33
  • V08_headers_and_sdp_read_an_invite_line_by_line4:02
  • V09_dialogs_transactions_and_timers3:33
  • V10_sngrep_call_list_flow_and_filters3:36
  • V11_tshark_for_sip_and_rtp3:33
  • V12_wireshark_voip_calls_and_the_flow_graph3:48
  • V13_401_challenge_digest_and_wrong_password3:36
  • V14_wrong_realm_endpoint_match_expiry_and_contact3:57
  • V15_nat_keepalive_and_registration_loss3:59
  • V16_failed_calls_404_480_486_and_5033:55
  • V17_408_timeout_and_407_proxy_authentication4:04
  • V18_488_codec_mismatch4:11
  • V19_one_way_audio_rtp_blocked3:32
  • V20_wrong_sdp_ip_nat_and_symmetric_rtp4:02
  • V21_sip_alg_simulated3:59
  • V22_codecs_and_transcoding4:05
  • V23_dtmf_rfc_4733_events_sip_info_and_inband_tones3:45
  • V24_loss_jitter_and_delay_with_tc_netem3:37
  • V25_mos_style_numbers_from_a_capture4:06
  • V26_tls_and_srtp_what_the_wire_shows_and_what_fails4:00
  • V27_sip_scanners_brute_force_and_fail2ban3:38
  • V28_sip_tools_inside_the_phone_systems3:56
  • V29_capture_on_the_pbx_or_on_the_wire_tshark_and_jq3:40
  • V30_troubleshooting_playbook_and_outro3:59
  • SIP and VoIP Troubleshooting - Hands-On Packet Labs0:01

Requirements

  • No VoIP experience is needed. You should be able to use a Linux terminal and follow a command on the screen; every SIP idea is explained first and then practiced. You need four Ubuntu 24.04 machines: cloud servers with any provider (we used UpCloud) or virtual machines in VirtualBox, VMware or KVM. Together they need about 8 CPU cores and 16 GB of memory, but each lab uses only some of them. The course files include a setup guide and scripts that build the four lab hosts: a FreeSWITCH server, an Asterisk server, a client host and a router and sniffer. The labs cost only a few euros in total with a cloud provider if you delete the servers when you finish. Use lab machines only, never production phone systems.

Description


This course contains the use of artificial intelligence.

When a call fails, a phone does not register or the audio is one-way, the answer is almost always in the packets. This course teaches you to read SIP and RTP and to find the cause with simple tools, using a short explanation with a diagram and then a real lab.

Every lab ran for real on four servers at UpCloud: FreeSWITCH 1.10 built from source, Asterisk 20, a client host with sipp and pjsua, and a router with tshark, sngrep and Wireshark. The hosts are joined by a lab network of GRE tunnels through the router, so we capture every packet at one point. You see the real commands and the real results.

You will learn: SIP methods, status codes, headers, SDP, dialogs, transactions and timers; sngrep, tshark and Wireshark for VoIP; registration problems (401 digest, wrong realm, expiry, NAT keepalive); failed calls (404, 480, 486, 503, 407, 488); one-way audio, wrong SDP address, symmetric RTP and a simulated SIP ALG; codecs, transcoding and DTMF; loss, jitter and delay with tc netem and MOS-style numbers from a capture; TLS and SRTP failures; SIP scanners and fail2ban; the SIP tools inside FreeSWITCH and Asterisk; and a troubleshooting playbook. Six Extra lectures add Homer with heplify, Kamailio and OpenSIPS traces, WebRTC signalling over WebSocket, SIP security audit tools and automated call-quality monitoring.

The course has 36 lectures: the 30 main lectures are about 1 hour 59 minutes of video in total as delivered, and the 6 Extra lectures add about 23 minutes. The course includes a lab guide, command files and expected results for every lab video, plus a setup guide and scripts for the four lab hosts; every command and every result is also on the screen, and nothing is paywalled inside the course. The narration voice is AI generated.

Please know before you buy: you need four lab machines, either cloud servers or local virtual machines. There is no real audio: the media in the labs is generated RTP, measured with tshark, and the MOS numbers are a simplified calculation, not a listening test. 3CX is not covered. WebRTC media and a browser call were not tested; the WebSocket lecture shows the signalling only. The Homer web page is not shown; the data in its database is proven with queries. A real SIP 408 timeout could not be produced in the lab, so lecture 17 shows what we could produce and explains the rest. The SIP ALG is simulated by a script on the router. Anything not tested live is said plainly in the videos. This is not a certification course and it does not promise a certificate. The lectures are video only, and the course includes a lab guide, command files and expected results for every lab video; every command and every result is also on the screen, and nothing is paywalled inside the course. The narration voice is AI generated.

The course is written for beginners: support engineers and system administrators who run Asterisk or FreeSWITCH, network engineers who meet SIP traffic, and students who want a practical start in VoIP troubleshooting.

This course contains the use of artificial intelligence.

Curriculum Outline

  1. Welcome and course map

  2. Lab preparation: where to practice and how to get help

  3. The lab network: four hosts and a router

  4. Install FreeSWITCH without a token

  5. Install Asterisk and basic PJSIP configuration

  6. SIP clients: sipp and pjsua

  7. Methods and status codes

  8. Headers and SDP: read an INVITE line by line

  9. Dialogs, transactions and timers

  10. sngrep: call list, flow and filters

  11. tshark for SIP and RTP

  12. Wireshark: VoIP calls and the flow graph

  13. 401 challenge, digest and wrong password

  14. Wrong realm, endpoint match, expiry and contact

  15. NAT keepalive and registration loss

  16. Failed calls: 404, 480, 486 and 503

  17. 408 timeout and 407 proxy authentication

  18. 488 codec mismatch

  19. One-way audio: RTP blocked

  20. Wrong SDP IP, NAT and symmetric RTP

  21. SIP ALG simulated

  22. Codecs and transcoding

  23. DTMF: RFC 4733 events, SIP INFO and inband tones

  24. Loss, jitter and delay with tc netem

  25. MOS-style numbers from a capture

  26. TLS and SRTP: what the wire shows and what fails

  27. SIP scanners, brute force and fail2ban

  28. SIP tools inside the phone systems

  29. Capture on the PBX or on the wire, tshark and jq

  30. Troubleshooting playbook and outro

  31. Homer and HEP capture with heplify

  32. Kamailio basics: a proxy trace

  33. OpenSIPS basics

  34. WebRTC signalling over WebSocket

  35. SIP security audit tools

  36. Automated call-quality monitoring



Who this course is for:

  • Support engineers and administrators who run Asterisk or FreeSWITCH
  • Network engineers who meet SIP and RTP traffic
  • Beginners who want to learn VoIP troubleshooting by doing it
  • Students who want a practical base for a VoIP or telecom job