Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
understanding-SIP.pdf
Скачиваний:
118
Добавлен:
01.03.2016
Размер:
4 Мб
Скачать
☆

SIP Header Fields

167

Route URIs are only valid for the duration of the registration and should be updated when the registration is refreshed.

An example is:

Service-Route: <sip:proxy23.service.provider.com;lr>

6.3.12 SIP-ETag

The SIP-ETag header field [45] is part of the SIP publication mechanism. The SIP-ETag header field is returned in a 2xx response to a PUBLISH request. It contains an entity tag uniquely identifying the state information that has been processed. This entity tag can then be used to do conditional publications on this data including refreshing, modifying, and removing, as described in Section 5.4.13. For example:

SIP-ETag: 34dw9qFl

6.3.13 Unsupported

The Unsupported header field is used to indicate features that are not supported by the server. The header field is used in a 420 Bad Extension response to a request containing an unsupported feature listed in a Require header field. Because multiple features may have been listed in the Require header field, the Unsupported header field indicates all the unsupported features—the rest can be assumed by the UAC to be supported. See Table 6.8 for a list of feature tags.

An example is:

Unsupported: rel100

6.3.14 Warning

The Warning header field is used in a response to provide more specific information than the response code alone can convey. The header field contains a three-digit warning code, a warning agent that indicates what server inserted the header field, and warning text enclosed in quotes used for display purposes. Warning codes in the 1xx and 2xx range are specific to HTTP [2]. The SIP standard defines 12 new warning codes in the 3xx class. The breakdown of the class is shown in Table 6.18. The complete set of defined warning codes is listed in Table 6.19. Warning is not commonly implemented.

Examples are:

Warning: 302 proxy “Incompatible transport protocol”

168

SIP: Understanding the Session Initiation Protocol

 

 

 

Table 6.18

 

 

 

SIP Warning Codes

 

 

Warning Code Range

Error Type

 

 

 

 

 

 

 

 

 

 

30x, 31x, 32x

SDP keywords

 

 

 

 

33x

 

Network services

 

 

 

 

34x, 35x, 36x

Reserved for future use

 

 

 

 

37x

 

QoS parameters

 

 

 

 

38x

 

Reserved

 

 

 

 

39x

 

Miscellaneous

 

 

 

 

 

Table 6.19

 

 

 

SIP Warning Code List

 

Warning

Description

 

 

 

 

Code

 

 

 

 

 

 

 

 

 

300

Incompatible network protocol

 

 

301

Incompatible network address formats

 

 

302

Incompatible transport protocol

 

 

303

Incompatible bandwidth units

 

 

304

Media type not available

 

 

305

Incompatible media format

 

 

306

Attribute not understood

 

 

307

Session description parameter not understood

 

 

330

Multicast not available

 

 

331

Unicast not available

 

 

370

Insufficient bandwidth

 

 

399

Miscellaneous warning

 

Warning: 305 room132.hotel.com:5060 “Incompatible media type”

6.3.15 WWW-Authenticate

The WWW-Authenticate header field is used in a 401 Unauthorized authentication challenge by a UA or registrar server to a UAC. It contains the nature of the challenge so that the UAC may formulate credentials in a Proxy-Authorization header field in a subsequent request. SIP supports HTTP digest authentication mechanisms. Examples are shown in Table 6.20.

6.3.16 RSeq

The RSeq header field [28] is used in provisional (1xx class) responses to INVITEs to request reliable transport. The header field may only be used if the INVITE request contained the Supported: rel100 header field. If present in a provisional

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]