As you must be already aware by now there are two types of SIP Messages.
a) Requests -> sent from client to server.
b) Response -> sent from server to client.
Any SIP Message consists of :-
a) Start Line - can be a request line or status line(see below for details)
b) One or more header fields
c) An empty line indicating the end of the header fields.
d) Message body(optional)
Request and Response messages use the basic format specified in RFC 2822 and uses a UTF-8 charset (RFC 2279).
Start line for a request is actually distinguished by a Request-Line. A Request-Line consists of :-
a) Method Name
b) REQUEST URI - for indicating a user or a service for which this request is being sent.
c) Protocol Version separated by a single space character
A Request-Line ends with CRLF and no Linear White Spaces (LWS) are allowed in any of the elements.Example:
Some of the basic SIP Signalling Methods are as below:
For details please refer the SIP Methods section. Some more SIP Signalling extension Methods are:
It is distinguished from requests by having a Status-Line as their start-line. A Status-Line consists of :-
a) Protocol Version - SIP Version "SIP/2.0". The Sip version string is case sensitive and the Version Number is also treated as a literal string.
b) Numeric Status Code - it is a 3-digit integer number which indicates the output of an attempt to understand and satisfy a request. First digit is for defining the "class of response". Last two digits are intended to be used by automata.
c) Reason Phrase - Textual description of the Status Code that a human user can understand.
Some SIP Signalling Response Codes and their respective class are shown as below :-
More Info on Response Class 1xx - This response code shows that the server contacted is performing some further action and as of now does not have a definite response. A server sends a 1xx response if it expects to take time > 200ms before it can dispatch a final response. Note that 1xx responses are not transmitted reliably and they never cause a client to send an ACK. They can also carry SDP in their message bodies.
For detailed description on header fields and methods continue reading ...........