C# Class SipSharp.SipStack

Inheritance: ISipStack
Show file Open project: jgauffin/SipSharp

Public Methods

Method Description
AddTransport ( ITransport transport ) : void
CreateClientTransaction ( IRequest request ) : IClientTransaction
CreateRequest ( string method, Contact from, Contact to ) : IRequest

Create a new request

CreateServerTransaction ( IRequest request ) : IServerTransaction
Register ( IRequestHandler handler ) : void

A request have been received by the stack

A response have been received by the stack

Register a request handler.

Requests handled by transactions or dialogs are not being handled by this event.

A new transaction are automatically created by the stack and attached to this event.

Responses handled by transactions or dialogs are not being handled by this event.

A new transaction are automatically created by the stack and attached to this event.
Send ( IRequest request ) : IClientTransaction
SipStack ( ) : System
Start ( ) : void

Start stack.

Private Methods

Method Description
CheckAuthentication ( IRequest request, IServerTransaction transaction ) : bool
CreateBranch ( ) : string
CreateCallId ( ) : string
CreateTag ( ) : string
GetNextSequenceNumber ( ) : int
OnRequest ( object sender, RequestEventArgs e ) : void

A request was received from the transaction layer.

OnResponse ( object sender, ResponseEventArgs e ) : void

Method Details

AddTransport() public method

public AddTransport ( ITransport transport ) : void
transport ITransport
return void

CreateClientTransaction() public method

public CreateClientTransaction ( IRequest request ) : IClientTransaction
request IRequest
return IClientTransaction

CreateRequest() public method

Create a new request
public CreateRequest ( string method, Contact from, Contact to ) : IRequest
method string Sip method.
from Contact Who is dialing?
to Contact Destination
return IRequest

CreateServerTransaction() public method

public CreateServerTransaction ( IRequest request ) : IServerTransaction
request IRequest
return IServerTransaction

Register() public method

A request have been received by the stack A response have been received by the stack Register a request handler.

Requests handled by transactions or dialogs are not being handled by this event.

A new transaction are automatically created by the stack and attached to this event.

Responses handled by transactions or dialogs are not being handled by this event.

A new transaction are automatically created by the stack and attached to this event.
public Register ( IRequestHandler handler ) : void
handler IRequestHandler Delegate used to process
return void

Send() public method

public Send ( IRequest request ) : IClientTransaction
request IRequest
return IClientTransaction

SipStack() public method

public SipStack ( ) : System
return System

Start() public method

Start stack.
public Start ( ) : void
return void