public override void EndInit() { base.EndInit(); _eventsProvider.Subscribe <CallStateChanged>(OnCallState); _eventsProvider.Subscribe <CallMediaStateChanged>(OnCallMediaState); _eventsProvider.Subscribe <IncomingCallRecieved>(OnIncomingCall); _eventsProvider.Subscribe <StreamDestroyed>(OnStreamDestroyed); _eventsProvider.Subscribe <DtmfRecieved>(OnDtmfDigit); _eventsProvider.Subscribe <CallTransferRequested>(OnCallTransfer); _eventsProvider.Subscribe <CallTransferStatusChanged>(OnCallTransferStatus); _eventsProvider.Subscribe <CallRedirected>(OnCallRedirected); }
public DefaultSipUserAgent(IBasicApiProvider basicApi, IEventsProvider eventsProvider, LoggingConfig loggingConfig, IContainer container) { Helper.GuardNotNull(basicApi); Helper.GuardNotNull(eventsProvider); Helper.GuardNotNull(loggingConfig); Helper.GuardNotNull(container); _basicApi = basicApi; _loggingConfig = loggingConfig; _container = container; eventsProvider.Subscribe <LogRequested>(OnLog); }
public DefaultSipUserAgent(IBasicApiProvider basicApi, IEventsProvider eventsProvider, LoggingConfig loggingConfig, IContainer container) { Helper.GuardNotNull(basicApi); Helper.GuardNotNull(eventsProvider); Helper.GuardNotNull(loggingConfig); Helper.GuardNotNull(container); _basicApi = basicApi; _loggingConfig = loggingConfig; _container = container; _loggingConfig = loggingConfig; eventsProvider.Subscribe<LogRequested>(OnLog); }
public DefaultSipUserAgent(IBasicApiProvider basicApi, IEventsProvider eventsProvider, ILocalRegistry localRegistry, IContainer container) { Helper.GuardNotNull(basicApi); Helper.GuardNotNull(eventsProvider); Helper.GuardNotNull(localRegistry); Helper.GuardNotNull(container); _basicApi = basicApi; _localRegistry = localRegistry; _container = container; _eventsProvider = eventsProvider; _eventsProvider.Subscribe<LogRequested>(e => OnLog(e)); }
public DefaultSipUserAgent(IBasicApiProvider basicApi, IEventsProvider eventsProvider, ILocalRegistry localRegistry, IContainer container) { Helper.GuardNotNull(basicApi); Helper.GuardNotNull(eventsProvider); Helper.GuardNotNull(localRegistry); Helper.GuardNotNull(container); _basicApi = basicApi; _localRegistry = localRegistry; _container = container; _eventsProvider = eventsProvider; _eventsProvider.Subscribe <LogRequested>(e => OnLog(e)); }
public override void EndInit() { base.EndInit(); _eventsProvider.Subscribe <NatDetected>(OnNatDetect); _eventsProvider.Subscribe <BuddyStateChanged>(OnBuddyState); _eventsProvider.Subscribe <IncomingSubscribeRecieved>(OnIncomingSubscribe); _eventsProvider.Subscribe <IncomingImRecieved>(OnPager); _eventsProvider.Subscribe <ImStatusChanged>(OnPagerStatus); _eventsProvider.Subscribe <IncomingTypingRecieved>(OnTyping); }
public override void EndInit() { base.EndInit(); //move to account mgr //Config._config.cb.on_reg_state = SingletonHolder<IAccountManagerInternal>.Instance.OnRegistrationState; //call state callbacks _eventsProvider.Subscribe <NatDetected>(e => OnNatDetect(e)); _eventsProvider.Subscribe <BuddyStateChanged>(e => OnBuddyState(e)); _eventsProvider.Subscribe <IncomingSubscribeRecieved>(e => OnIncomingSubscribe(e)); _eventsProvider.Subscribe <IncomingImRecieved>(e => OnPager(e)); _eventsProvider.Subscribe <ImStatusChanged>(e => OnPagerStatus(e)); _eventsProvider.Subscribe <IncomingTypingRecieved>(e => OnTyping(e)); }
public override void EndInit() { base.EndInit(); _eventsProvider.Subscribe <RegistrationStateChanged>(e => OnRegistrationState(e)); }