0105 Require

Assuming the UAS decides that it is the proper element to process the

   request, it examines the Require header field, if present.

 

   The Require header field is used by a UAC to tell a UAS about SIP

   extensions that the UAC expects the UAS to support in order to

   process the request properly.  Its format is described in Section

   20.32.  If a UAS does not understand an option-tag listed in a

   Require header field, it MUST respond by generating a response with

   status code 420 (Bad Extension).  The UAS MUST add an Unsupported

   header field, and list in it those options it does not understand

   amongst those in the Require header field of the request.

 

   Note that Require and Proxy-Require MUST NOT be used in a SIP CANCEL

   request, or in an ACK request sent for a non-2xx response.  These

   header fields MUST be ignored if they are present in these requests.

 

   An ACK request for a 2xx response MUST contain only those Require and

   Proxy-Require values that were present in the initial request.

 

   Example:

 

      UAC->UAS:   INVITE sip:watson@bell-telephone.com SIP/2.0

                  Require: 100rel

 

      UAS->UAC:   SIP/2.0 420 Bad Extension

                  Unsupported: 100rel

 

      This behavior ensures that the client-server interaction will

      proceed without delay when all options are understood by both

      sides, and only slow down if options are not understood (as in the

      example above).  For a well-matched client-server pair, the

      interaction proceeds quickly, saving a round-trip often required

      by negotiation mechanisms.  In addition, it also removes ambiguity

      when the client requires features that the server does not

      understand.  Some features, such as call handling fields, are only

      of interest to end systems.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值