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])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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