C# Class SIPSorcery.Servers.SIPCallManager

Inheritance: ISIPCallManager
Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AddWaitingApplication() public method

public AddWaitingApplication ( CallbackWaiter callbackWaiter ) : void
callbackWaiter SIPSorcery.SIP.App.CallbackWaiter
return void

BlindTransfer() public method

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
return ISIPServerUserAgent

CreateDialogueBridge() public method

public CreateDialogueBridge ( SIPDialogue clientDiaglogue, SIPDialogue forwardedDialogue, string owner ) : void
clientDiaglogue SIPSorcery.SIP.SIPDialogue
forwardedDialogue SIPSorcery.SIP.SIPDialogue
owner string
return void

GetCurrentCallCount() public method

public GetCurrentCallCount ( string owner ) : int
owner string
return int

ProcessCallback() public method

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.
return string

ProcessWebCall() public method

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.
return string

QueueNewCall() public method

public QueueNewCall ( ISIPServerUserAgent serverUA ) : void
serverUA ISIPServerUserAgent
return void

ReInvite() public method

public ReInvite ( SIPDialogue dialogue, SIPDialogue substituteDialogue ) : void
dialogue SIPSorcery.SIP.SIPDialogue
substituteDialogue SIPSorcery.SIP.SIPDialogue
return void

SIPCallManager() public method

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
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void