SIP Message Structure
All SIP messages are either requests from a server or client or responses to a request. The messages are formatted according to RFC 822, "Standard for the format of ARPA internet text messages." For all messages, the general format is:
All SIP messages are either requests from a server or client or responses to a request. The messages are formatted according to RFC 822, "Standard for the format of ARPA internet text messages." For all messages, the general format is:
- A start line
- One or more header fields
- An empty line
- A message body (optional)
Requests
SIP uses six types (methods) of requests:- INVITE-Indicates that a user or service is being invited to participate in a call session
- ACK-Confirms that the client has received a final response to an INVITE request
- BYE-Terminates a call and can be sent by the calling or called party
- CANCEL-Cancels any pending searches but does not terminate a call that has already been accepted
- OPTIONS-Queries the capabilities of servers
- REGISTER-Registers the address listed in the To header field with a SIP server
Responses
The following types of responses are used by SIP and generated by the Cisco SIP proxy server:- SIP 1xx-Informational responses
- SIP 2xx-Successful responses
- SIP 3xx-Redirection responses
- SIP 4xx-Client failure responses
- SIP 5xx-Server failure responses
- SIP 6xx-Global failure responses