C# Class SIPSorcery.AppServer.DialPlan.DialPlanLineContext

Inheritance: DialPlanContext
Mostrar archivo Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
ParseDialPlan ( string dialPlanEntries ) : void

Method Details

DialPlanLineContext() public method

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
return System

GetDialPlanExactMatch() public method

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
return SIPSorcery.AppServer.DialPlan.DialPlanCommand

GetDialPlanMatch() public method

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
return SIPSorcery.AppServer.DialPlan.DialPlanCommand