Complete IP Networks for Telecom Engineers and Voice over IP: Codecs, RTP, DTMF and Quality first: UDP/TCP/TLS transport, DNS SRV/NAPTR records, NAT behavior, audio codecs (G.711, G.729, AMR, Opus), RTP/RTCP, RFC 4733 DTMF events, SRTP encryption, T.38 fax and Wireshark are used here without repeating the explanation.
One topic, one lesson: interactive slides, call-flow ladder diagrams and animations, exercises with answer checking, and study notes in three languages (az, ru, en). Each lesson includes a worked example, a “What can go wrong and how to find it” section, practice and a self-check. 16 hands-on labs run on Docker testbeds with live Kamailio, Asterisk, FreeSWITCH, SIPp and Wireshark captures.
Course outline
01
SIP fundamentals
- what SIP is, history and RFC 3261
- text-based request-response model
- UA/UAC/UAS, stateless and stateful proxies (forking)
- registrar and location service
- redirect server, B2BUA and SBC
- SIP URI, SIPS, tel URI and +E.164 number formats
02
The SIP message line by line
- Request-Line and Status-Line
- Via (branch, received, rport)
- From and To (tag), Call-ID
- CSeq, Contact (expires)
- Max-Forwards (483), Route and Record-Route (lr)
- Content-Type/Length (multipart)
- Allow/Supported/Require (420)
- WWW/Proxy-Authenticate
- PAI/PPI/Privacy, Diversion and History-Info
03
Transactions and dialogs
- client and server transactions
- INVITE and non-INVITE transactions
- ACK for non-2xx responses
- timers T1/T2 and A/B/E/F/H (where the 32-second timeout comes from)
- dialog ID (Call-ID + tags)
- route set and early dialogs
04
SIP methods
- REGISTER, INVITE, ACK (for 2xx and error responses)
- BYE, CANCEL and 487, OPTIONS (keepalive)
- PRACK and 100rel (RFC 3262)
- UPDATE (RFC 3311), INFO and DTMF (RFC 6086)
- MESSAGE (RFC 3428), SUBSCRIBE/NOTIFY (RFC 6665)
- REFER (RFC 3515) and Replaces (RFC 3891), PUBLISH (RFC 3903)
05
SIP responses
- 1xx (100, 180, 181, 182, 183)
- 2xx (200 OK, 202), 3xx (301, 302, 305, 380)
- 4xx authentication (401, 403, 407)
- 4xx routing (404, 408, 410, 480, 484, 486, 487)
- 4xx media and extensions (415, 420, 422, 481, 488, 491)
- 5xx and 6xx (500, 503 with Retry-After, 504, 600, 603, 604, 606)
06
SIP lab testbed
- Kamailio, Asterisk, FreeSWITCH
- baresip/pjsua and SIPp; spinning up the Docker testbed
- capturing REGISTER (401/200)
- basic call flow (INVITE/200/ACK/BYE) and call cancel/busy (CANCEL/487/486)
07
SDP complete guide
- line format (v=, o=, s=, t=, c=, m=)
- a=rtpmap and a=fmtp (AMR, telephone-event)
- direction attributes (sendrecv/sendonly/recvonly/inactive)
- ptime/maxptime, b=AS/TIAS/RS/RR
- RFC 3264 Offer/Answer rules
- codec negotiation, hold/resume via re-INVITE
- multiple media streams
- ICE candidates and SRTP keys (SDES and DTLS-SRTP)
08
Call scenarios
- Digest registration and refresh
- direct and proxy-routed calls (Record-Route)
- parallel and sequential forking
- 183 and early media, blind and attended call transfer
- hold and conferencing, Session Timers (RFC 4028)
- DTMF method selection, T.38 re-INVITE
- video calls, SIMPLE presence/IM and 6 hands-on labs
09
Transport, NAT, SBC and scaling
- SIP over UDP/TCP/TLS, server discovery via NAPTR → SRV → A/AAAA (RFC 3263)
- how NAT breaks Via/Contact/SDP and traversal solutions (STUN/TURN/ICE, SIP Outbound RFC 5626)
- SBC functions and header manipulation
- SIP trunks, load balancing (dispatcher)
- high availability, SIP over WebSocket (RFC 7118) and 3 hands-on labs
10
Security and identity
- SIP over TLS (SIPS, port 5061) and TLS+SRTP lab
- threats (scanning, brute force, toll fraud)
- protection (ACLs, rate limiting)
- IRSF and wangiri fraud detection
- caller ID trust (From, PAI, Privacy) and STIR/SHAKEN (Identity, PASSporT)
11
Testing, accounting and troubleshooting
- SIPp scenarios and load testing (with hands-on lab)
- CDR call accounting and billing in SIP networks
- systematic troubleshooting in Wireshark (SIP Flows, VoIP Calls)
12
Problems, solutions and final project
30 real-world troubleshooting cases (infinite 401 loop, 403, 404, 408 from MTU and DNS SRV, 32-second call drop, 481, 488, 491 glare, one-way audio, missing ringback and early media, 420 100rel, session timer drop, silent hold, transfer failure, wrong caller ID, NAT, TLS, 407, 483 loop, DTMF, T.38, toll fraud) and a carrier SIP network design project
The seventh course of the 14-course Telecom track, from the telephone line to 5G.