Example #1
0
 public void DisConnect()
 {
     try
     {
         if (osession.State == RTCCORELib.RTC_SESSION_STATE.RTCSS_INCOMING)
         {
             osession.Terminate(RTCCORELib.RTC_TERMINATE_REASON.RTCTR_REJECT);
             oclient.PlayRing(RTC_RING_TYPE.RTCRT_PHONE, false);
         }
         else
         {
             osession.Terminate(RTCCORELib.RTC_TERMINATE_REASON.RTCTR_NORMAL);
         }
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "DisConnect()", "Audio\\Audio.Business\\RTCAudio.cs");
     }
 }
Example #2
0
 public virtual void DisConnect()
 {
     try
     {
         if (osession.State == RTCCORELib.RTC_SESSION_STATE.RTCSS_INCOMING)
         {
             osession.Terminate(RTCCORELib.RTC_TERMINATE_REASON.RTCTR_REJECT);
             oclient.PlayRing(RTC_RING_TYPE.RTCRT_PHONE, false);
         }
         else
         {
             osession.Terminate(RTCCORELib.RTC_TERMINATE_REASON.RTCTR_NORMAL);
         }
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCAudio.cs--:--OnIRTCSessionStateChangeEvent()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
     }
 }
Example #3
0
 public void DisConnect()
 {
     //osession.Terminate(RTC_TERMINATE_REASON.RTCTR_SHUTDOWN);
     //oclient.PrepareForShutdown();
     //oclient.Shutdown();
     try
     {
         if (osession.State == RTCCORELib.RTC_SESSION_STATE.RTCSS_INCOMING)
         {
             osession.Terminate(RTCCORELib.RTC_TERMINATE_REASON.RTCTR_REJECT);
             oclient.PlayRing(RTC_RING_TYPE.RTCRT_PHONE, false);
         }
         else
         {
             osession.Terminate(RTCCORELib.RTC_TERMINATE_REASON.RTCTR_NORMAL);
         }
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "DisConnect()", "RTCAudio.cs");
     }
 }
Example #4
0
        private void MessagingEvent(IRTCMessagingEvent messagingEvent)
        {
            if (messagingEvent.EventType == RTC_MESSAGING_EVENT_TYPE.RTCMSET_MESSAGE)
            {
                Trace.WriteLine("mesaj geldi");
                IRTCSession     oturum    = messagingEvent.Session;
                IRTCParticipant katilimci = messagingEvent.Participant;
                string          mesaj     = messagingEvent.Message;

                try
                {
                    IMOturumuBaslat(oturum, katilimci.UserURI, katilimci.Name);
                    istemci.PlayRing(RTC_RING_TYPE.RTCRT_MESSAGE, true);                              // zil sesi
                    //FlashWindow.FlashWindowEx(((frmGorusme)htPencereler[katilimci.UserURI]).Handle, FlashWindow.FLASHW_ALL); // taskbar blinking
                    ((frmGorusme)htPencereler[katilimci.UserURI]).MesajGoster(mesaj, katilimci.Name); // gelen mesajý formatlayýp göster
                }
                catch (COMException hata)
                {
                    this.anaPencere.MesajGoster(hata.ToString(), "Hata");
                }
            }
        }