Professional Documents
Culture Documents
1 2
SIP DEFINITION
Session Initiation Protocol (SIP) is a signaling protocol
specified by the Internet Engineering Task Force (IETF) for
establishing, modifying, and terminating sessions in an IP
network. These sessions are independent of the SIP
protocol and can be voice, video, or any other type of
media. The current baseline specification for SIP is IETF
RFC 3261 with other RFCs further defining extensions to
the SIP Protocol.
NOTES:
__________________________________________
__________________________________________
3 4
Presence Agents
SIP Gateways
NOTES:
__________________________________________
__________________________________________
__________________________________________
__________________________________________
__________________________________________
5 6
NOTES:
__________________________________________
__________________________________________
__________________________________________
__________________________________________
SIP Protocol Stack
NOTES:
__________________________________________
__________________________________________
__________________________________________
__________________________________________
7 8
SIP Addressing
SIP
Responses____________________________
SIP Messages generated by a UA or SIP server in
response to a SIP request or method.
NOTES:
__________________________________________
__________________________________________
__________________________________________
__________________________________________
__________________________________________
__________________________________________
___________________________________________
Generic Message Structure
9 10
SIP Methods
ACK (RFC 3261) ________________________
The ACK method is used to acknowledge the final
response to an INVITE method. Final responses are
response classes 2XX, 3XX, 4XX, and 5XX.
10
11
SIP Methods (Continued)
Publish (RFC 3903) ______________________
The Publish method is used by a user agent to
send/publish event state information to a SIP Server
known as an Event State Compositor (ESC).
NOTES:
__________________________________________
__________________________________________
__________________________________________
__________________________________________
__________________________________________
__________________________________________
___________________________________________
1112
SIP Responses Class 1XX
Provisional Response Class (1XX)
Provisional responses, also known as informational
responses, indicate that the server contacted is performing
some further action and does not yet have a definitive
response. A server sends a 1XX response if it expects to
take more than 200 ms to obtain a final response.
NOTES:
__________________________________________
__________________________________________
__________________________________________
__________________________________________
12
13
SIP Responses Class 2XX
Success Response Class (2XX)
Success responses indicate that the request was
successful.
13
1314
SIP Responses Class 4XX
Client Error Class (4XX)
4XX responses are failure responses from a particular
server. The client SHOULD NOT retry the same request
without modification.
14
15
SIP Responses Class 4XX (Continued)
408 Request Timeout (RFC 3261) ___________
The server could not produce a response within a suitable
amount of time, for example, if it could not determine the
location of the user in time.
1516
SIP Responses Class 4XX (Continued)
420 Bad Extension (RFC 3261) _____________
The server did not understand the protocol extension
specified in a Proxy-Require or Require header field.
16
17
SIP Responses Class 4XX (Continued)
438 Invalid Identity Header (RFC 4474) _______
This response code is used when the verifier receives a
message with an Identity signature that does not
correspond to the digest-string calculated by the verifier.
1718
SIP Responses Class 4XX (Continued)
486 Busy Here (RFC 3261) ________________
The callee's end system was contacted successfully, but
the callee is currently not willing or able to take additional
calls at this end system.
NOTES:
__________________________________________
__________________________________________
__________________________________________
18
19
SIP Responses Class 5XX
Server Failure Class (5XX)
5XX responses are failure responses given when a server
itself has erred.
1920
SIP Responses Class 6XX
Global Failure class (6XX)
6XX responses indicate that a server has definitive
information about a particular user, not just the particular
instance indicated in the Request-URI.
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
20
21
Legend For Header Table
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
__________________________________________
2122
Header Table
22
3
23
Header Table (Continued)
2324
3
SIP
Pocket
Guide
Header Table (Continued)
24
3
25
Header Table (Continued)
2526
3
Header Table (Continued)
26
3
27
Header Table (Continued)
2728
Header Table (Continued)
28
29
Header Table (Continued)
2930
Header Table (Continued)
30
31
SIP Events
SIP events provide a mechanism whereby an
interested UA can be notified of the state of
another UA. The SIP events are primarily used in
the Subscribe and Notify methods.
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
3132
SIP Timers
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
32
33
SDP Description
SDP is used to convey information about media
streams in multimedia sessions. It allows the
recipients of a session description to participate
in the session. SDP is primarily intended for use
in an internetwork, although it is sufficiently
general that it can describe conferences in other
network environments. Media streams can be
many-to-many. Sessions need not be continually
active.
SDP Fields
NOTES:
___________________________________________
___________________________________________
3334
SDP Field Description
Protocol Version
Is 0 for SDP version 0.
Origin
Contains information about the originator of the session
and session identifiers.
Session Name
Contains the name of the session.
Session Information
Contains information about the session.
Email Address
Contains the email address of the host of the session.
Phone Number
Contains the phone number of the Originator. Should be in
the format of + country code, city code and number.
Connection Data
Contains IN for Internet, the address type IP4 or IP6 for
IPv4 or IPv6, and address sending packets.
Bandwidth Information
Contains information about the bandwidth required.
Repeat Times
Contains information about the repeat times in NTP or
days, hour, and minutes.
Encryption Key
Contains the encryption key for the session where the
encryption key equals clear, base64, URI, or prompt.
Attribute Lines
Contains information about the described media session.
Media Information
Contains information about the type of media session
required, i.e., audio, video, application data, telephoneevent, or control. All underlined letters indicate the short
version of the parameter names.
34
35
All underlined letters indicate the short version of the parameter.
3536
SIP Call Flow Network
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
36
36
37
Invite #1
NOTES:
___________________________________________
___________________________________________
___________________________________________
3738
Invite #2
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
38
39
100 Trying #3
100 Trying #4
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
3940
180 Ringing #5
180 Ringing #6
NOTES:
___________________________________________
___________________________________________
___________________________________________
40
41
200 OK #7
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
4142
200 OK #8
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
42
43
ACK #9
ACK #9
4344
Bye #11
Bye #12
44
45
200 OK #13
200 OK #14
NOTES:
___________________________________________
___________________________________________
4546
Registration Process
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
46
47
Registration Messages
Register #1
402 Unauthorized #2
NOTES:
___________________________________________
___________________________________________
4748
Registration Messages (Continued)
Register #3
NOTES:
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
___________________________________________
48
49
Registration Messages (Continued)
200 OK #4
Additional Sample Messages
Cancel
NOTES:
___________________________________________
___________________________________________
4950
Additional Sample Messages (Continued)
Subscribe
302 Moved Temporarily
NOTES:
___________________________________________
___________________________________________
50
51
Additional Sample Messages (Continued)
401 Unauthorized
403 Forbidden
NOTES:
___________________________________________
___________________________________________
___________________________________________
5152
Additional Sample Messages (Continued)
404 Unknown User Account
407 Proxy Authentication Required
NOTES:
___________________________________________
___________________________________________
___________________________________________
52
53
Additional Sample Messages (Continued)
408 Request Timeout
481 Transaction Does Not Exist
487 Request Terminated
5354
SIP
Pocket
Guide
Glossary Of SIP Related Terms
DHCP _________________________________
Dynamic Host Configuration Protocol
DNS __________________________________
Domain Name System
IETF __________________________________
Internet Engineering Task Force
IP ____________________________________
Internet Protocol
PPP __________________________________
Point-to-Point Protocol
PSTN _________________________________
Public Switched Telephone Network
RFC __________________________________
Request for Comments
RTP___________________________________
Real-time Transport Protocol
RTSP _________________________________
Real-time Streaming Protocol
SCTP _________________________________
Stream Control Transmission Protocol
SDP __________________________________
Session Description Protocol
SIP ___________________________________
Session Initiation Protocol
TCP __________________________________
Transmission Control Protocol
UA ___________________________________
User Agent
UAC __________________________________
User Agent Client
UAS __________________________________
User Agent Server
UDP __________________________________
User Datagram Protocol
URI ___________________________________
Uniform Resource Identifier
54
55
References
5556
SIP
Pocket
Guide
References (Continued)
56
57
References (Continued)
5758
Although information contained in this document
resembles specifications by national or
international standards bodies, nothing
contained within this document is either
warranted or endorsed by said standards bodies.
While every effort has been taken to ensure the
accuracy of this material, errors may exist and
materials may become obsolete by more recent
additions of specifications. No development of
actual product should be undertaken without
referring to the ANSI, ITU, ETSI, IETC or IETF
specifications.
2014 Center Point Consulting, Inc.
58
59
SIP
Pocket
Guide