RFC3261: SIP:20.43 Warning

20.43 Warning

   The Warning header field is used to carry additional information about the status of a response.  Warning header field values are sent with responses and contain a three-digit warning code, host name, and warning text.

Warning报头字段用于携带有关响应状态的其他信息。Warning报头字段值随响应一起发送,包含三位警告代码、主机名和警告文本。

   The "warn-text" should be in a natural language that is most likely to be intelligible to the human user receiving the response.  This decision can be based on any available knowledge, such as the location of the user, the Accept-Language field in a request, or the Content-Language field in a response.  The default language is i-default [21].
​
“警告文本”应采用最有可能被接收响应的人类用户理解的自然语言。该决定可以基于任何可用的知识,例如用户的位置、请求中的“Accept-Language”字段或响应中的“Content-Language”字段。默认语言为i-default[21]。

   The currently-defined "warn-code"s are listed below, with a recommended warn-text in English and a description of their meaning. These warnings describe failures induced by the session description. The first digit of warning codes beginning with "3" indicates warnings specific to SIP.  Warnings 300 through 329 are reserved for indicating problems with keywords in the session description, 330 through 339 are warnings related to basic network services requested in the session description, 370 through 379 are warnings related to quantitative QoS parameters requested in the session description, and 390 through 399 are miscellaneous warnings that do not fall into one of the above categories.

下面列出了当前定义的“警告代码”,以及建议的英文警告文本及其含义说明。这些警告描述了由会话描述引起的故障。以“3”开头的警告代码的第一位表示特定于SIP的警告。警告300到329被保留用于指示会话描述中的关键字的问题,330到339是与会话描述中请求的基本网络服务相关的警告,370到379是与在会话描述中所请求的定量QoS参数相关的警告并且390到399是不属于上述类别之一的杂项警告。

      300 Incompatible network protocol: One or more network protocols contained in the session description are not available.

300不兼容的网络协议:会话描述中包含的一个或多个网络协议不可用。

      301 Incompatible network address formats: One or more network address formats contained in the session description are not available.

301不兼容的网络地址格式:会话描述中包含的一个或多个网络地址格式不可用。

      302 Incompatible transport protocol: One or more transport protocols described in the session description are not available.

302不兼容的传输协议:会话描述中描述的一个或多个传输协议不可用。

      303 Incompatible bandwidth units: One or more bandwidth measurement units contained in the session description were not understood.

303不兼容的带宽单元:无法理解会话描述中包含的一个或多个带宽测量单元。

      304 Media type not available: One or more media types contained in the session description are not available.

304媒体类型不可用:会话描述中包含的一个或多个媒体类型不可使用。

      305 Incompatible media format: One or more media formats contained in the session description are not available.

305不兼容的媒体格式:会话描述中包含的一个或多个媒体格式不可用。

      306 Attribute not understood: One or more of the media attributes in the session description are not supported.

306属性无法理解:不支持会话描述中的一个或多个媒体属性。

      307 Session description parameter not understood: A parameter other than those listed above was not understood.

307无法理解会话描述参数:无法理解除上面列出的参数之外的其他参数。

      330 Multicast not available: The site where the user is located does not support multicast.

330多播不可用:用户所在的站点不支持多播。

      331 Unicast not available: The site where the user is located does not support unicast communication (usually due to the presence of a firewall).

331单播不可用:用户所在的站点不支持单播通信(通常是由于存在防火墙)。

      370 Insufficient bandwidth: The bandwidth specified in the session description or defined by the media exceeds that known to be available.

370带宽不足:会话描述中指定的或媒体定义的带宽超过了已知的可用带宽。

      399 Miscellaneous warning: The warning text can include arbitrary information to be presented to a human user or logged.  A system receiving this warning MUST NOT take any automated action.

399其他警告:警告文本可以包括要呈现给人类用户或记录的任意信息。收到此警告的系统不得采取任何自动操作。

             1xx and 2xx have been taken by HTTP/1.1.

1xx和2xx已被HTTP/1.1获取。

   Additional "warn-code"s can be defined through IANA, as defined in Section 27.2.

​额外的“警告代码”可以通过IANA定义,如第27.2节所定义。

   Examples:

示例:

      Warning: 307 isi.edu "Session parameter 'foo' not understood"
      Warning: 301 isi.edu "Incompatible network address type 'E.164'"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值