C# Class SipSharp.Servers.Agent.UserAgentClient

Datei anzeigen Open project: jgauffin/SipSharp

Public Methods

Method Description
UserAgentClient ( ) : System

Protected Methods

Method Description
CreateRandomString ( ) : string
CreateRandomString ( int length ) : string
GetNextSequenceNumber ( ) : int

Private Methods

Method Description
CreateRequest ( string method, Contact from, Contact to ) : IRequest

Create a request

A valid SIP request formulated by a UAC MUST, at a minimum, contain the following header fields: To, From, CSeq, Call-ID, Max-Forwards, and Via; all of these header fields are mandatory in all SIP requests. These six header fields are the fundamental building blocks of a SIP message, as they jointly provide for most of the critical message routing services including the addressing of messages, the routing of responses, limiting message propagation, ordering of messages, and the unique identification of transactions. These header fields are in addition to the mandatory request line, which contains the method, Request-URI, and SIP version.

Examples of requests sent outside of a dialog include an INVITE to establish a session (RFC3261 - Section 13) and an OPTIONS to query for capabilities (RFC3261 - Section 11).

Read section 8.1.1 in RFC3261 for more information

Method Details

CreateRandomString() protected method

protected CreateRandomString ( ) : string
return string

CreateRandomString() protected method

protected CreateRandomString ( int length ) : string
length int
return string

GetNextSequenceNumber() protected method

protected GetNextSequenceNumber ( ) : int
return int

UserAgentClient() public method

public UserAgentClient ( ) : System
return System