4xx 响应中的联系人标头?
RFC 3261 中有关 4xx 响应中存在联系标头的声明是矛盾的。有人对此有任何解释吗?
根据 RFC 3261 - 13.2.2.3 -
可能会收到针对INVITE的单个非2xx最终响应。 4xx、5xx 和 6xx 响应可能包含 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重定向或包含Contact的4xx失败响应注册应发送到的位置的标头。
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第 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