SIP .NET Class Library
SIP .NET Class Library
SIP .NET
Independentsoft.Sip
Request Class
Request Constructor
Request Properties
Request Methods

# Request Class

The Request class represents SIP requests or methods in the protocol, since they request a specific action to be taken by another client or server.
Inheritance Hierarchy
System
Object
Independentsoft.Sip
Request
More...

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

    public class Request

    Public Class Request

The Request type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| Request | Initializes a new instance of the Request class.
| Request(Dialog) | Initializes a new instance of the Request class from the specified dialog.
| Request(Response) | Initializes a new instance of the Request class from the specified response.
| Request(Dialog, SipMethod) | Initializes a new instance of the Request class from the specified dialog.
| Request(Response, SipMethod) | Initializes a new instance of the Request class from the specified response.

Top
Properties

| Name | Description
--- | --- | ---
| Body | Gets or sets the request body.
| Branch | Sets or gets branch parameter in Via header.
| CallID | Gets or sets Call-ID header field. The Call-ID header field is mandatory in all requests. It is used to uniquely identify a call between two clients. If is not set then the SipClient will set this header.
| ContentLength | Gets o sets Content-Length header field. The Content-Length header field indicates the size of the request body. If no body is present in a request, then the Content-Length header field value must be zero.
| ContentType | Gets or sets Content-Type header field. The Content-Type header field is used to specify the Internet media type in the request body. Media types have the familiar form type/sub-type. If this header field is not present, application/sdp is assumed.
| CSeq | Gets CSeq header field. The CSeq header field is a required header field in every request. The CSeq header field contains a number that increases for each request. Usually, it increases by 1 for each new request, with the exception of CANCEL and ACK requests, which use the CSeq number of the INVITE request to which it refers.
| Date | Gets or sets Date header field. The Date header field is used to convey the date when the request is sent.
| From | Gets or sets From header field. The From header field is a required header field that indicates the originator of the request.
| Header | Gets the request header.
| MaxForwards | Gets or sets Max-Forwards header field. The Max-Forwards header field is used to indicate the maximum number of hops that a the request may take. The value of the header field is decremented by each proxy that forwards the request. If is not set then the SipClient will set this header.
| Method | Gets the request method.
| SessionDescription | Returns the request body as SessionDescription if Content-Type is "application/sdp", otherwise returns null. Sets request body and sets Content-Type as "application/sdp".
| To | Gets or sets To header field. The To header field is a required header field in every request used to indicate the recipient of the request.
| Uri | Gets or sets request URI. It indicates the user or service to which this request is being addressed.
| 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".

Top
Methods

| Name | Description
--- | --- | ---
| Equals | (Inherited from Object.)
| Finalize | (Inherited from Object.)
| GetHashCode | (Inherited from Object.)
| GetType | (Inherited from Object.)
| MemberwiseClone | (Inherited from Object.)
| Parse | Converts the specified string representation of a request to its Request equivalent.
| ToString | Converts the value of this instance to its equivalent string representation. (Overrides Object ToString .)

Top
See Also

#### Reference

Independentsoft.Sip Namespace
Inheritance Hierarchy
System
Object
Independentsoft.Sip
Request
Independentsoft.Sip.Methods
Ack
Independentsoft.Sip.Methods
Bye
Independentsoft.Sip.Methods
Cancel
Independentsoft.Sip.Methods
Info
Independentsoft.Sip.Methods
Invite
Independentsoft.Sip.Methods
Message
Independentsoft.Sip.Methods
Notify
Independentsoft.Sip.Methods
Options
Independentsoft.Sip.Methods
Prack
Independentsoft.Sip.Methods
Publish
Independentsoft.Sip.Methods
Refer
Independentsoft.Sip.Methods
Register
Independentsoft.Sip.Methods
Subscribe
Independentsoft.Sip.Methods
Update

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de