Пример #1
0
 // Call state notification (is user on a call or not?): ************************************************************
 private void OnOnCall(OnCallArgs e)
 {
     if (OnCall != null)
         OnCall(this, e);
 }
Пример #2
0
 void m_spokes_OnCall(object sender, OnCallArgs e)
 {
     OnPltEvent(new PltEventArgs(PltEventType.OnCall, e.CallId.ToString(), e.CallSource,
         e.Incoming.ToString(), e.State.ToString()));
 }
Пример #3
0
        void spokes_OnCall(object sender, OnCallArgs e)
        {
            if (e.CallSource == APP_NAME)
            {
                m_oncall = true;
                SetCallControlGUIEnabled(m_oncall);
            }

            LogMessage(MethodInfo.GetCurrentMethod().Name, ">>> On a call, call source: " + e.CallSource + ", incoming? :" + e.Incoming);
            UpdateDeviceStatusGUIItem(callStateLbl, e.State == OnCallCallState.Ringing ? "Ringing" : "On Call");
            UpdateDeviceStatusGUIItem(callDirectionLbl, e.Incoming ? "Incoming" : "Outgoing");
            UpdateDeviceStatusGUIItem(callSourceLbl, e.CallSource);
            UpdateDevicePictureBox(callStatePictureBox, Properties.Resources.call_onCall);

            AnimateBackgroundColor(callStatePictureBox, Color.FromArgb(0, 51, 102));
        }
Пример #4
0
 void m_spokes_OnCall(object sender, OnCallArgs e)
 {
     DebugPrint(MethodInfo.GetCurrentMethod().Name, "@@@ On VoIP Call: incoming = " + e.Incoming + ", source = " + e.CallSource + ", state = " + e.State);
 }
Пример #5
0
 static void spokes_OnCall(object sender, OnCallArgs e)
 {
     Console.WriteLine("OnCall, sending message to Client App via socket...");
     if (socket == null)
     {
         Console.WriteLine("INFO: No client connected.");
         return;
     }
     socket.sendMsg("OnCall,"+e.Incoming+","+(int)e.State+","+e.CallSource);
 }
Пример #6
0
 private void OnDeviceCall(object sender, OnCallArgs e)
 {
     _traceContext.Status(String.Format("DeviceManager.OnDeviceCall {0}", e.CallId));
     if (OnCall != null)
     {
         OnCall(this,e);
     }
 }