SlideShare a Scribd company logo
Introduction to
Session Iinitiation Protocol
(a VoIP protocol)
2007-10-16William.L
wiliwe@gmail.com
Agenda
Introduction
Architecture
SIP Message Format
Call Flows
Introduction
An application-layer signaling protocol
Create, Modify, and Terminate sessions
SIP is ASCII text-based
SIP incorporates elements of two widely used Internet
protocols:
HTTP SIP borrowed a client-server design and the use of
URLs and URIs
SMTP SIP borrowed a text-encoding scheme and header style
SIP uses e-mail-like names for addresses
UserName@Host-Domain
Architecture (1/2)
Client-Server architecture --- the same as HTTP
Client
originates message
Server
responds to or forwards message
Elements
SIP User Agents
takes direction or input from a user and acts as an agent on their
behalf to set up and tear down media sessions with other user
agents.
SIP Servers
Registrar
Proxy
Redirect
Architecture (2/2)
Request
Response
Server Client
SIP Message (1/8)
SIP Message
Message Headers
Request / Status Line
Message Body
C R L F
INVITE sip:allen@10.7.1.228:5060 SIP/2.0
Via: SIP/2.0/UDP 22.3.56.790:5060;branch=z9G4bK0e8d
From: sip:carol@22.3.56.790:5060
To: sip:bob@22.3.56.789:5060
Call-ID: 1234567890@10.8.2.106
Cseq: 1 INVITE
Content-Type: applcation/sdp
Content-Length: 224
v=0
o=jessica 0 0 IN IP4 10.7.1.229
s=Session SDP
c=IN IP4 10.7.1.229
m=audio 5004 RTP/AVP 0 3 5
a=rtpmap:0 PCMU/8000
SIP Message (2/8)
SIP
Request
Message Via: SIP/2.0/UDP
22.3.56.790:5060;branch=z9G4bK0e8d
From: sip:carol@22.3.56.790:5060
To: sip:bob@22.3.56.789:5060
Call-ID: 1234567890@10.8.2.106
Cseq: 1 INVITE
Content-Type: applcation/sdp
Content-Length: 224
INVITE sip:allen@22.3.56.789:5060 SIP/2.0
v=0
o=jessica 0 0 IN IP4
10.7.1.229
s=Session SDP
c=IN IP4 10.7.1.229
m=audio 5004 RTP/AVP 0 3 5
a=rtpmap:0 PCMU/8000
C R L F
SIP Message (3/8)
SIP Message (4/8)
GET /2001/Talks/0710-ep-grid/all.htm,access HTTP/1.1
User-Agent: W3C ChACL agent
Host: www.w3.org
Accept: text/xml
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Authorization: Basic xxxxxxxxxxxxxxxxxxxx
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
HTTP Message Request
HTTP/1.0 200
Date: Sat, 07 Jul 2001 14:08:12 GMT
Server: Apache/1.3.6 (Unix) PHP/3.0.15
WWW-Authenticate: Basic realm="W3CACL“
Content-length: 301
Content-Type: text/xml<?xml version="1.0"?>
<!-- Session-Id: 994514895.830925 --><rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://www.w3.org/2001/02/acls/ns#"> <rdf:Description
aboutEach="#B1"> <s:hasAccessTo
rdf:resource="http://www.w3.org/2001/Talks/0710-ep-grid/all.htm"/>
</rdf:Description></rdf:RDF>
HTTP Message Response
SIP Message (5/8)
SIP messages’ format
is the same as HTTP
ones
6 Methods defined for request
REGISTER
INVITE
ACK
BYE
CANCEL
OPTONS
SIP Message (6/8)
Status codes
Informational – 1xx
Success – 2xx
Redirection – 3xx
Client-Error – 4xx
Server-Error – 5xx
Global-Failure – 6xx
SIP Message (7/8)
Most header fields and its using are the
same as that defined in HTTP and SMTP
SIP Message (8/8)
Call Flows
Registration
Basic Call
Re-INVITE – modify the session’s parameter
No Answer – use CANCEL method
Busy
Call Hold
3-way Conference -- The third party is added
Registration
Registration_Register_request
Registration_Register_response
Request
Response
bob@biloix.com
Registrar
User
Agent
Entity
Location
Server
Bob
192.0.2.4
use
store bob@biloix.com : 192.0.2.4
Basic Call
1
2
3
4
5
6
Basic Call_message_1
Basic Call_message_2
Basic Call_message_3
Bob Off-hook
Basic Call_message_4
Introduction to SIP(Session Initiation Protocol)
Basic Call_message_5
Bob On-hook
Basic Call_message_6
Basic Call_the session is terminated
Session with re-INVITE (IP Address Change)
9
6
F6
Session with re-INVITE – Bob’s Original IP address
F9
Session with re-INVITE – Bob’s new IP address
Unsuccessful --- No Answer
Unsuccessful --- Busy
Call
Hold
Call Hold_message_Request
F5
Call Hold_message_Response
F6
Three-Way Conference --- Third Party is Added
Three-Way Conference - Message_1
F5
F8
Three-Way Conference - Message_2
Three-Way Conference - start to 3-way conference
References
RFC-3261 SIP:Session Initiation Protocol
Understanding the Session Initiation Protocol, Alan B.
Johnstone , 2/e, 2004
draft-ietf-sipping-service-examples-10.txt, March 5,
2006
draft-ietf-sipping-conferencing-models-01.txt, January
2003
RFC 3665 Session Initiation Protocol (SIP) Basic Call
Flow Examples,
, December 2003
http://www.in2eps.com/xrai/ztk-ietf-wg-rai-sip.html

More Related Content

PPTX
session initiation protocol - SIP
PPT
PPTX
Voice-over-Internet Protocol (VoIP) ppt
PPTX
Session initiation-protocol
PDF
SIP - The Basics
PPTX
Voip powerpoint
PPTX
Voice over Internet Protocol (VoIP)
PPTX
SIP over TLS
session initiation protocol - SIP
Voice-over-Internet Protocol (VoIP) ppt
Session initiation-protocol
SIP - The Basics
Voip powerpoint
Voice over Internet Protocol (VoIP)
SIP over TLS

What's hot (20)

PPT
DHCP Server & Client Presentation
PPTX
CCNA PPT
PPTX
Session initiation protocol SIP
PPT
Basic socket programming
PPTX
Session Layer
PDF
Cisco vs. huawei CLI Commands
PPT
Mail server
PDF
Introduction to VoIP, RTP and SIP
PPTX
Voice over internet protocol (VoIP)
PPTX
TCP and UDP
PDF
Socket programming using C
PPT
Packet tracer
PPTX
Network address translation
PPT
PPTX
Routing Presentation
PPTX
CCNA training 101
PPTX
voice over internet protocol
PPT
PPT
Configuration DHCP
PDF
Kamailio :: A Quick Introduction
DHCP Server & Client Presentation
CCNA PPT
Session initiation protocol SIP
Basic socket programming
Session Layer
Cisco vs. huawei CLI Commands
Mail server
Introduction to VoIP, RTP and SIP
Voice over internet protocol (VoIP)
TCP and UDP
Socket programming using C
Packet tracer
Network address translation
Routing Presentation
CCNA training 101
voice over internet protocol
Configuration DHCP
Kamailio :: A Quick Introduction
Ad

Similar to Introduction to SIP(Session Initiation Protocol) (20)

PPT
Distributed System by Pratik Tambekar
ODP
PHP Training: Module 1
PPT
A detailed presentation on the World Wide Web
PPT
Intro to web services
PPT
Sinnreich Henry Johnston Alan Pt 1
PPT
PPT
Spider Course Day 1
ODP
Web Server-Side Programming Techniques
PPT
PPTX
RESTful web services using java and spring
DOCX
Sending mail,web services
PPTX
XMPP-IoT Protocol designed mainly to send mesages
PPT
jkljklj
PDF
Unit 02: Web Technologies (1/2)
PDF
Web services
PPT
Ds
PPTX
SOAP WEB TECHNOLOGIES
PPT
MOSS 2007 Deployment Fundamentals -Part2
PPT
Session 1 tp1
PDF
HTTP & HTML & Web
Distributed System by Pratik Tambekar
PHP Training: Module 1
A detailed presentation on the World Wide Web
Intro to web services
Sinnreich Henry Johnston Alan Pt 1
Spider Course Day 1
Web Server-Side Programming Techniques
RESTful web services using java and spring
Sending mail,web services
XMPP-IoT Protocol designed mainly to send mesages
jkljklj
Unit 02: Web Technologies (1/2)
Web services
Ds
SOAP WEB TECHNOLOGIES
MOSS 2007 Deployment Fundamentals -Part2
Session 1 tp1
HTTP & HTML & Web
Ad

More from William Lee (20)

PDF
Usage Note of Apache Thrift for C++ Java PHP Languages
PDF
Usage Note of Qt ODBC Database Access on Linux
PDF
Usage Note of SWIG for PHP
PDF
Upgrade GCC & Install Qt 5.4 on CentOS 6.5
PDF
Usage Notes of The Bro 2.2 / 2.3
PDF
Viewing Android Source Files in Eclipse (Chinese)
PDF
Usage Note of Microsoft Dependency Walker
PDF
Usage Note of PlayCap
PDF
Qt4 App - Sliding Window
PDF
GTK+ 2.0 App - Desktop App Chooser
PDF
GTK+ 2.0 App - Icon Chooser
PDF
Note of CGI and ASP
PDF
Moblin2 - Window Manager(Mutter) Plugin
PDF
MGCP Overview
PDF
Asterisk (IP-PBX) CDR Log Rotation
PDF
L.A.M.P Installation Note --- CentOS 6.5
PDF
C Program Runs on Wrong Target Platform(CPU Architecture)
PDF
Internationalization(i18n) of Web Page
PDF
Notes for SQLite3 Usage
PDF
Cygwin Install How-To (Chinese)
Usage Note of Apache Thrift for C++ Java PHP Languages
Usage Note of Qt ODBC Database Access on Linux
Usage Note of SWIG for PHP
Upgrade GCC & Install Qt 5.4 on CentOS 6.5
Usage Notes of The Bro 2.2 / 2.3
Viewing Android Source Files in Eclipse (Chinese)
Usage Note of Microsoft Dependency Walker
Usage Note of PlayCap
Qt4 App - Sliding Window
GTK+ 2.0 App - Desktop App Chooser
GTK+ 2.0 App - Icon Chooser
Note of CGI and ASP
Moblin2 - Window Manager(Mutter) Plugin
MGCP Overview
Asterisk (IP-PBX) CDR Log Rotation
L.A.M.P Installation Note --- CentOS 6.5
C Program Runs on Wrong Target Platform(CPU Architecture)
Internationalization(i18n) of Web Page
Notes for SQLite3 Usage
Cygwin Install How-To (Chinese)

Recently uploaded (20)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
cuic standard and advanced reporting.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Electronic commerce courselecture one. Pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Big Data Technologies - Introduction.pptx
PPT
Teaching material agriculture food technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation theory and applications.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
A Presentation on Artificial Intelligence
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Per capita expenditure prediction using model stacking based on satellite ima...
cuic standard and advanced reporting.pdf
The AUB Centre for AI in Media Proposal.docx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Advanced methodologies resolving dimensionality complications for autism neur...
Electronic commerce courselecture one. Pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Big Data Technologies - Introduction.pptx
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation_ Review paper, used for researhc scholars
Empathic Computing: Creating Shared Understanding
Encapsulation theory and applications.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
A Presentation on Artificial Intelligence

Introduction to SIP(Session Initiation Protocol)