C# 클래스 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])
파일 보기 프로젝트 열기: sipsorcery/sipsorcery 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
StopScriptMonitoring bool

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

DialPlanEngine() 공개 메소드

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
리턴 NUnit.Framework

Execute() 공개 메소드

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

GetExecutionCountForUser() 공개 메소드

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.
리턴 int

프로퍼티 상세

StopScriptMonitoring 공개적으로 프로퍼티

public bool StopScriptMonitoring
리턴 bool