SIP .NET Class Library
SIP .NET Class Library
SIP .NET
Independentsoft.Sip.Responses
Forbidden Class
Forbidden Constructor
Forbidden Properties
Forbidden Methods

# Forbidden Class

The Forbidden class represents Forbidden response with status code 403 and default description text "Forbidden". The Forbidden response is used to deny a request without giving the caller any recourse. It is sent when the client has understood the request, found the request to be correctly formulated, but will not service the request.
Inheritance Hierarchy
System
Object
Independentsoft.Sip
Response
Independentsoft.Sip.Responses
Forbidden

Namespace: Independentsoft.Sip.Responses
Assembly: Independentsoft.Sip (in Independentsoft.Sip.dll) Version: 1.0.700.17927
Syntax
C#
VB
Copy

    public class Forbidden : Response

    Public Class Forbidden
    	Inherits Response

The Forbidden type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| Forbidden | Initializes a new instance of the Forbidden class.

Top
Properties

| Name | Description
--- | --- | ---
| Body | Gets or sets response body text. (Inherited from Response.)
| CallID | Gets or sets Call-ID header field. The Call-ID header field is mandatory in all responses. It is used to uniquely identify a call between two clients. (Inherited from Response.)
| Contact | Gets or sets Contact header field. The Contact header field is used to convey a URI that identifies the response originator. (Inherited from Response.)
| ContentLength | Gets Content-Length header field. The Content-Length header field indicates the size of the response body. If no body is present in a request, then the Content-Length header field value must be zero. (Inherited from Response.)
| ContentType | Gets or sets Content-Type header field. The Content-Type header field is used to specify the Internet media type in the response body. Media types have the familiar form type/sub-type. If this header field is not present, application/sdp is assumed. (Inherited from Response.)
| CSeq | Gets CSeq header field. The CSeq header field is a required header field in every response. The CSeq header field contains a number that is same as in appropirate request. (Inherited from Response.)
| Description | Gets or sets response description. (Inherited from Response.)
| From | Gets or sets From header field. (Inherited from Response.)
| Header | Gets response header. (Inherited from Response.)
| Sent | Indicates if response is sent or received. (Inherited from Response.)
| SessionDescription | Returns the response body as SessionDescription if Content-Type is "application/sdp", otherwise returns null. Sets response body and sets Content-Type as "application/sdp". (Inherited from Response.)
| SipVersion | Gets SIP protocol version number. (Inherited from Response.)
| StatusCode | Gets or sets response status code. (Inherited from Response.)
| To | Gets or sets To header field. (Inherited from Response.)
| Via | Gets or sets Via header field. The Via header field indicates the path taken by the request so far and indicates the path that should be followed in routing responses. The "branch" parameter in the Via header field values serves as a transaction identifier, and is used by proxies to detect loops. The Via header field value contains the transport protocol used to send the message, the client's host name or network address, and possibly the port number at which it wishes to receive responses. The Via header field value can also contain parameters such as "maddr", "ttl", "received" and "branch". (Inherited from Response.)

Top
Methods

| Name | Description
--- | --- | ---
| Equals | (Inherited from Object.)
| Finalize | (Inherited from Object.)
| GetHashCode | (Inherited from Object.)
| GetType | (Inherited from Object.)
| MemberwiseClone | (Inherited from Object.)
| ToString | Converts the value of this instance to its equivalent string representation. (Inherited from Response.)

Top
See Also

#### Reference

Independentsoft.Sip.Responses Namespace

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de