SIP

SIP 200 OK vs 416 Unsupported URI Scheme

SIP 200 (OK) is a 2xx Success response, while 416 (Unsupported URI Scheme) is a 4xx Client Failure response. 200 indicates that the request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully. In contrast, 416 means that the server cannot process the request because the URI scheme in the Request-URI is unknown to the server.

설명

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 server cannot process the request because the URI scheme in the Request-URI is unknown to the server.

이 코드를 보게 되는 경우

When using a URI scheme (e.g., tel:, im:, pres:) that the receiving server does not support.

해결 방법

Use a supported URI scheme. Most SIP servers support sip: and sips: schemes. Check server capabilities with OPTIONS.

주요 차이점

1.

200 is a 2xx Success response, while 416 is a 4xx Client Failure response.

2.

SIP 200: The request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully.

3.

SIP 416: The server cannot process the request because the URI scheme in the Request-URI is unknown to the server.

4.

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).

5.

You encounter 416 when when using a URI scheme (e.g., tel:, im:, pres:) that the receiving server does not support.

언제 어떤 것을 사용할지

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 416 (Unsupported URI Scheme): Use a supported URI scheme. Most SIP servers support sip: and sips: schemes. Check server capabilities with OPTIONS.

더 알아보기