4xx 响应中的联系人标头?

发布于 2024-10-25 06:59:23 字数 734 浏览 10 评论 0原文

RFC 3261 中有关 4xx 响应中存在联系标头的声明是矛盾的。有人对此有任何解释吗?

根据 RFC 3261 - 13.2.2.3 -

可能会收到针对INVITE的单个非2xx最终响应。 4xx5xx6xx 响应可能包含 Contact 标头字段值,指示有关错误的附加信息的位置可以找到。必须忽略后续的最终响应(仅在错误情况下才会到达)。

然而,在 RFC 3261 第 20.1 节中

 联系方式 R o - - moo
 联系方式 1xx - - - o - -
 联系 2xx - - - 哞
 联系方式 3xx d - o - ooo
 联系 485 - o - ooo

Alan B. Johnston 所著的《SIP:了解会话启动协议》一书第 77 页也提到了这一点

发送REGISTER请求的用户代理可能会收到3xx重定向或包含Contact4xx失败响应注册应发送到的位置的标头。

The Statement in RFC 3261 about presence of Contact Header in 4xx responses are contradictory. Does anyone have any explanation for the same?

As per RFC 3261 - 13.2.2.3 -

A single non-2xx final response may be received for the INVITE. 4xx, 5xx and 6xx responses may contain a Contact header field value indicating the location where additional information about the error can be found. Subsequent final responses (which would only arrive under error conditions) MUST be ignored.

However, in RFC 3261 Section 20.1

 Contact                 R            o   -   -   m   o   o
 Contact                1xx           -   -   -   o   -   -
 Contact                2xx           -   -   -   m   o   o
 Contact                3xx      d    -   o   -   o   o   o
 Contact                485           -   o   -   o   o   o

Also the Book "SIP: understanding the Session Initiation Protocol" By Alan B. Johnston Page 77 says that

A user agent sending a REGISTER request may receive a 3xx redirection or 4xx failure response containing a Contact header of the location to which registrations should be sent.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

贱贱哒 2024-11-01 06:59:23

第 13.2.2.3 节可能应该读作“Error-Info 标头字段值,指示可以找到有关错误的附加信息的位置”。

此问题已在 SIP 实施者小组中得到解决:
http://www.mail-archive.com/< span class="__cf_email__" data-cfemail="afdcc6df82c6c2dfc3cac2cac1dbc0dddcefccdc81ccc0c3dac2cdc6ce81cacbda">[电子邮件受保护]/msg10493.html

The section 13.2.2.3 should probably read "an Error-Info header field value indicating the location where additional information about the error can be found".

This question was resolved on the SIP Implementers group:
http://www.mail-archive.com/[email protected]/msg10493.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文