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 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 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"); } }
private void ClientEvent(IRTCClientEvent clientEvent) { RTC_CLIENT_EVENT_TYPE olayTuru = clientEvent.EventType; if (olayTuru == RTC_CLIENT_EVENT_TYPE.RTCCET_ASYNC_CLEANUP_DONE) // Form kapatýldýðýnda veya PrepareForShutdown metodu tetikler... { profil = null; if (istemci != null) { // Artýk olaylarý dinleme... -= istemci.IRTCEventNotification_Event_Event -= new IRTCEventNotification_EventEventHandler(istemci_IRTCEventNotification_Event_Event); istemci.Shutdown(); istemci = null; } this.anaPencere.KapatAnaPencere(); } }
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 RTCPresenceCore(IRTCPresenceUI presenceUI) { Trace.WriteLine("Entering RTCPresenceCore.RTCPresenceCore"); this.presenceUI = presenceUI; this.presenceEnabled = false; this.registrationState = RTC_REGISTRATION_STATE.RTCRS_NOT_REGISTERED; try { this.client = new RTCClientClass(); this.client.Initialize(); // Set the event filter this.client.EventFilter = RTCConst.RTCEF_REGISTRATION_STATE_CHANGE | RTCConst.RTCEF_CLIENT | RTCConst.RTCEF_BUDDY | RTCConst.RTCEF_BUDDY2 | RTCConst.RTCEF_WATCHER | RTCConst.RTCEF_WATCHER2 | RTCConst.RTCEF_ROAMING | RTCConst.RTCEF_PROFILE | RTCConst.RTCEF_PRESENCE_PROPERTY | RTCConst.RTCEF_PRESENCE_DATA; this.client.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(OnRTCEvent); this.client.ClientName = "RTCPresence"; this.client.ClientCurVer = "1.0"; // Don't Initialize presence status -- exception if called // RTC_E_PRESENCE_NOT_ENABLED 0x80EE0028L //DoSetPresence(RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ONLINE); } catch (COMException ex1COM) { Trace.WriteLine("COMException " + ex1COM.Message); throw; } }
public RTCPresenceCore(IRTCPresenceUI presenceUI) { Trace.WriteLine("Entering RTCPresenceCore.RTCPresenceCore"); this.presenceUI = presenceUI; this.presenceEnabled = false; this.registrationState = RTC_REGISTRATION_STATE.RTCRS_NOT_REGISTERED; try { this.client = new RTCClientClass(); this.client.Initialize(); // Set the event filter this.client.EventFilter = RTCConst.RTCEF_REGISTRATION_STATE_CHANGE | RTCConst.RTCEF_CLIENT | RTCConst.RTCEF_BUDDY | RTCConst.RTCEF_BUDDY2 | RTCConst.RTCEF_WATCHER | RTCConst.RTCEF_WATCHER2 | RTCConst.RTCEF_ROAMING | RTCConst.RTCEF_PROFILE | RTCConst.RTCEF_PRESENCE_PROPERTY | RTCConst.RTCEF_PRESENCE_DATA; this.client.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(OnRTCEvent); this.client.ClientName = "RTCPresence"; this.client.ClientCurVer = "1.0"; // Don't Initialize presence status -- exception if called // RTC_E_PRESENCE_NOT_ENABLED 0x80EE0028L //DoSetPresence(RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ONLINE); } catch(COMException ex1COM) { Trace.WriteLine("COMException " + ex1COM.Message); throw; } }
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) { 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() { 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"); } }
void OnRTCClientEvent(IRTCClientEvent clientEvent) { Trace.WriteLine("Enter OnRTCClientEvent " + clientEvent.EventType); RTC_CLIENT_EVENT_TYPE eventType = clientEvent.EventType; if (eventType == RTC_CLIENT_EVENT_TYPE.RTCCET_ASYNC_CLEANUP_DONE) { // The RTC client has finished preparing for shutdown. this.profile = null; if (this.client != null) { // Unadvise for events from the RTC client this.client.IRTCEventNotification_Event_Event -= new IRTCEventNotification_EventEventHandler(OnRTCEvent); this.client.Shutdown(); this.client = null; } this.presenceUI.CloseUI(); } }
public RTCAudio() { try { oclient = new RTCClientClass(); oclient.Initialize(); oclient.EventFilter = 0x01FFFFFF; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; 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 = 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) { VMuktiHelper.ExceptionHandler(ex, "RTCAudio", "Audio\\Audio.Business\\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 = 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"); } }
void OnRTCClientEvent(IRTCClientEvent clientEvent) { Trace.WriteLine("Enter OnRTCClientEvent " + clientEvent.EventType); RTC_CLIENT_EVENT_TYPE eventType = clientEvent.EventType; if ( eventType == RTC_CLIENT_EVENT_TYPE.RTCCET_ASYNC_CLEANUP_DONE ) { // The RTC client has finished preparing for shutdown. this.profile = null; if (this.client != null) { // Unadvise for events from the RTC client this.client.IRTCEventNotification_Event_Event -= new IRTCEventNotification_EventEventHandler(OnRTCEvent); this.client.Shutdown(); this.client = null; } this.presenceUI.CloseUI(); } }
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(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() { try { oclient = new RTCClientClass(); oclient.Initialize(); oclient.EventFilter = 0x01FFFFFF; oclient.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH; 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 = 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) { VMuktiHelper.ExceptionHandler(ex, "RTCAudio", "Audio\\Audio.Business\\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"); } }
private void ClientEvent(IRTCClientEvent clientEvent) { RTC_CLIENT_EVENT_TYPE olayTuru = clientEvent.EventType; if (olayTuru == RTC_CLIENT_EVENT_TYPE.RTCCET_ASYNC_CLEANUP_DONE) // Form kapatýldýðýnda veya PrepareForShutdown metodu tetikler... { profil = null; if (istemci != null) { // Artýk olaylarý dinleme... -= istemci.IRTCEventNotification_Event_Event -= new IRTCEventNotification_EventEventHandler(istemci_IRTCEventNotification_Event_Event); istemci.Shutdown(); istemci = null; } this.anaPencere.KapatAnaPencere(); } }
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"); } }