예제 #1
0
파일: Program.cs 프로젝트: aliotta/Samples
 static void spokes_CallAnswered(object sender, CallAnsweredArgs e)
 {
     Console.WriteLine("CallAnswered, sending message to Client App via socket...");
     if (socket == null)
     {
         Console.WriteLine("INFO: No client connected.");
         return;
     }
     socket.sendMsg("CallAnswered,"+e.CallId+","+e.CallSource);
 }
예제 #2
0
 // Call control (headset button call control notification from Spokes): ************************************************************
 private void OnCallAnswered(CallAnsweredArgs e)
 {
     if (CallAnswered != null)
         CallAnswered(this, e);
 }
예제 #3
0
파일: PLTLayer.cs 프로젝트: aliotta/Samples
 void m_spokes_CallAnswered(object sender, CallAnsweredArgs e)
 {
     OnPltEvent(new PltEventArgs(PltEventType.CallAnswered, e.CallId.ToString(), e.CallSource));
 }
예제 #4
0
파일: Form1.cs 프로젝트: aliotta/Samples
 void spokes_CallAnswered(object sender, CallAnsweredArgs e)
 {
     LogMessage(MethodInfo.GetCurrentMethod().Name, ">>> User has answered call, call id: " + e.CallId);
     // if this was My Softphone's call then activate the audio link to headset
     if (e.CallId > 0 && e.CallSource.CompareTo(APP_NAME) == 0)
     {
         //m_spokes.ConnectAudioLinkToDevice(true);
         SimulatePhoneAudio();
         m_spokes.SetMute(false);
     }
     else
         LogMessage(MethodInfo.GetCurrentMethod().Name, ">>> Ignoring spurious call event, call id: " + e.CallId+", call source = "+e.CallSource);
 }
예제 #5
0
 void m_spokes_CallAnswered(object sender, CallAnsweredArgs e)
 {
     DebugPrint(MethodInfo.GetCurrentMethod().Name, "@@@ VoIP call was Answered: id="+e.CallId+", source="+e.CallSource);
 }
예제 #6
0
        private void OnCallAnswered(object sender, CallAnsweredArgs e)
        {
            _traceContext.Status(String.Format("DeviceManager.OnCallAnswered {0}", e.CallId));

            if (CallAnsweredByDevice != null)
            {
                CallAnsweredByDevice(this, e);
            }
        }