Пример #1
0
 protected internal void OnLineCallState(LINEMESSAGE msg)
 {
     m_state = (LINECALLSTATE)msg.dwParam1.ToInt32();
     if (CallState != null)
     {
         CallState(this, m_state);
     }
     //			if ( m_state == LINECALLSTATE.LINECALLSTATE_IDLE )
     //				Dispose();
 }
Пример #2
0
        protected internal void LoadCallState()
        {
            LINECALLSTATUS status = new LINECALLSTATUS(1024);

            status.Store();
            int ret = NativeTapi.lineGetCallStatus(m_hCall, status.Data);

            status.Load();
            if (ret < 0)
            {
                throw new TapiException(ret);
            }
            m_state = status.dwCallState;
        }