C# Class SIPSorcery.SIPRegistrar.SIPRegistrarDaemon

Mostra file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
CustomerPersistor_External SIPAssetPersistor

Public Methods

Method Description
SIPRegistrarDaemon ( GetCanonicalDomainDelegate getDomain, SIPAssetGetDelegate getSIPAccount, SIPAssetPersistor registrarBindingsPersistor, SIPAuthenticateRequestDelegate sipRequestAuthenticator, SIPAssetPersistor customerPersistor ) : System
Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
FireSIPMonitorEvent ( SIPMonitorEvent sipMonitorEvent ) : void
SendNATKeepAlive ( SIPSorcery.Servers.NATKeepAliveMessage keepAliveMessage ) : void

This event handler is fired when the SIP Registrar wants to send a NATKeepAlive message to a user contact to make an attempt to keep the connection open through the user's NAT server. In this case the NATKeepAlive messages are forwarded onto the NATKeepAlive relay which requests the SIPTransport layer to multiplex a 4 byte null payload onto one of its sockets and send to the specified agent. A typical scenario would have the SIP Registrar firing this event every 15s to send the null payloads to each of its registered contacts.

Method Details

SIPRegistrarDaemon() public method

public SIPRegistrarDaemon ( GetCanonicalDomainDelegate getDomain, SIPAssetGetDelegate getSIPAccount, SIPAssetPersistor registrarBindingsPersistor, SIPAuthenticateRequestDelegate sipRequestAuthenticator, SIPAssetPersistor customerPersistor ) : System
getDomain GetCanonicalDomainDelegate
getSIPAccount SIPAssetGetDelegate
registrarBindingsPersistor SIPAssetPersistor
sipRequestAuthenticator SIPAuthenticateRequestDelegate
customerPersistor SIPAssetPersistor
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Property Details

CustomerPersistor_External public_oe property

public SIPAssetPersistor CustomerPersistor_External
return SIPAssetPersistor