Exemple #1
0
        internal Core(ISynchronizeInvoke syncInvoke)
        {
            var pluginLoadingHandler = new Action <string>(x => { RaisePartLoadingEvent($"Loading plugin {x}..."); });

            RaisePartLoadingEvent("Loading Settings...");
            _settingsManager = new Settings.SettingsManager(this);
            SettingsManager  = _settingsManager.GetSection("Core");

            RaisePartLoadingEvent("Loading SIP...");
            _sip = new SIP.SIP(this, syncInvoke);

            RaisePartLoadingEvent("Loading Audio...");
            _audio = new Audio.Audio(this);

            RaisePartLoadingEvent("Initializing Audio...");
            _sip.InitializeAudio();

            // Load core classes
            RaisePartLoadingEvent("Loading Calls core...");
            CallManager = new CallManager.CallManager(this);

            RaisePartLoadingEvent("Loading Plugins...");
            _pluginManager = new PluginManager.PluginManager(this);

            RaisePartLoadingEvent("Loading Contacts...");
            _contactsManager = new ContactsManager(this, syncInvoke);

            _pluginManager.PluginLoading += pluginLoadingHandler;
            _pluginManager.LoadPluginsFromDirectory(System.IO.Path.GetFullPath("plugins"));
            _pluginManager.PluginLoading -= pluginLoadingHandler;
            _pluginManager.Start();

            RaisePartLoadingEvent("Core loaded successfully. Starting...");
        }
Exemple #2
0
 internal Call(CallManager callManager, int sessionId)
     : this(callManager, sessionId, null)
 {
 }
Exemple #3
0
 public CallWrapper(CallManager callManager, string number)
     : base(callManager, -1)
 {
     Number = number;
 }