C# Class SipSharp.SipStack

Inheritance: ISipStack
Afficher le fichier Open project: jgauffin/SipSharp

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddTransport ( ITransport transport ) : void
transport ITransport
Résultat void

CreateClientTransaction() public méthode

public CreateClientTransaction ( IRequest request ) : IClientTransaction
request IRequest
Résultat IClientTransaction

CreateRequest() public méthode

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
Résultat IRequest

CreateServerTransaction() public méthode

public CreateServerTransaction ( IRequest request ) : IServerTransaction
request IRequest
Résultat IServerTransaction

Register() public méthode

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
Résultat void

Send() public méthode

public Send ( IRequest request ) : IClientTransaction
request IRequest
Résultat IClientTransaction

SipStack() public méthode

public SipStack ( ) : System
Résultat System

Start() public méthode

Start stack.
public Start ( ) : void
Résultat void