C# Класс SIPSorcery.Servers.SIPCallManager

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

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

Метод Описание
AddWaitingApplication ( CallbackWaiter callbackWaiter ) : void
BlindTransfer ( string username, SIPURI referTo, string dialplanName, SIPDialogue replacesDialogue ) : ISIPServerUserAgent

Processes an in dialogue REFER request that specifies a new destination for an existing call leg.

CreateDialogueBridge ( SIPDialogue clientDiaglogue, SIPDialogue forwardedDialogue, string owner ) : void
GetCurrentCallCount ( string owner ) : int
ProcessCallback ( string username, string dialString1, string dialString2 ) : string

Processes the callback action that is initiated by the callmanager service. The callback method is typically initiated from a link on an authenticated web page and requires the user to be authenticated.

ProcessWebCall ( string username, string number, string dialplanName, string replacesCallID ) : string

Processes actions initiated by the callmanager web service EXCEPT for the callback method.

QueueNewCall ( ISIPServerUserAgent serverUA ) : void
ReInvite ( SIPDialogue dialogue, SIPDialogue substituteDialogue ) : void
SIPCallManager ( SIPTransport sipTransport, SIPEndPoint outboundProxy, SIPMonitorLogDelegate logDelegate, SIPDialogueManager sipDialogueManager, SIPAssetPersistor sipDialoguePersistor, SIPAssetPersistor sipCDRPersistor, DialPlanEngine dialPlanEngine, SIPAssetGetDelegate getDialPlan, SIPAssetGetDelegate getSIPAccount, SIPAssetGetListDelegate getSIPAccountBindings, SIPAssetGetListDelegate getSIPProviders, GetCanonicalDomainDelegate getCanonicalDomain, SIPAssetPersistor customerPersistor, SIPAssetPersistor dialPlanPersistor, string traceDirectory, bool monitorCalls, int dailyCallLimit ) : System
Start ( ) : void
Stop ( ) : void

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

Метод Описание
GetDialPlanAndCustomer ( string owner, string dialPlanName, ISIPServerUserAgent uas, Customer &customer, SIPDialPlan &dialPlan ) : bool
GetDummyWebCallbackTransaction ( string number ) : UASInviteTransaction

Creates a dummy INVITE transaction to act as a substitute incoming call for dialplan executions that have been initiated from a web request.

GetNextExpiredCall ( ) : SIPDialogueAsset
InitialiseDispatcherProxies ( ) : void
IsDialPlanExecutionAllowed ( SIPDialPlan dialPlan, Customer customer ) : bool
MonitorCalls ( ) : void
OnCallHungup ( SIPDialogue sipDialogue ) : void
ProcessNewCall ( ISIPServerUserAgent uas ) : void
ProcessNewCalls ( string threadName ) : void

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

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

public AddWaitingApplication ( CallbackWaiter callbackWaiter ) : void
callbackWaiter SIPSorcery.SIP.App.CallbackWaiter
Результат void

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

Processes an in dialogue REFER request that specifies a new destination for an existing call leg.
public BlindTransfer ( string username, SIPURI referTo, string dialplanName, SIPDialogue replacesDialogue ) : ISIPServerUserAgent
username string The username of the user the transfer is being processed for.
referTo SIPSorcery.SIP.SIPURI The Refer-To header URI from the REFER request.
dialplanName string The dialplan to use to process the transfer.
replacesDialogue SIPSorcery.SIP.SIPDialogue
Результат ISIPServerUserAgent

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

public CreateDialogueBridge ( SIPDialogue clientDiaglogue, SIPDialogue forwardedDialogue, string owner ) : void
clientDiaglogue SIPSorcery.SIP.SIPDialogue
forwardedDialogue SIPSorcery.SIP.SIPDialogue
owner string
Результат void

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

public GetCurrentCallCount ( string owner ) : int
owner string
Результат int

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

Processes the callback action that is initiated by the callmanager service. The callback method is typically initiated from a link on an authenticated web page and requires the user to be authenticated.
public ProcessCallback ( string username, string dialString1, string dialString2 ) : string
username string The authenticated username of the user making the callback request.
dialString1 string The first leg dial string of the callback.
dialString2 string The second leg dial string of the callback.
Результат string

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

Processes actions initiated by the callmanager web service EXCEPT for the callback method.
public ProcessWebCall ( string username, string number, string dialplanName, string replacesCallID ) : string
username string The UNAUTHENTICATED username that was specified in the callmanager request URL.
number string The number parameter that was specified in the callmanager request URL.
dialplanName string The dialplan to use to process web calls, typically this will be ahrd coded to a known dialplan name.
replacesCallID string The replacesCallID parameter that was specified in the callmanager request URL.
Результат string

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

public QueueNewCall ( ISIPServerUserAgent serverUA ) : void
serverUA ISIPServerUserAgent
Результат void

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

public ReInvite ( SIPDialogue dialogue, SIPDialogue substituteDialogue ) : void
dialogue SIPSorcery.SIP.SIPDialogue
substituteDialogue SIPSorcery.SIP.SIPDialogue
Результат void

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

public SIPCallManager ( SIPTransport sipTransport, SIPEndPoint outboundProxy, SIPMonitorLogDelegate logDelegate, SIPDialogueManager sipDialogueManager, SIPAssetPersistor sipDialoguePersistor, SIPAssetPersistor sipCDRPersistor, DialPlanEngine dialPlanEngine, SIPAssetGetDelegate getDialPlan, SIPAssetGetDelegate getSIPAccount, SIPAssetGetListDelegate getSIPAccountBindings, SIPAssetGetListDelegate getSIPProviders, GetCanonicalDomainDelegate getCanonicalDomain, SIPAssetPersistor customerPersistor, SIPAssetPersistor dialPlanPersistor, string traceDirectory, bool monitorCalls, int dailyCallLimit ) : System
sipTransport SIPSorcery.SIP.SIPTransport
outboundProxy SIPSorcery.SIP.SIPEndPoint
logDelegate SIPMonitorLogDelegate
sipDialogueManager SIPDialogueManager
sipDialoguePersistor SIPAssetPersistor
sipCDRPersistor SIPAssetPersistor
dialPlanEngine SIPSorcery.AppServer.DialPlan.DialPlanEngine
getDialPlan SIPAssetGetDelegate
getSIPAccount SIPAssetGetDelegate
getSIPAccountBindings SIPAssetGetListDelegate
getSIPProviders SIPAssetGetListDelegate
getCanonicalDomain GetCanonicalDomainDelegate
customerPersistor SIPAssetPersistor
dialPlanPersistor SIPAssetPersistor
traceDirectory string
monitorCalls bool
dailyCallLimit int
Результат System

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

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

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

public Stop ( ) : void
Результат void