C# Class SIPSorcery.AppServer.DialPlan.DialPlanEngine

Dial plan is in the form: exten = 100,1,Switch(anonymous.invalid,,[email protected]) exten =~ 101,1,Switch(anonymous.invalid,,[email protected])
ファイルを表示 Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
StopScriptMonitoring bool

Public Methods

Method Description
DialPlanEngine ( SIPTransport sipTransport, GetCanonicalDomainDelegate getCanonicalDomain, SIPMonitorLogDelegate logDelegate, SIPSorceryPersistor sipSorceryPersistor, SIPEndPoint outboundProxySocket, string rubyScriptCommonPath, string impersonationUsername, string impersonationPassword, int maxExecutionCount ) : NUnit.Framework
Execute ( DialPlanContext dialPlanContext, ISIPServerUserAgent uas, SIPCallDirection callDirection, DialogueBridgeCreatedDelegate createBridgeDelegate, ISIPCallManager callManager ) : void
GetExecutionCountForUser ( string username ) : int

Gets the number of currently executing dial plan scripts for the specified username.

Private Methods

Method Description
DialPlanEngine ( ) : NUnit.Framework
ExecuteDialPlanLine ( DialPlanLineContext dialPlanContext, ISIPServerUserAgent uas, SIPCallDirection callDirection, DialogueBridgeCreatedDelegate createBridgeDelegate, ISIPCallManager callManager ) : void

Processes the matched dial plan command for an outgoing call request. This method is used for "exten =>" formatted dial plans. In addition if the dial plan owner has requested that their dialplan be used for incoming calls it will process those as well.

ExecuteDialPlanScript ( DialPlanScriptContext dialPlanContext, ISIPServerUserAgent uas, SIPCallDirection callDirection, DialogueBridgeCreatedDelegate createBridgeDelegate, ISIPCallManager callManager ) : void

Processes a dialplan script (currently Ruby scripts only) for a received SIP INVITE request.

ExecuteScript ( SIPSorcery.AppServer.DialPlan.DialPlanExecutingScript executingScript, DialPlanContext dialPlanContext, DialPlanScriptFacade planFacade, string script ) : void
FireProxyLogEvent ( SIPMonitorEvent monitorEvent ) : void
LoadRubyCommonScript ( ) : void
MonitorScripts ( ) : void
ReloadCommonRubyScript ( object sender, FileSystemEventArgs e ) : void

Method Details

DialPlanEngine() public method

public DialPlanEngine ( SIPTransport sipTransport, GetCanonicalDomainDelegate getCanonicalDomain, SIPMonitorLogDelegate logDelegate, SIPSorceryPersistor sipSorceryPersistor, SIPEndPoint outboundProxySocket, string rubyScriptCommonPath, string impersonationUsername, string impersonationPassword, int maxExecutionCount ) : NUnit.Framework
sipTransport SIPSorcery.SIP.SIPTransport
getCanonicalDomain GetCanonicalDomainDelegate
logDelegate SIPMonitorLogDelegate
sipSorceryPersistor SIPSorceryPersistor
outboundProxySocket SIPSorcery.SIP.SIPEndPoint
rubyScriptCommonPath string
impersonationUsername string
impersonationPassword string
maxExecutionCount int
return NUnit.Framework

Execute() public method

public Execute ( DialPlanContext dialPlanContext, ISIPServerUserAgent uas, SIPCallDirection callDirection, DialogueBridgeCreatedDelegate createBridgeDelegate, ISIPCallManager callManager ) : void
dialPlanContext DialPlanContext
uas ISIPServerUserAgent
callDirection SIPCallDirection
createBridgeDelegate DialogueBridgeCreatedDelegate
callManager ISIPCallManager
return void

GetExecutionCountForUser() public method

Gets the number of currently executing dial plan scripts for the specified username.
public GetExecutionCountForUser ( string username ) : int
username string The username to get the execution count for.
return int

Property Details

StopScriptMonitoring public_oe property

public bool StopScriptMonitoring
return bool