📅  最后修改于: 2020-10-29 03:48:42             🧑  作者: Mango
SIP响应是由用户代理服务器(UAS)或SIP服务器生成的消息,用于答复客户端生成的请求。这可能是对UAC防止重发请求的正式承认。
响应中可能包含UAC所需的其他一些信息头字段。
SIP有六个响应。
从HTTP借用了1xx到5xx,在SIP中引入了6xx。
1xx被视为临时响应,其余为最终响应。
S.No. | Function & Description |
---|---|
1 | 1xx: Provisional/Informational Responses
Informational responses are used to indicate call progress. Normally the responses are end to end (except 100 Trying). |
2 | 2xx: Success Responses
This class of responses is meant for indicating that a request has been accepted. |
3 | 3xx: Redirect Responses
Generally these class responses are sent by redirect servers in response to INVITE. They are also known as redirect class responses. |
4 | 4xx: Client Failure Responses
Client error responses indicate that the request cannot be fulfilled as some errors are identified from the UAC side. |
5 | 5xx: Server Failure Response
This class response is used to indicate that the request cannot be processed because of an error with the server. |
6 | 6xx: Global Failure Response
This response class indicates that the server knows that the request will fail wherever it is tried. As a result, the request should not be sent to other locations. |