Exemplo n.º 1
0
        //----------------------- Tc_OnXChangeState -------------------//
        // Application state changed
        private void Tc_OnXChangeState(object sender, _ITrueConfCallXEvents_OnXChangeStateEvent e)
        {
            int new_state = e.newState;

            WriteLog(String.Format("OnXChangeState : {0} : {1}", DateTime.Now.ToString("g"), new_state));

            // State(5) is 'conference mode'
            if (feccObject is null && new_state == 5)
            {
                // Request FECC control
                string sUser = INI.ReadINI("connection", "call_to");
                WriteLog(String.Format("GetFECCControl() : {0} / {1}", DateTime.Now.ToString("g"), sUser));
                labelInfo.Content = "GetFECCControl ...";
                // Try GetFECCControl
                tc.GetFECCControl(sUser);
            }
        }