C# Класс SIPSorcery.AppServer.DialPlan.DialPlanLineContext

Наследование: DialPlanContext
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DialPlanLineContext ( SIPMonitorLogDelegate monitorLogDelegate, SIPTransport sipTransport, DialogueBridgeCreatedDelegate createBridge, SIPEndPoint outboundProxy, ISIPServerUserAgent sipServerUserAgent, SIPDialPlan dialPlan, List sipProviders, string traceDirectory, string callersNetworkId, Customer customer ) : System
GetDialPlanExactMatch ( SIPRequest sipRequest ) : SIPSorcery.AppServer.DialPlan.DialPlanCommand

Used for incoming calls where an exact match is required on the sipswitch username.

GetDialPlanMatch ( string callDestination ) : SIPSorcery.AppServer.DialPlan.DialPlanCommand

Decides on which dial plan line matches an incoming call request. The decision is made by attempting to locate a match in the user's dial plan. Variable substitutions, all case insensitive: - ${dst} and ${exten} will be replaced with request URI user, if ${exten:2} two chars will be trimmed from the start, - ${fromname} will be replaced with the From header name, - ${fromuriuser} will be replaced with the From header URI user. Extension (or more correctly SIP URI user matching): - If the pattern starts with an _ then Asterisk compaitble mode is used: - X = any digit, - Z = any digit 1 to 9, - N = any digit 2 to 9. - Otherwise the match is either an equality or regex match depending on the operator.

Приватные методы

Метод Описание
ParseDialPlan ( string dialPlanEntries ) : void

Описание методов

DialPlanLineContext() публичный Метод

public DialPlanLineContext ( SIPMonitorLogDelegate monitorLogDelegate, SIPTransport sipTransport, DialogueBridgeCreatedDelegate createBridge, SIPEndPoint outboundProxy, ISIPServerUserAgent sipServerUserAgent, SIPDialPlan dialPlan, List sipProviders, string traceDirectory, string callersNetworkId, Customer customer ) : System
monitorLogDelegate SIPMonitorLogDelegate
sipTransport SIPSorcery.SIP.SIPTransport
createBridge DialogueBridgeCreatedDelegate
outboundProxy SIPSorcery.SIP.SIPEndPoint
sipServerUserAgent ISIPServerUserAgent
dialPlan SIPSorcery.SIP.App.SIPDialPlan
sipProviders List
traceDirectory string
callersNetworkId string
customer SIPSorcery.CRM.Customer
Результат System

GetDialPlanExactMatch() публичный Метод

Used for incoming calls where an exact match is required on the sipswitch username.
public GetDialPlanExactMatch ( SIPRequest sipRequest ) : SIPSorcery.AppServer.DialPlan.DialPlanCommand
sipRequest SIPSorcery.SIP.SIPRequest
Результат SIPSorcery.AppServer.DialPlan.DialPlanCommand

GetDialPlanMatch() публичный Метод

Decides on which dial plan line matches an incoming call request. The decision is made by attempting to locate a match in the user's dial plan. Variable substitutions, all case insensitive: - ${dst} and ${exten} will be replaced with request URI user, if ${exten:2} two chars will be trimmed from the start, - ${fromname} will be replaced with the From header name, - ${fromuriuser} will be replaced with the From header URI user. Extension (or more correctly SIP URI user matching): - If the pattern starts with an _ then Asterisk compaitble mode is used: - X = any digit, - Z = any digit 1 to 9, - N = any digit 2 to 9. - Otherwise the match is either an equality or regex match depending on the operator.
public GetDialPlanMatch ( string callDestination ) : SIPSorcery.AppServer.DialPlan.DialPlanCommand
callDestination string
Результат SIPSorcery.AppServer.DialPlan.DialPlanCommand