예제 #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
파일: PLTLayer.cs 프로젝트: aliotta/Samples
 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
파일: Form1.cs 프로젝트: aliotta/Samples
        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
파일: Program.cs 프로젝트: aliotta/Samples
 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);
     }
 }