C# Класс SipSharp.SipStack

Наследование: ISipStack
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AddTransport() публичный Метод

public AddTransport ( ITransport transport ) : void
transport ITransport
Результат void

CreateClientTransaction() публичный Метод

public CreateClientTransaction ( IRequest request ) : IClientTransaction
request IRequest
Результат IClientTransaction

CreateRequest() публичный Метод

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
Результат IRequest

CreateServerTransaction() публичный Метод

public CreateServerTransaction ( IRequest request ) : IServerTransaction
request IRequest
Результат IServerTransaction

Register() публичный Метод

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
Результат void

Send() публичный Метод

public Send ( IRequest request ) : IClientTransaction
request IRequest
Результат IClientTransaction

SipStack() публичный Метод

public SipStack ( ) : System
Результат System

Start() публичный Метод

Start stack.
public Start ( ) : void
Результат void