SIP Header MSG Format
SIP Header MSG Format
Contents
SIP Addressing
SIP URIs are used
sip:user:password@host:port;url-parameters?headers
Request line
From
To
Contact
SIP Responses
1xx Informational
2xx Success
3xx Redirection
4xx Client Error resubmit after
modification
180 Ringing
Indicates that the INVITE has been received by the
called User agent
Ringtone can be conveyd in the message body from
UAS to UAC
401 Unauthorized
Indicates, that the user is required to perform
Authentication
Sent By User Agent or Registrar
SIP Methods
INVITE
Invite to participate in a session or change parameters
of an existing session
Includes usually message body with media information
of caller
ACK
Acknowledge a received final response (200-699)
May contain message body with media information
Invite (A-B) 200 OK (B-A) ACK (A-B)
BYE
Terminate an established media session
CANCEL
Request to cancel pending request
Also sent by forking proxies after succesful
response to one of the branched requests
UA
SIP/2.0 200 OK
Via: SIP/2.0/UDP feanor.pc.lut.fi:5060
From: athamala <sip:[email protected]>
To: athamala <sip:[email protected]>
Call-ID: 123456789@aradan
CSeq: 1 REGISTER
Contact: <sip:[email protected]>;expires=3600
Content-Length: 0
UA
REGISTRAR
REGISTRAR
OPTIONS
Query server or user agent about its capabilities
NOTIFY
To inform other users about state of presentity
MESSAGE
To send instant message body
COMET
Allows UAS to indicate, that QOS
preconditions have been met
REFER
To initiate a third-party call control
To
Contains the recipient of the request (SIP URI),
required in all SIP messages
CSeq
Sequence number for requests, UAS decide if
the request is a retransmission (same CSeq) or
new request
Cseq: 1 INVITE
Via
To store addresses of all the proxies which handle the
request, helps in loop detection and routing, required
Via: SIP/2.0/UDP feanor.pc.lut.fi:5060
Content-Length
Content-Type (for example application/sdp)
Route
In future requests Record-route is copied as a
Route header which forces request to go
through the proxy which inserted Record-route
in the previous request