C# Class SIPSorcery.Servers.SIPRegistrationAgentCore

Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
SIPRegistrationAgentCore ( SIPMonitorLogDelegate logDelegate, SIPTransport sipTransport, SIPEndPoint outboundProxy, SIPAssetGetByIdDelegate getSIPProviderById, SIPAssetUpdateDelegate updateSIPProvider, SIPAssetUpdatePropertyDelegate updateSIPProviderProperty, SIPAssetPersistor bindingPersistor, bool disAllowPrivateIPRegistrars ) : System
Start ( int threadCount ) : void
Stop ( ) : void

Private Methods

Method Description
AuthResponseReceived ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPTransaction sipTransaction, SIPResponse sipResponse ) : void

The event handler for responses to the authenticated register request.

DisableSIPProviderRegistration ( System.Guid providerId, string disabledReason ) : void
FireProxyLogEvent ( SIPMonitorEvent monitorEvent ) : void
GetAuthenticatedRegistrationRequest ( SIPProviderBinding binding, SIPRequest registerRequest, SIPResponse sipResponse ) : SIPRequest
GetBinding ( System.Guid bindingId ) : SIPProviderBinding
GetNextBindings ( int count ) : List
GetRegistrationRequest ( SIPProvider sipProvider, SIPProviderBinding binding, SIPEndPoint localSIPEndPoint, int expiry, SIPEndPoint registrarEndPoint ) : SIPRequest
MonitorRegistrations ( string threadName ) : void

Retrieve a list of accounts that the agent will register for from the database and then monitor them and any additional ones inserted.

OkResponseReceived ( SIPTransaction sipTransaction, SIPEndPoint remoteEndPoint, SIPResponse sipResponse ) : void
RegistrationTimedOut ( SIPTransaction sipTransaction ) : void
RemoveCachedBinding ( System.Guid bindingId ) : void
RemoveCachedBinding ( string bindingId ) : void
SendInitialRegister ( SIPProvider sipProvider, SIPProviderBinding binding, SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, int expirySeconds ) : void
ServerResponseReceived ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPTransaction sipTransaction, SIPResponse sipResponse ) : void

The event handler for responses to the initial register request.

UpdateSIPProviderOutboundProxy ( SIPProviderBinding binding, string outboundProxy ) : void

Method Details

SIPRegistrationAgentCore() public method

public SIPRegistrationAgentCore ( SIPMonitorLogDelegate logDelegate, SIPTransport sipTransport, SIPEndPoint outboundProxy, SIPAssetGetByIdDelegate getSIPProviderById, SIPAssetUpdateDelegate updateSIPProvider, SIPAssetUpdatePropertyDelegate updateSIPProviderProperty, SIPAssetPersistor bindingPersistor, bool disAllowPrivateIPRegistrars ) : System
logDelegate SIPMonitorLogDelegate
sipTransport SIPSorcery.SIP.SIPTransport
outboundProxy SIPSorcery.SIP.SIPEndPoint
getSIPProviderById SIPAssetGetByIdDelegate
updateSIPProvider SIPAssetUpdateDelegate
updateSIPProviderProperty SIPAssetUpdatePropertyDelegate
bindingPersistor SIPAssetPersistor
disAllowPrivateIPRegistrars bool
return System

Start() public method

public Start ( int threadCount ) : void
threadCount int
return void

Stop() public method

public Stop ( ) : void
return void