/// <summary>
        /// This is a required override,
        /// This method is called by UII to Set the low level interface for CTI.
        /// This interface is also used to initialize the AgentState and CallState Managers
        /// </summary>
        /// <param name="ctiRoot">Pointer to the UII Cti Base Object</param>
        public override void SetRootCtiInterface(ICtiControl ctiRoot)
        {
            // Set up the AgentState Manager, and Set the internal UII Object Agent State object.
            localAgentStateManager = new AgentStateManager(ctiRoot);
            AgentStateManager      = (ICtiAgentStateManager)localAgentStateManager;

            // Set up the CallState Manager, and Set the internal UII Object Call State object.
            localCallStateManager = new CallStateManager(ctiRoot);
            CallStateManager      = (ICtiCallStateManager)localCallStateManager;

            // Wire base events for call management.
            if (CallStateManager != null)
            {
                CallStateManager.EnableAutoAnswer = true;
                CallStateManager.EnableOverrideAutoAnswerOnExistingCalls = true;
                CallStateManager.CallManagerStateNewCall += new EventHandler <NewCallEventArgs>(OnCallManagerStateNewCall);
                CallStateManager.CallManagerStateUpdate  += new EventHandler <CtiCallEventArgs>(OnCallManagerStateUpdate);
            }
            base.SetRootCtiInterface(ctiRoot);
        }
 /// <summary>
 /// Added the Default constructor here.
 /// Handling the CallStateManager Setup
 /// </summary>
 /// <param name="rootCti">Initialized Cti Root Control</param>
 public CallStateManager(ICtiControl rootCti) : base(rootCti)
 {
 }
Example #3
0
 /// <summary>
 /// Added the Default constructor here.
 /// Handling the AgentStateManager Setup
 /// </summary>
 /// <param name="rootCti">Initialized Cti Root Control</param>
 public AgentStateManager(ICtiControl rootCti) : base(rootCti)
 {
 }