SIP Accept 和 SIP Accept-Contact 的值
我试图找出 Accept 和 Accept-Contact 标头字段的可能值范围,但我在 RFC 中找不到完整列表。有谁知道他们在哪里?我经常看到
Accept: application/sdp;level=1, application/x-private, text/html
但不知道所有可能的值。更一般地说,我在哪里可以找到 SIP 标头的所有可能值?
谢谢,
I am trying to find out the range of possible values of Accept and Accept-Contact header fields, but I can't find a complete list in the RFCs. Does anyone know where they are? I often see
Accept: application/sdp;level=1, application/x-private, text/html
but don't know all possible values. More generally, where can I find all possible values of SIP headers?
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
[SIP RFC]1 中的很多部分基于[HTTP 1.1 RFC]2 承认 SIP 和 HTTP 的语义非常相似。 SIP Accept 标头就是一个很好的例子。处理 Accept 标头的 SIP RFC 部分参考 [H14.1],它转换为 HTTP 1.1 RFC 中的第 14.1 节,并详细介绍了 Accept 标头如何标头可用于指定响应中可接受的不同类型的媒体。
在现实世界中,90% 的情况下,SIP 响应媒体将是 application/sdp。会有接受其他类型响应媒体的 SIP 请求,但它们并不常见。
A lot of sections in the [SIP RFC]1 are based on the [HTTP 1.1 RFC]2 in acknowledgement that the semantics of SIP and HTTP are very similar. The SIP Accept header is a good case in point. The SIP RFC section that deals with the Accept header refers to [H14.1] which translates to section 14.1 in the HTTP 1.1 RFC and which goes into detail about how the Accept header can be used to specify the different types of media that are acceptable in the response.
That all being said in the real World 90% of the time the SIP response media is going to be application/sdp. There will be SIP requests that accept other types of response media but they are not that common.
Bob 你正在寻找的是 MIME 类型。
您可以在这里找到一些常见的 MIME 类型
http://en.wikipedia.org/wiki/Internet_media_type
SIP 的文本格式源自 HTTP,因此您也可以参考 HTTP 标头来了解其他标头的可能值。
Bob what you are looking is MIME types.
You find some common MIME type here
http://en.wikipedia.org/wiki/Internet_media_type
A text formation of SIP is derive from HTTP so you can refer HTTP headers also to fine possible values of other headers.
列出了大多数标头和参数及其相应的 RFC: http://www.iana.org/assignments/ sip参数
Most headers and parameter with their corresponding RFC are listed: http://www.iana.org/assignments/sip-parameters