3.2.5.1 Processing a SIP Request

The Focus Factory SHOULD take the following steps when processing any SIP request:

  1. Retrieve the body of the SIP request and parse it to verify that it is well-formed XML.

  2. Validate that the root element of the XML conforms to the request message syntax specified in section 2.2.2.

  3. Identify the type of request by comparing the child element of the request element to the list of valid requests specified in section 2.2.2 and validate that the XML conforms to the message syntax for that request type.

If any of the steps in the previous procedure fail, stop further processing and return a 400 SIP response code with no body.

The processing of each of type of request is specified in subsequent sections of the protocol. In the following section, a success response means the response with "success" code attribute, and a failure response is the response with "failure" code attribute.