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"); } }
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); } }
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"); } }
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"); } } }