/// <summary>
        /// Initialization Method
        /// </summary>
        /// <param name="type">Type</param>
        /// <param name="user">User</param>
        /// <param name="password">Password</param>
        /// <param name="agentID">Agent ID</param>
        /// <param name="agentPassword">Agent Password</param>
        /// <param name="agentNumber">Agent Number</param>
        /// <returns>Boolean indicating success or failure.</returns>
        public override bool Init(TelephonyProvider.CtiType type, string user, string password, string agentID, string agentPassword, string agentNumber)
        {
            base.Init(type, user, password, agentID, agentPassword, agentNumber);
            if (CtiTapi.Init() != 0)
            {
                Lines = LinesClassProvider.Instance();
                Lines.Init(this, type);
                CtiTapi.CallChanged += new CtiLayerTapiLib._DCtiLayerTapiEvents_CallChangedEventHandler(this.Cti_CallChanged);

                alreadyInited = true;
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Initialization Method
        /// </summary>
        /// <param name="type">Type</param>
        /// <param name="user">User</param>
        /// <param name="password">Password</param>
        /// <param name="agentID">Agent ID</param>
        /// <param name="agentPassword">Agent Password</param>
        /// <param name="agentNumber">Agent Number</param>
        /// <returns>Boolean indicating success or failure.</returns>
        public override bool Init(TelephonyProvider.CtiType type, string user, string password, string agentID, string agentPassword, string agentNumber)
        {
            base.Init(type, user, password, agentID, agentPassword, agentNumber);

            string serverName = CtiTsapi.GetServerNames();

            string [] serverNames = serverName.Split(new char[] { '\n' });
            if (CtiTsapi.Init(serverNames[0], user, password) != 0)
            {
                Lines = LinesClassProvider.Instance();
                Lines.Init(this, type);
                CtiTsapi.CallChanged += new CtiLayerTsapiLib._DCtiLayerTsapiEvents_CallChangedEventHandler(this.Cti_CallChanged);

                alreadyInited = true;
                return(true);
            }
            else
            {
                return(false);
            }
        }