SIP 200 OK vs 202 Accepted
Both SIP 200 (OK) and 202 (Accepted) belong to the 2xx Success category. 200 indicates that the request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully. Meanwhile, 202 means that the request has been accepted for processing but the processing has not been completed. Used primarily for REFER requests.
คำอธิบาย
The request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully.
เมื่อคุณพบเห็น
When a call is answered (INVITE 200 OK), a registration succeeds (REGISTER 200 OK), or a subscription is accepted (SUBSCRIBE 200 OK).
วิธีแก้ไข
No fix needed — this is a success response. The caller should send an ACK to complete the three-way handshake for INVITE transactions.
คำอธิบาย
The request has been accepted for processing but the processing has not been completed. Used primarily for REFER requests.
เมื่อคุณพบเห็น
After sending a REFER request for call transfer. The transfer target acknowledges receipt but hasn't completed the transfer yet.
วิธีแก้ไข
Wait for a NOTIFY to learn the outcome of the referred action. If no NOTIFY arrives, check subscription state and network connectivity.
ความแตกต่างหลัก
SIP 200: The request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully.
SIP 202: The request has been accepted for processing but the processing has not been completed. Used primarily for REFER requests.
You encounter 200 when when a call is answered (INVITE 200 OK), a registration succeeds (REGISTER 200 OK), or a subscription is accepted (SUBSCRIBE 200 OK).
You encounter 202 when after sending a REFER request for call transfer. The transfer target acknowledges receipt but hasn't completed the transfer yet.
ควรใช้อันไหนเมื่อไร
For 200 (OK): No fix needed — this is a success response. The caller should send an ACK to complete the three-way handshake for INVITE transactions. For 202 (Accepted): Wait for a NOTIFY to learn the outcome of the referred action. If no NOTIFY arrives, check subscription state and network connectivity.