C# Class SIPSorcery.AppServer.DialPlan.DialPlanContext

Mostrar archivo Open project: TilmannBach/sipsorcery-fork Class Usage Examples

Public Properties

Property Type Description
CallerCRMDetails SIPSorcery.SIP.App.CRMHeaders
CallersNetworkId string
ContextType DialPlanContextsEnum
CreateBridge_External DialogueBridgeCreatedDelegate
Customer SIPSorcery.CRM.Customer
CustomerId System.Guid
GetCanonicalDomain_External GetCanonicalDomainDelegate
SendTrace bool
m_dialPlanEngine DialPlanEngine

Protected Properties

Property Type Description
logger log4net.ILog
m_dialPlan SIPSorcery.SIP.App.SIPDialPlan
m_sipProviders List
m_traceLog StringBuilder

Public Methods

Method Description
CallAnswered ( SIPResponseStatusCodesEnum answeredStatus, string reasonPhrase, string toTag, string customHeaders, string answeredContentType, string answeredBody, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum uasTransferMode ) : void
CallFailed ( SIPResponseStatusCodesEnum failureStatus, string reasonPhrase, string customHeaders ) : void
CallProgress ( SIPResponseStatusCodesEnum progressStatus, string reasonPhrase, string customHeaders, string progressContentType, string progressBody, ISIPClientUserAgent uac ) : void
DialPlanContext ( SIPMonitorLogDelegate monitorLogDelegate, SIPTransport sipTransport, DialogueBridgeCreatedDelegate createBridge, SIPEndPoint outboundProxy, ISIPServerUserAgent sipServerUserAgent, SIPDialPlan dialPlan, List sipProviders, string traceDirectory, string callersNetworkId, Customer customer, DialPlanEngine dialPlanEngine, GetCanonicalDomainDelegate getCanonicalDomain ) : System
DialPlanContext ( SIPMonitorLogDelegate monitorLogDelegate, SIPTransport sipTransport, DialogueBridgeCreatedDelegate createBridge, SIPEndPoint outboundProxy, ISIPServerUserAgent sipServerUserAgent, SIPDialPlan dialPlan, List sipProviders, string traceDirectory, string callersNetworkId, System.Guid customerId ) : System
DialPlanContext ( SIPMonitorLogDelegate monitorLogDelegate, SIPTransport sipTransport, SIPEndPoint outboundProxy, SIPDialPlan dialPlan, List sipProviders, string traceDirectory, string callersNetworkId, Customer customer ) : System

Constructor for non-INVITE requests that can initiate dialplan executions.

DialPlanExecutionFinished ( ) : void
ExecuteDialPlanForRedirect ( SIPResponse redirectResponse ) : void

Executes a new instance of the current dialplan as a result of receiving a redirect response.

SetCallerDetails ( CRMHeaders crmHeaders ) : void

Private Methods

Method Description
ClientCallCancelled ( ISIPServerUserAgent uas ) : void
ClientCallNoRingTimeout ( ISIPServerUserAgent sipServerUserAgent ) : void

The client transaction will time out after ringing for the maximum allowed time for an INVITE transaction (probably 10 minutes) or less if the invite transaction timeout value has been adjusted.

ClientTransactionRemoved ( ISIPServerUserAgent uas ) : void
CompleteTrace ( ) : void
FireProxyLogEvent ( SIPMonitorEvent monitorEvent ) : void
TransactionTraceMessage ( SIPTransaction sipTransaction, string message ) : void

Method Details

CallAnswered() public method

public CallAnswered ( SIPResponseStatusCodesEnum answeredStatus, string reasonPhrase, string toTag, string customHeaders, string answeredContentType, string answeredBody, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum uasTransferMode ) : void
answeredStatus SIPResponseStatusCodesEnum
reasonPhrase string
toTag string
customHeaders string
answeredContentType string
answeredBody string
answeredDialogue SIPSorcery.SIP.SIPDialogue
uasTransferMode SIPDialogueTransferModesEnum
return void

CallFailed() public method

public CallFailed ( SIPResponseStatusCodesEnum failureStatus, string reasonPhrase, string customHeaders ) : void
failureStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
return void

CallProgress() public method

public CallProgress ( SIPResponseStatusCodesEnum progressStatus, string reasonPhrase, string customHeaders, string progressContentType, string progressBody, ISIPClientUserAgent uac ) : void
progressStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
progressContentType string
progressBody string
uac ISIPClientUserAgent
return void

DialPlanContext() public method

public DialPlanContext ( SIPMonitorLogDelegate monitorLogDelegate, SIPTransport sipTransport, DialogueBridgeCreatedDelegate createBridge, SIPEndPoint outboundProxy, ISIPServerUserAgent sipServerUserAgent, SIPDialPlan dialPlan, List sipProviders, string traceDirectory, string callersNetworkId, Customer customer, DialPlanEngine dialPlanEngine, GetCanonicalDomainDelegate getCanonicalDomain ) : 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
dialPlanEngine DialPlanEngine
getCanonicalDomain GetCanonicalDomainDelegate
return System

DialPlanContext() public method

public DialPlanContext ( SIPMonitorLogDelegate monitorLogDelegate, SIPTransport sipTransport, DialogueBridgeCreatedDelegate createBridge, SIPEndPoint outboundProxy, ISIPServerUserAgent sipServerUserAgent, SIPDialPlan dialPlan, List sipProviders, string traceDirectory, string callersNetworkId, System.Guid customerId ) : 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
customerId System.Guid
return System

DialPlanContext() public method

Constructor for non-INVITE requests that can initiate dialplan executions.
public DialPlanContext ( SIPMonitorLogDelegate monitorLogDelegate, SIPTransport sipTransport, SIPEndPoint outboundProxy, SIPDialPlan dialPlan, List sipProviders, string traceDirectory, string callersNetworkId, Customer customer ) : System
monitorLogDelegate SIPMonitorLogDelegate
sipTransport SIPSorcery.SIP.SIPTransport
outboundProxy SIPSorcery.SIP.SIPEndPoint
dialPlan SIPSorcery.SIP.App.SIPDialPlan
sipProviders List
traceDirectory string
callersNetworkId string
customer SIPSorcery.CRM.Customer
return System

DialPlanExecutionFinished() public method

public DialPlanExecutionFinished ( ) : void
return void

ExecuteDialPlanForRedirect() public method

Executes a new instance of the current dialplan as a result of receiving a redirect response.
public ExecuteDialPlanForRedirect ( SIPResponse redirectResponse ) : void
redirectResponse SIPSorcery.SIP.SIPResponse
return void

SetCallerDetails() public method

public SetCallerDetails ( CRMHeaders crmHeaders ) : void
crmHeaders SIPSorcery.SIP.App.CRMHeaders
return void

Property Details

CallerCRMDetails public_oe property

public CRMHeaders,SIPSorcery.SIP.App CallerCRMDetails
return SIPSorcery.SIP.App.CRMHeaders

CallersNetworkId public_oe property

public string CallersNetworkId
return string

ContextType public_oe property

public DialPlanContextsEnum ContextType
return DialPlanContextsEnum

CreateBridge_External public_oe property

public DialogueBridgeCreatedDelegate CreateBridge_External
return DialogueBridgeCreatedDelegate

Customer public_oe property

public Customer,SIPSorcery.CRM Customer
return SIPSorcery.CRM.Customer

CustomerId public_oe property

public Guid,System CustomerId
return System.Guid

GetCanonicalDomain_External public_oe property

public GetCanonicalDomainDelegate GetCanonicalDomain_External
return GetCanonicalDomainDelegate

SendTrace public_oe property

public bool SendTrace
return bool

logger protected_oe static_oe property

protected static ILog,log4net logger
return log4net.ILog

m_dialPlan protected_oe property

protected SIPDialPlan,SIPSorcery.SIP.App m_dialPlan
return SIPSorcery.SIP.App.SIPDialPlan

m_dialPlanEngine public_oe property

public DialPlanEngine,SIPSorcery.AppServer.DialPlan m_dialPlanEngine
return DialPlanEngine

m_sipProviders protected_oe property

protected List m_sipProviders
return List

m_traceLog protected_oe property

protected StringBuilder m_traceLog
return StringBuilder