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])
Afficher le fichier Open project: sipsorcery/sipsorcery Class Usage Examples

Méthodes publiques

Свойство Type Description
StopScriptMonitoring bool

Méthodes publiques

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

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

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
Résultat NUnit.Framework

Execute() public méthode

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

GetExecutionCountForUser() public méthode

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.
Résultat int

Property Details

StopScriptMonitoring public_oe property

public bool StopScriptMonitoring
Résultat bool