SIP request methods

There are several request methods in SIP and new methods are created all the time (PRACK, for example) by the IETF. IETF RFC 2543 (basic SIP) defines:

In this tutorial, the SIP methods INVITE, ACK, CANCEL, and BYE are used. In addition, the PRACK method will also be used. The PRACK request plays the same role as ACK, but is for provisional responses. PRACK is a normal SIP message, however, like BYE and has it's own response unlike ACK. For more information about the PRACK method, visit the relevant RFC 3262.

There are other standard request methods besides the ones mentioned above. These are not used in the tutorial described in this developer's guide, but are listed below (with links to individual descriptions) for your convenience.

It is also possible to send non-standard methods, but those are out of the scope of this developer's guide.

Response types are listed below, notice that they are similar to those of HTTP:

In the part of this specification that describes the MIDlets, you will primarily encounter the 1xx and 2xx series of replies, most notably the 180 (Ringing) and 200 (Ok). The SIP responses are described in RFC 3261.

Figure 130: Flowchart example 1

This flowchart demonstrates a standard type of SIP media session, where the contact is made through proxy servers using the INVITE SIP method. The use of BYE terminates the contact.

Figure 131: Flowchart example 2

This is another example, demonstrating the use of the SIP method CANCEL, which is used here to cancel a call after the Caller decides to wait for an answer no longer.