public RTCAudio(string SIPNumber, string SIPPassword, string SIPServer) { SIPCredentials.SIPNumber = SIPNumber; SIPCredentials.SIPPassword = SIPPassword; SIPCredentials.SIPServer = SIPServer; try { oclient = new RTCClientClass(); oclient.Initialize(); oclient.EventFilter = RTCEF_ALL; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); oclient.EventFilter = 0x00000004 | 0x00000020 | 0x00001000; oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); dt.Start(); dt.Tick += new EventHandler(dt_Tick); } catch (Exception ex) { //System.Windows.MessageBox.Show("Asterisk Server is not started or not working properly!!", "Video Conference"); VMuktiHelper.ExceptionHandler(ex, "RTCAudio()", "RTCAudio.cs"); } }
public RTCAudio(string SIPNumber, string SIPPassword, string SIPServer) { try { SIPCredentials.SIPNumber = SIPNumber; SIPCredentials.SIPPassword = SIPPassword; SIPCredentials.SIPServer = SIPServer; oclient = new RTCClientClass(); oclient.Initialize(); oclient.EventFilter = RTCEF_ALL; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); oclient.EventFilter = 0x00000004 | 0x00000020 | 0x00001000; oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); dt.Start(); dt.Tick += new EventHandler(dt_Tick); } 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); //System.Windows.MessageBox.Show("Asterisk Server is not started or not working properly!!", "Video Conference"); } }
public RTCAudio(string SIPNumber, string SIPPassword, string SIPServer) { try { SIPCredentials.SIPNumber = SIPNumber; SIPCredentials.SIPPassword = SIPPassword; SIPCredentials.SIPServer = SIPServer; oclient = new RTCClientClass(); oclient.Initialize(); oclient.EventFilter = 0x01FFFFFF; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); oclient.EventFilter = 0x00000004 | 0x00000020 | 0x00001000 | RTCEF_REGISTRATION_STATE_CHANGE; oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); //oclient = new RTCClientClass(); //oclient.Initialize(); ////oclient.EventFilter = RTC_EVENTFILTERS; //oclient.EventFilter = RTCEF_ALL; //oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; //oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); //oclient.EventFilter = 0x00000004 | 0x00000020 | 0x00001000; //oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); ////this.oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(OnRTCEvent); dt.Start(); dt.Tick += new EventHandler(dt_Tick); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "RTCAudio", "Audio\\Audio.Businss.cs\\RTCAudio.cs"); } }
public Motor(AnaPencere anapencere) { this.anaPencere = anapencere; this.bulunmaDurumu = false; // bulunma durumu(çevrimiçi,meþgul vs.) ayarlanmadý this.kayitDurumu = RTC_REGISTRATION_STATE.RTCRS_NOT_REGISTERED; // Henüz kayýt olmadýk htPencereler = new Hashtable(); // uri key leri ile pencereler takip edilir Oturumlar = new ArrayList(); // açýlan oturumlarla(sessionEvent.Sessison) oturumlar takip edilir try { istemci = new RTCClientClass(); istemci.Initialize(); istemci.EventFilter = Sabitler.RTC_EVENTFILTERS; istemci.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; // Gelen mesajlarý dinle, SIP portunu açar(5060) istemci.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(istemci_IRTCEventNotification_Event_Event); istemci.SetPreferredMediaTypes(Sabitler.RTC_MEDIA_SABITLERI, true); gelenMedia = istemci.get_IVideoWindow(RTC_VIDEO_DEVICE.RTCVD_RECEIVE); gidenMedia = istemci.get_IVideoWindow(RTC_VIDEO_DEVICE.RTCVD_PREVIEW); istemci.ClientName = "RTCClient"; istemci.ClientCurVer = "1.0"; } catch (COMException hata) { this.anaPencere.MesajGoster(hata.ToString(), "Hata"); } }
public Motor(AnaPencere anapencere) { this.anaPencere = anapencere; this.bulunmaDurumu = false; // bulunma durumu(çevrimiçi,meþgul vs.) ayarlanmadý this.kayitDurumu = RTC_REGISTRATION_STATE.RTCRS_NOT_REGISTERED; // Henüz kayýt olmadýk htPencereler = new Hashtable(); // uri key leri ile pencereler takip edilir Oturumlar = new ArrayList(); // açýlan oturumlarla(sessionEvent.Sessison) oturumlar takip edilir try { istemci = new RTCClientClass(); istemci.Initialize(); istemci.EventFilter = Sabitler.RTC_EVENTFILTERS; istemci.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; // Gelen mesajlarý dinle, SIP portunu açar(5060) istemci.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(istemci_IRTCEventNotification_Event_Event); istemci.SetPreferredMediaTypes(Sabitler.RTC_MEDIA_SABITLERI, true); gelenMedia = istemci.get_IVideoWindow(RTC_VIDEO_DEVICE.RTCVD_RECEIVE); gidenMedia = istemci.get_IVideoWindow(RTC_VIDEO_DEVICE.RTCVD_PREVIEW); istemci.ClientName = "RTCClient"; istemci.ClientCurVer = "1.0"; } catch(COMException hata) { this.anaPencere.MesajGoster(hata.ToString(), "Hata"); } }
public RTCAudio() { try { oclient = new RTCClientClass(); oclient.Initialize(); oclient.EventFilter = RTCEF_ALL; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); oclient.EventFilter = RTCEF_CLIENT | RTCEF_MESSAGING | RTCEF_SESSION_STATE_CHANGE | RTCEF_PARTICIPANT_STATE_CHANGE | RTCEF_PROFILE | RTCEF_REGISTRATION_STATE_CHANGE | RTCEF_BUDDY | RTCEF_WATCHER | RTCMT_ALL; oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "RTCAudio()", "RTCAudio.cs"); } }
public RTCAudio() { try { oclient = new RTCClientClass(); oclient.Initialize(); oclient.EventFilter = RTCEF_ALL; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); oclient.EventFilter = 0x00000004 | 0x00000020 | 0x00001000; oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); } catch (Exception ex) { //System.Windows.MessageBox.Show("YATE Server is not started or not working properly!!", "VMukti-Call Center"); VMuktiHelper.ExceptionHandler(ex, "RTCAudio()", "RTCAudio.cs"); } }
public RTCAudio() { try { oclient = new RTCClientClass(); oclient.Initialize(); //oclient.EventFilter = RTC_EVENTFILTERS; oclient.EventFilter = RTCEF_ALL; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); oclient.EventFilter = 0x00000004 | 0x00000020 | 0x00001000; oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); //this.oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(OnRTCEvent); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "RTCAudio()", "VMuktiAudio.VistaService\\RTCAudio.cs"); System.Windows.MessageBox.Show("Asterisk Server is not started or not working properly!!", "Video Conference"); } }
public RTCAudio(string SIPNumber, string SIPPassword, string SIPServer) { try { SIPCredentials.SIPNumber = SIPNumber; SIPCredentials.SIPPassword = SIPPassword; SIPCredentials.SIPServer = SIPServer; oclient = new RTCClientClass(); oclient.Initialize(); //oclient.EventFilter = RTC_EVENTFILTERS; oclient.EventFilter = RTCEF_ALL; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); oclient.EventFilter = 0x00000004 | 0x00000020 | 0x00001000; oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); //this.oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(OnRTCEvent); dt.Start(); dt.Tick += new EventHandler(dt_Tick); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "RTCAudio()--1()", "VMuktiAudio.VistaService\\RTCAudio.cs"); System.Windows.MessageBox.Show("Asterisk Server is not started or not working properly!!", "Video Conference"); } }
public RTCAudio(string SIPNumber, string SIPPassword, string SIPServer) { try { SIPCredentials.SIPNumber = SIPNumber; SIPCredentials.SIPPassword = SIPPassword; SIPCredentials.SIPServer = SIPServer; oclient = new RTCClientClass(); oclient.Initialize(); oclient.EventFilter = RTCEF_ALL; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); oclient.EventFilter = RTCEF_CLIENT | RTCEF_MESSAGING | RTCEF_SESSION_STATE_CHANGE | RTCEF_PARTICIPANT_STATE_CHANGE | RTCEF_PROFILE | RTCEF_REGISTRATION_STATE_CHANGE | RTCEF_BUDDY | RTCEF_WATCHER | RTCMT_ALL; oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "RTCAudio(string SIPNumber, string SIPPassword, string SIPServer)", "RTCAudio.cs"); } }
public RTCAudio(string SIPNumber, string SIPPassword, string SIPServer) { try { SIPCredentials.SIPNumber = SIPNumber; SIPCredentials.SIPPassword = SIPPassword; SIPCredentials.SIPServer = SIPServer; oclient = new RTCClientClass(); oclient.Initialize(); oclient.EventFilter = 0x01FFFFFF; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; oclient.SetPreferredMediaTypes(RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE, true); oclient.EventFilter = 0x00000004 | 0x00000020 | 0x00001000 | RTCEF_REGISTRATION_STATE_CHANGE; oclient.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(oclient_IRTCEventNotification_Event_Event); dt.Start(); dt.Tick += new EventHandler(dt_Tick); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "RTCAudio", "Audio\\Audio.Businss.cs\\RTCAudio.cs"); } }