Пример #1
0
 static void spokes_CallEnded(object sender, CallEndedArgs e)
 {
     Console.WriteLine("CallEnded, sending message to Client App via socket...");
     if (socket == null)
     {
         Console.WriteLine("INFO: No client connected.");
         return;
     }
     socket.sendMsg("CallEnded," + e.CallId + "," + e.CallSource);
 }
Пример #2
0
 private void OnCallEnded(CallEndedArgs e)
 {
     if (CallEnded != null)
         CallEnded(this, e);
 }
Пример #3
0
        void m_spokes_CallEnded(object sender, CallEndedArgs e)
        {
            // find the last incoming call in list
            PLTCallId theCall = new PLTCallId();
            bool found = false;
            foreach (PLTCallId cid in m_callids)
            {
                if (cid.isIncoming)
                {
                    theCall = cid;
                    found = true;
                }
            }
            if (found) m_callids.Remove(theCall);

            OnPltEvent(new PltEventArgs(PltEventType.CallEnded, e.CallId.ToString(), e.CallSource));
        }
Пример #4
0
        void spokes_CallEnded(object sender, CallEndedArgs e)
        {
            LogMessage(MethodInfo.GetCurrentMethod().Name, ">>> User has ended call, call id: " + e.CallId);

            // if this was My Softphone's call then terminate the audio link to headset
            if (e.CallId > 0 && e.CallSource.CompareTo(APP_NAME) == 0)
            {
                m_dummyspeechaudio.SpeakAsyncCancelAll();
                m_spokes.SetMute(false);
                //m_spokes.ConnectAudioLinkToDevice(false);
            }
            else
                LogMessage(MethodInfo.GetCurrentMethod().Name, ">>> Ignoring spurious call event, call id: " + e.CallId + ", call source = " + e.CallSource);
        }
Пример #5
0
 void m_spokes_CallEnded(object sender, CallEndedArgs e)
 {
     DebugPrint(MethodInfo.GetCurrentMethod().Name, "@@@ VoIP call was Ended: id=" + e.CallId + ", source=" + e.CallSource);
 }
Пример #6
0
 private void OnCallEnded(object sender, CallEndedArgs e)
 {
     _traceContext.Status(String.Format("DeviceManager.OnCallEnded {0}", e.CallId));
     if (CallEndedByDevice != null)
     {
         CallEndedByDevice(this, e);
     }
 }