void CtlBuddyList_VMuktiEvent_LogoutBuddyList(object sender, VMuktiAPI.VMuktiEventArgs e) { try { LogOutBuddyList(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "CtlBuddyList_VMuktiEvent_LogoutBuddyList()", "Controls\\CtlBuddyList.xaml.cs"); } }
public static void CallEvent(string eventName, object sender, VMuktiEventArgs e) { foreach (VMuktiEvents ve in VMEvents) { if (ve.EventName.Equals(eventName)) { ve.FireVMuktiEvent(sender, e); break; } } }
void CtlBuddyList_VMuktiEvent_SucessfulLogin(object sender, VMuktiAPI.VMuktiEventArgs e) { try { // fncOpenClient(); fncStartTimer(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "CtlBuddyList_VmuktiEvent_successfullogin()", "Controls\\CtlBuddyList.xaml.cs"); } }
void CtlLogin_VMuktiEvent(object sender, VMuktiEventArgs e) { try { VMukti.Business.ClsUser.AddNewRecord(VMuktiAPI.VMuktiInfo.CurrentPeer.ID); VMuktiAPI.VMuktiInfo.CurrentPeer.ID = int.MinValue; } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "CtlLogin_VMuktiEvent()", "Controls\\CtlLogin.xaml.cs"); } }
public void SetChannelValues(VMuktiAPI.VMuktiEventArgs e) { try { channel1.CurrentPhoneNo = long.Parse(e._args[0].ToString()); channel1.StartDate = DateTime.Parse(e._args[1].ToString()); channel1.StartTime = e._args[2].ToString(); channel1.CurrentCampainID = CampaingID; // channel1.LeadID = long.Parse("1"); channel1.ChannelID = "1"; channel1.UserID = CurrentUserID; channel1.ConfID = long.Parse("1"); channel1.IsDNC = false; channel1.IsGlobal = false; // channel1.DispositionID = long.Parse("1"); // channel1.CallNote = "Hello"; } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "SetChannelValues()", "ClsChannelManager.cs"); } }
public void SetDisposition(VMuktiAPI.VMuktiEventArgs e) { try { if (ActiveChannel.CurrentDialStatus == "Automatic") { ActiveChannel.DispositionID = long.Parse(e._args[0].ToString()); ActiveChannel.CallNote = e._args[1].ToString(); long parCallID = 0; if (ActiveChannel.DispositionID == 6) { ActiveChannel.IsDNC = false; clsDataService.User_Save(out parCallID, ActiveChannel.LeadID, ActiveChannel.CalledDate, ActiveChannel.StartDate, DateTime.Parse(ActiveChannel.StartTime), long.Parse(ActiveChannel.CallDuration.ToString()), ActiveChannel.DispositionID, ActiveChannel.CurrentCampainID, ActiveChannel.ConfID, ActiveChannel.CallNote, ActiveChannel.IsDNC, ActiveChannel.IsGlobal, ActiveChannel.UserID, ActiveChannel.RecordedFileName); clsDataService.SetCallBackNo(parCallID, ActiveChannel.LeadID, ActiveChannel.CallNote, DateTime.Parse(e._args[3].ToString()), bool.Parse(e._args[2].ToString()), false); } else if (ActiveChannel.DispositionID == 11) { ActiveChannel.IsDNC = true; clsDataService.User_Save(out parCallID, ActiveChannel.LeadID, ActiveChannel.CalledDate, ActiveChannel.StartDate, DateTime.Parse(ActiveChannel.StartTime), long.Parse(ActiveChannel.CallDuration.ToString()), ActiveChannel.DispositionID, ActiveChannel.CurrentCampainID, ActiveChannel.ConfID, ActiveChannel.CallNote, ActiveChannel.IsDNC, ActiveChannel.IsGlobal, ActiveChannel.UserID, ActiveChannel.RecordedFileName); clsDataService.UpdateDNCStatus(ActiveChannel.LeadID, ActiveChannel.UserID, true); } else { clsDataService.User_Save(out parCallID, ActiveChannel.LeadID, ActiveChannel.CalledDate, ActiveChannel.StartDate, DateTime.Parse(ActiveChannel.StartTime), long.Parse(ActiveChannel.CallDuration.ToString()), ActiveChannel.DispositionID, ActiveChannel.CurrentCampainID, ActiveChannel.ConfID, ActiveChannel.CallNote, ActiveChannel.IsDNC, ActiveChannel.IsGlobal, ActiveChannel.UserID, ActiveChannel.RecordedFileName); } ActiveChannel.CallResult = ClsChannel.CallStatus.NotInCall; ActiveChannel.StartTime = Dialer_AutoProgressive.Common.ClsConstants.NullString; } } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "SetDisposition()", "ClsChannelManager.cs"); } }
void ctlDialer_VMuktiEventSignOut(object sender, VMuktiEventArgs e) { try { VMuktiHelper.UnRegisterEvent("RegisterAgent"); VMuktiHelper.UnRegisterEvent("Dial"); VMuktiHelper.UnRegisterEvent("HangUp"); VMuktiHelper.UnRegisterEvent("StartManualDialing"); VMuktiHelper.UnRegisterEvent("SetSoftPhoneEnable"); VMuktiHelper.UnRegisterEvent("CallHangUPFromRender"); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlDialer_VMuktiEventSignOut()", "ctlDialer.xaml.cs"); } }
public void FireVMuktiEvent(object sender, VMuktiEventArgs e) { if (VMuktiEvent != null) { VMuktiEvent(sender, e); } }
// For Channel Status void SetChannelStatusForPredictive_VMuktiEvent(object sender, VMuktiEventArgs e) { try { if (e._args[0].ToString() == ClsChannel.CallStatus.CallInProgress.ToString()) { bool isTransferRequired = objChannelManager.SetCallResult(e._args[0], int.Parse(e._args[e._args.Count - 1].ToString())); //InsertFilePathIntoDB(int.Parse(e._args[e._args.Count - 1].ToString())); if (isTransferRequired) { ExtraCallChannelId = e._args[e._args.Count - 1].ToString(); CallInfoChannel.svcAddExtraCall(objChannelManager.AgentNumber.ToString() + "@" + objChannelManager.SIPServerAddress, objChannelManager.CurrentCampaingID.ToString(), e._args[e._args.Count - 1].ToString()); // TransferCall to Agent Who is Free throgh WCF. objChannelManager.SetCallResult(ClsChannel.CallStatus.CallHoldBySys, int.Parse(e._args[e._args.Count - 1].ToString())); } else { int channelNo = int.Parse(e._args[e._args.Count - 1].ToString()); VMuktiHelper.CallEvent("SetLeadIDScript", this, new VMuktiEventArgs(objChannelManager.GetLeadID(channelNo), channelNo - 1)); VMuktiHelper.CallEvent("SetLeadIDCRM", this, new VMuktiEventArgs(objChannelManager.GetLeadID(int.Parse(e._args[e._args.Count - 1].ToString())))); } } else if (e._args[0].ToString() == ClsChannel.CallStatus.CallHangUp.ToString()) { //Calling Function of WCF to get any active available calls. //WCF Will call another functon of all agents with agentname and one parameter saying that you will recive on call or not. objChannelManager.SetCallResult(e._args[0], int.Parse(e._args[e._args.Count - 1].ToString())); CallInfoChannel.svcRemoveExtraCall(objChannelManager.AgentNumber.ToString() + "@" + objChannelManager.SIPServerAddress, objChannelManager.CurrentCampaingID.ToString(), ""); if (objChannelManager.CheckChannelStatus()) { if (btnPredictiveDial.Content.ToString().StartsWith("Stop")) { objChannelManager.FncRemoveDialLead(int.Parse(e._args[e._args.Count - 1].ToString())); } if (!objChannelManager.fncIsAnotherCallRunning()) { svcFireAnotherCall(); } } } else if (e._args[0].ToString() == ClsChannel.CallStatus.CallDispose.ToString()) { objChannelManager.SetCallResult(e._args[0], int.Parse(e._args[e._args.Count - 1].ToString())); } } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "SetChannelStatusForPredictive_VMuktiEvent()", "PredictiveDialer.xaml.cs"); } }
void MyDialer_VMuktiEvent(object sender, VMuktiEventArgs e) { try { VMuktiHelper.UnRegisterEvent("SetChannelValues"); VMuktiHelper.UnRegisterEvent("Logoff"); VMuktiHelper.UnRegisterEvent("AllModulesLoaded"); VMuktiHelper.UnRegisterEvent("SetDialerEnable"); VMuktiHelper.UnRegisterEvent("SetChannelStatus"); VMuktiHelper.UnRegisterEvent("SetDisposition"); channelManager.CallExit(); } catch (Exception ex) { MessageBox.Show("Exception under ClosePod: " + ex.Message); VMuktiHelper.ExceptionHandler(ex, "MyDialer_VMuktiEvent()", "MyDialer.xaml.cs"); } }
void SetDispositionForPredictive_VMuktiEvent(object sender, VMuktiEventArgs e) { try { fncRecordedFileUpload(objChannelManager.ActiveChannel.LeadID, objChannelManager.ActiveChannel.CalledDate, long.Parse(e._args[0].ToString())); objChannelManager.SetDisposition(e); #region To Inform DashBoard long LeadId = objChannelManager.ActiveChannel.LeadID; DateTime CalledDate = objChannelManager.ActiveChannel.CalledDate; DateTime ModifiedDate = objChannelManager.ActiveChannel.CalledDate; long ModifiedBy = objChannelManager.ActiveChannel.UserID; long GeneratedBy = objChannelManager.ActiveChannel.UserID; DateTime StartDate = objChannelManager.ActiveChannel.StartDate; DateTime StartTime = objChannelManager.ActiveChannel.StartDate; long DurationInSec = objChannelManager.ActiveChannel.CallDuration; long DispositionID = objChannelManager.ActiveChannel.DispositionID; long CampaignID = objChannelManager.ActiveChannel.CurrentCampainID; long ConfID = objChannelManager.ActiveChannel.ConfID; bool IsDeleted = false; string CallNote = objChannelManager.ActiveChannel.CallNote; bool IsDNC = objChannelManager.ActiveChannel.IsDNC; bool IsGlobal = objChannelManager.ActiveChannel.IsGlobal; if (channelP2PDashBoard != null) { channelP2PDashBoard.svcGetCallInfo(LeadId, CalledDate, ModifiedDate, ModifiedBy, GeneratedBy, StartDate, Convert.ToDateTime(StartTime), DurationInSec, DispositionID, CampaignID, ConfID, IsDeleted, CallNote, IsDNC, IsGlobal); } #endregion objChannelManager.SetCallResult(ClsChannel.CallStatus.CallHangUp, int.Parse(e._args[e._args.Count - 1].ToString()) + 1); if (objChannelManager.CheckChannelStatus()) { objChannelManager.FncRemoveDialLead(int.Parse(e._args[e._args.Count - 1].ToString()) + 1); if (btnPredictiveDial.Content.ToString().StartsWith("Stop")) { string PhNumber = string.Empty; int HoltedChannelID = objChannelManager.HoldChannelID(out PhNumber); if (HoltedChannelID != 0) { CallInfoChannel.svcRemoveExtraCall(objChannelManager.AgentNumber.ToString() + "@" + objChannelManager.SIPServerAddress, objChannelManager.CurrentCampaingID.ToString(), ""); VMuktiHelper.CallEvent("UnMuteCall", this, new VMuktiEventArgs(HoltedChannelID.ToString(), PhNumber)); objChannelManager.SetCallResult(ClsChannel.CallStatus.CallInProgress, HoltedChannelID); } else { if (lstExtraCallInfo.Count > 0) { CallInfoChannel.svcRequestExtraCall(lstExtraCallInfo[0].ToString(), objChannelManager.CurrentCampaingID.ToString(), objChannelManager.AgentNumber.ToString() + "@" + objChannelManager.SIPServerAddress); CallInfoChannel.svcRemoveExtraCall(lstExtraCallInfo[0].ToString(), objChannelManager.CurrentCampaingID.ToString(), ""); } else { svcFireAnotherCall(); } } } else { objChannelManager.DeleteLeadTabelData(); } } } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "SetDispositionForPredictive_VMuktiEvent()", "PredictiveDialer.xaml.cs"); } }
void MyDialer_VMuktiEvent_SetMyDialerEnable(object sender, VMuktiEventArgs e) { try { cnvMain.IsEnabled = bool.Parse(e._args[0].ToString()); if (btnAutomaticDial.Content.ToString().StartsWith("Start") && btnManualDial.Content.ToString().StartsWith("Start")) { VMuktiHelper.CallEvent("SetSoftPhoneEnable", this, new VMuktiEventArgs(false)); } else { VMuktiHelper.CallEvent("SetSoftPhoneEnable", this, new VMuktiEventArgs(true)); } } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "MyDialer_VMuktiEvent_SetMyDialerEnable()", "MyDialer.xaml.cs"); } }
void SetAllChannelStatus_myEvent(object sender, VMuktiEventArgs e) { }
void FncRegister(object sender, VMuktiEventArgs e) { bwRegisterSIPUser.RunWorkerAsync(); }
void MyDialer_VMuktiEvent_SetChannelStatus(object sender, VMuktiEventArgs e) { try { channelManager.SetCallResult(e._args[0]); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "MyDialer_VMuktiEvent_SetChannelStatus()", "MyDialer.xaml.cs"); } }
void ctlDialer_VMuktiEvent_SetSoftPhoneEnable(object sender, VMuktiEventArgs e) { try { CnvDialer.IsEnabled = bool.Parse(e._args[0].ToString()); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlDialer_VMuktiEvent_SetSoftPhoneEnable()", "ctlDialer.xaml.cs"); } }
void ctlDialer_VMuktiEventStartManualDialing(object sender, VMuktiEventArgs e) { try { if (e._args[1].ToString() == "AutoMatic") { if (e._args[0].ToString().ToLower() == "false") { blStopAutoDialing = true; } else { blStopAutoDialing = false; CnvDialer.IsEnabled = Convert.ToBoolean(e._args[0]); btnCall.IsEnabled = false; btnHangup.IsEnabled = true; } } else if (e._args[1].ToString() == "Manual") { CnvDialer.IsEnabled = Convert.ToBoolean(e._args[0]); btnCall.IsEnabled = Convert.ToBoolean(e._args[0]); btnHangup.IsEnabled = false; for (int i = 0; i < 6; i++) { btnChannels[i].IsEnabled = Convert.ToBoolean(e._args[0]); } } strCallingType = e._args[1].ToString(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlDialer_VMuktiEventStartManualDialing()", "ctlDialer.xaml.cs"); } }
void ctlDialer_VMuktiEventHangUp(object sender, VMuktiEventArgs e) { try { FncHangUp(long.Parse(e._args[0].ToString())); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlDialer_VMuktiEventHangUp()", "ctlDialer.xaml.cs"); } }
void ctlImageSharing_VMuktiEvent(object sender, VMuktiEventArgs e) { try { ClosePod(); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "ctlImageSharing_VMuktiEvent", "ctlImageSharing.xaml.cs"); } }
public void FncRegister(object sender, VMuktiEventArgs e) { try { if (VMuktiAPI.VMuktiInfo.strExternalPBX == "true") { try { RClient = new RTCClient(e._args[0].ToString(), e._args[1].ToString(), e._args[2].ToString()); lblUserNumber.Content = e._args[0].ToString() + "@" + e._args[2].ToString(); RClient.entstatus += new RTCClient.delStatus(RClient_entstatus); RClient.NonHumanDetected += OnNonHumanDetected; } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "FncRegister()--1", "ctlDialer.xaml.cs"); } } else { string strSIPNumber = ""; if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.NodeWithHttp) { VMuktiService.BasicHttpClient bhcSuperNode = new VMuktiService.BasicHttpClient(); SNChannelPredictive = (IService)bhcSuperNode.OpenClient<IService>("http://" + VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP + ":80/SNServicePredictive"); strSIPServerIP = VMuktiInfo.CurrentPeer.SuperNodeIP; strSIPNumber = SNChannelPredictive.svcAddSIPUser(); } else { strSIPNumber = FncAddSIPUser(); strSIPServerIP = VMuktiAPI.VMuktiInfo.CurrentPeer.CurrentMachineIP.ToString(); } VMuktiHelper.CallEvent("SetAgentNumber", this, new VMuktiEventArgs(strSIPNumber, strSIPNumber, strSIPServerIP)); RClient = new RTCClient(strSIPNumber, strSIPNumber, strSIPServerIP); lblUserNumber.Content = strSIPNumber + "@" + strSIPServerIP; RClient.entstatus += new RTCClient.delStatus(RClient_entstatus); RClient.NonHumanDetected += OnNonHumanDetected; } } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "FncRegister()", "ctlPredictivePhone.xaml.cs"); } }
void ctlDialer_SignOut_VMuktiEvent(object sender, VMuktiEventArgs e) { try { ClosePod(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlDialer_SignOut_VMuktiEvent()", "Audio\\ctlDialer.xaml.cs"); } }
void ctlDialer_VMuktiEvent(object sender, VMuktiEventArgs e) { try { btnChannels[intChannelNumber - 1].Tag = "Free"; btnChannels[intChannelNumber - 1].Background = Brushes.Transparent; RClient.HangUp(Convert.ToInt32(intChannelNumber.ToString())); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "ctlDialer_VMuktiEvent()", "ctlDialer.xaml.cs"); } }
void MyDialer_VMuktiEvent_SetDisposition(object sender, VMuktiEventArgs e) { try { fncRecordedFileUpload(channelManager.ActiveChannel.LeadID, channelManager.ActiveChannel.CalledDate, long.Parse(e._args[0].ToString())); channelManager.SetDisposition(e); #region To Inform DashBoard (Added by Alpa) long LeadId = channelManager.ActiveChannel.LeadID; DateTime CalledDate = channelManager.ActiveChannel.CalledDate; DateTime ModifiedDate = channelManager.ActiveChannel.CalledDate; long ModifiedBy = channelManager.ActiveChannel.UserID; long GeneratedBy = channelManager.ActiveChannel.UserID; DateTime StartDate = channelManager.ActiveChannel.StartDate; DateTime StartTime = channelManager.ActiveChannel.StartDate; long DurationInSec = channelManager.ActiveChannel.CallDuration; long DispositionID = channelManager.ActiveChannel.DispositionID; long CampaignID = channelManager.ActiveChannel.CurrentCampainID; long ConfID = channelManager.ActiveChannel.ConfID; bool IsDeleted = false; string CallNote = channelManager.ActiveChannel.CallNote; bool IsDNC = channelManager.ActiveChannel.IsDNC; bool IsGlobal = channelManager.ActiveChannel.IsGlobal; channelNetTcpDialer.svcGetCallInfo(LeadId, CalledDate, ModifiedDate, ModifiedBy, GeneratedBy, StartDate, Convert.ToDateTime(StartTime), DurationInSec, DispositionID, CampaignID, ConfID, IsDeleted, CallNote, IsDNC, IsGlobal); #endregion if (btnAutomaticDial.Content.ToString() == "Stop Automatic Dialing") { FncRemoveDialLead(); FireCall(); } } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "MyDialer_VMuktiEvent_SetDisposition()", "MyDialer.xaml.cs"); } }
public void FncRegisterfromEvent(object sender, VMuktiEventArgs e) { try { if (blIsVista) { ClientNetP2PRTCVistaChannel.svcRegisterSIPPhone(e._args[0].ToString(), e._args[1].ToString(), e._args[2].ToString()); } else { RClient = new RTCClient(e._args[0].ToString(), e._args[1].ToString(), e._args[2].ToString()); RClient.entstatus += new RTCClient.delStatus(RClient_entstatus); } lblUserNumber.Content = e._args[0].ToString() + "@" + e._args[2].ToString(); //RClient = new RTCClient("3000", "3000", "59.165.20.15"); //lblUserName.Content=@"[email protected]"; RClient.NonHumanDetected += OnNonHumanDetected; } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "FncRegisterfromEvent()", "ctlDialer.xaml.cs"); } }
void MyDialer_SetChannelValues(object sender, VMuktiEventArgs e) { try { channelManager.SetChannelValues(e); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "MyDialer_SetChannelValues()", "MyDialer.xaml.cs"); } }
public void FncRegister(object sender, VMuktiEventArgs e) { try { DataSet da = new DataSet(); if (VMuktiAPI.VMuktiInfo.strExternalPBX == "true") { try { //MessageBox.show("Sip Number is: " + e._args[0].ToString() + "and Sip server is: " + e._args[2].ToString()); if (blIsVista) { ClientNetP2PRTCVistaChannel.svcRegisterSIPPhone(e._args[0].ToString(), e._args[1].ToString(), e._args[2].ToString()); } else { RClient = new RTCClient(e._args[0].ToString(), e._args[1].ToString(), e._args[2].ToString()); RClient.entstatus += new RTCClient.delStatus(RClient_entstatus); RClient.NonHumanDetected += OnNonHumanDetected; } lblUserNumber.Content = e._args[0].ToString() + "@" + e._args[2].ToString(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "FncRegister()--1", "ctlDialer.xaml.cs"); } } else { //SNChannel = (IService)bhcSuperNode.OpenClient<IService>("http://210.211.254.132:80/SNService"); //string strSIPNumber = "2118"; ///string strSIPServerIP = "210.211.254.132"; string strSIPNumber = ""; if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.NodeWithHttp) { VMuktiService.BasicHttpClient bhcSuperNode = new VMuktiService.BasicHttpClient(); SNChannel = (IService)bhcSuperNode.OpenClient<IService>("http://" + VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP + ":80/SNService"); strSIPServer = VMuktiInfo.CurrentPeer.SuperNodeIP; strSIPNumber = SNChannel.svcAddSIPUser(); } else { strSIPNumber = FncAddSIPUser(); strSIPServer = VMuktiAPI.VMuktiInfo.CurrentPeer.CurrentMachineIP.ToString(); } if (blIsVista) { ClientNetP2PRTCVistaChannel.svcRegisterSIPPhone(strSIPNumber, strSIPNumber, strSIPServer); } else { RClient = new RTCClient(strSIPNumber, strSIPNumber, strSIPServer); RClient.entstatus += new RTCClient.delStatus(RClient_entstatus); RClient.NonHumanDetected += OnNonHumanDetected; } lblUserNumber.Content = strSIPNumber + "@" + strSIPServer; } } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "FncRegister()--2", "ctlDialer.xaml.cs"); } }
void MyDialer_VMuktiEvent_Logoff(object sender, VMuktiEventArgs e) { try { VMuktiHelper.CallEvent("SetDisposition", this, new VMuktiEventArgs(100, "None", false)); channelManager.CallExit(); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "MyDialer_VMuktiEvent_Logoff()", "MyDialer.xaml.cs"); } }
void delAsyncGetMessage(List<clsMessage> lstMsg) { try { if (lstMsg.Count > 0) { for (int i = 0; i < lstMsg.Count; i++) { if (lstMsg[i].strMessage == "OPEN_PAGE") { objVMuktiGrid.LoadMeetingPage(lstMsg[i].objPageInfo); #region popup FncShowPopup(lstMsg[i].objPageInfo); #endregion if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized) { Beep(750, 300); } } else if (lstMsg[i].strMessage == "OPEN_PAGE4MultipleBuddies") { //objVMuktiGrid.LoadNewMultipleBuddyPage(lstMsg[i].objClsModuleInfo); objVMuktiGrid.LoadMeetingPage(lstMsg[i].objPageInfo); #region popup FncShowPopup(lstMsg[i].strFrom, lstMsg[i].objClsModuleInfo); #endregion if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized) { Beep(750, 300); } } else if (lstMsg[i].strMessage == "JoinConf") { if (lstMsg[i].strTo[0] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName) { foreach (KeyValuePair<int, int> kvp in VMuktiAPI.VMuktiInfo.CurrentPeer.ConferenceUser) { if (kvp.Key == lstMsg[i].confid) { ClsConferenceCollection objGetConfInfo = ClsConferenceCollection.GetUserConferences(lstMsg[i].confid); clsPageInfo objPageInfo = new clsPageInfo(); for (int pCnt = 0; pCnt < objVMuktiGrid.pageControl.Items.Count; pCnt++) { if (objGetConfInfo[0].PageID == ((VMuktiGrid.ctlPage.TabItem)objVMuktiGrid.pageControl.Items[pCnt]).ObjectID) { VMuktiGrid.ctlPage.TabItem objpage = ((VMuktiGrid.ctlPage.TabItem)objVMuktiGrid.pageControl.Items[pCnt]); objPageInfo = objVMuktiGrid.pageControl.SendPage(objpage, lstMsg[i].strFrom); break; } } if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp) { App.chHttpSuperNodeService.svcSendConfInfo(lstMsg[i].strTo[0], lstMsg[i].strFrom, lstMsg[i].confid, objPageInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP); } else { App.chNetP2PSuperNodeChannel.svcSendConfInfo(lstMsg[i].strTo[0], lstMsg[i].strFrom, lstMsg[i].confid, objPageInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP); } break; } } } } else if (lstMsg[i].strMessage == "UnJoinConf") { try { //close the page with specified confid //in different window display the message of closing the conference for (int BCnt = 0; BCnt < lstMsg[i].strTo.Length; BCnt++) { if (lstMsg[i].strTo[BCnt] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName) { this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelUnJoinConf, lstMsg[i].strFrom, lstMsg[i].confid); break; } } } catch (Exception exp) { VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "delAsyncGetMessage()", "pgHome.xaml.cs"); } } else if (lstMsg[i].strMessage == "SendConfInfo") { try { if (lstMsg[i].strTo[0] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName) { foreach (KeyValuePair<int, int> kvp in VMuktiAPI.VMuktiInfo.CurrentPeer.ConferenceUser) { if (kvp.Key == lstMsg[i].confid) { this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelSendConfInfo, lstMsg[i].objPageInfo); } } } } catch (Exception exp) { VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "SendConfInfo", "pgHome.xaml.cs"); } } else if (lstMsg[i].strMessage == "EnterConf") { try { if (lstMsg[i].strFrom != VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName) { VMuktiAPI.VMuktiEventArgs args = new VMuktiAPI.VMuktiEventArgs(new object[] { lstMsg[i].confid }); VMuktiAPI.VMuktiHelper.CallEvent("EnterConf", this, args); } } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "delAsyncGetMessage()", "pgHome.xaml.cs"); } } else if (lstMsg[i].strMessage == "AddConfBuddy") { try { for (int BCnt = 0; BCnt < lstMsg[i].strTo.Length; BCnt++) { if (lstMsg[i].strTo[BCnt] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName) { this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelAddConfBuddy, lstMsg[i].strFrom, lstMsg[i].confid); break; } } } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "delAsyncGetMessage():-RemoveBuddyConf", "pgHome.xaml.cs"); } } else if (lstMsg[i].strMessage == "RemoveBuddyConf") { try { for (int BCnt = 0; BCnt < lstMsg[i].strTo.Length; BCnt++) { if (lstMsg[i].strTo[BCnt] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName) { this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelRemoveBuddyConf, lstMsg[i].strFrom, lstMsg[i].confid); break; } } } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "delAsyncGetMessage():-RemoveBuddyConf", "pgHome.xaml.cs"); } } else if (lstMsg[i].strMessage == "PodNavigate") { try { //close the page with specified confid //in different window display the message of closing the conference for (int BCnt = 0; BCnt < lstMsg[i].strTo.Length; BCnt++) { if (lstMsg[i].strTo[BCnt] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName) { List<int> lstIDs = new List<int>(); lstIDs.Add(int.Parse(lstMsg[i].objClsModuleInfo.strPageid)); lstIDs.Add(int.Parse(lstMsg[i].objClsModuleInfo.strTabid)); lstIDs.Add(int.Parse(lstMsg[i].objClsModuleInfo.strPodid)); this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelPodNavigation, lstMsg[i].strFrom, lstIDs); break; } } } catch (Exception exp) { VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "delAsyncGetMessage()--PodNavigate", "pgHome.xaml.cs"); } } if (lstMsg[i].lstClsModuleInfo != null && lstMsg[i].lstClsModuleInfo.Count > 0) { if (lstMsg[i].lstClsModuleInfo[0].strDropType == "Page Type" || lstMsg[i].lstClsModuleInfo[0].strDropType == "Tab Type") { if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized) { Beep(750, 300); } } } else if (lstMsg[i].objClsModuleInfo != null) { if (lstMsg[i].strMessage == "OPEN_MODULE") { if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized) { Beep(750, 300); } } else if (lstMsg[i].strMessage == "Newly Dragged Buddy") { #region Pod Type if (lstMsg[i].objClsModuleInfo.strDropType == "Pod Type") { } #endregion if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized) { Beep(750, 300); } } else if (lstMsg[i].strMessage == "CLOSE MODULE") { HttpRemoveDraggedBuddy(lstMsg[i].strFrom, lstMsg[i].strTo, lstMsg[i].strMessage, lstMsg[i].objClsModuleInfo); lstMsg.RemoveAt(i); } } } } this.dispTmrCheckStatus.Start(); } catch (Exception exp) { VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "delgetMessage()", "pgHome.xaml.cs"); } }
void SetAgentNumber_VMuktiEvent(object sender, VMuktiEventArgs e) { try { objChannelManager.chManagerSetAgentNumber(e._args[0].ToString(), e._args[1].ToString(), e._args[2].ToString()); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "setagentnumber_vmuktievent()", "predictivedialer.xaml.cs"); } }
void objAppSNDel_EntsvcEnterConf(string from, List<string> lstBuddies, int confid, string ipaddress) { try { if (from != VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName) { VMuktiAPI.VMuktiEventArgs args = new VMuktiAPI.VMuktiEventArgs(new object[] { confid }); VMuktiAPI.VMuktiHelper.CallEvent("EnterConf", this, args); } } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "objAppSNDel_EntsvcEnterConf()", "pgHome.xaml.cs"); } }
// For Enabling/Disabling predictive phone. void SetPredictivePhoneDEnable_VMuktiEvent(object sender, VMuktiEventArgs e) { try { cnvMain.IsEnabled = bool.Parse(e._args[0].ToString()); if (btnPredictiveDial.Content.ToString().StartsWith("Start") && btnManualDial.Content.ToString().StartsWith("Start")) { VMuktiHelper.CallEvent("SetSoftPhoneEnable", this, new VMuktiEventArgs(false, e._args[1])); } else { VMuktiHelper.CallEvent("SetSoftPhoneEnable", this, new VMuktiEventArgs(true, e._args[1])); } } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "SetPredictivePhoneDEnable_VMuktiEvent()", "PredictiveDialer.xaml.cs"); } }
void UnJoinConf(string from, int confid) { try { VMuktiAPI.VMuktiEventArgs args = new VMuktiAPI.VMuktiEventArgs(new object[] { confid }); VMuktiAPI.VMuktiHelper.CallEvent("ExitConf", this, args); for (int pCnt = 0; pCnt < objVMuktiGrid.pageControl.Items.Count; pCnt++) { if (((VMuktiGrid.ctlPage.TabItem)objVMuktiGrid.pageControl.Items[pCnt]).ConfID == confid) { ((VMuktiGrid.ctlPage.TabItem)objVMuktiGrid.pageControl.Items[pCnt]).Close(); //objVMuktiGrid.CloseConfPage(confid); Window wndCloseConf = new Window(); wndCloseConf.ShowInTaskbar = true; wndCloseConf.Height = 100; wndCloseConf.Width = 300; wndCloseConf.Content = from.ToUpper() + " Has Ended the Conference" + Char.ConvertFromUtf32(13) + "Thank You for attending the Conference !!!"; wndCloseConf.WindowStartupLocation = WindowStartupLocation.CenterScreen; wndCloseConf.WindowState = WindowState.Normal; wndCloseConf.Title = "VMukti Conference"; wndCloseConf.Show(); break; // pageControl.Items.RemoveAt(pCnt); } } } catch (Exception exp) { VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "UnJoinConf()", "pgHome.xaml.cs"); } }
void AllCtlLoaded_VMuktiEvent(object sender, VMuktiEventArgs e) { try { VMuktiHelper.CallEvent("RegisterAgent", this, new VMuktiEventArgs(objChannelManager.AgentNumber, objChannelManager.AgentPassWord, objChannelManager.SIPServerAddress)); VMuktiHelper.CallEvent("SetCampaignID", this, new VMuktiEventArgs(objChannelManager.CurrentCampaingID)); btnManualDial_Click(null, null); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "AllCtlLoaded_VMuktiEvent()", "PredictiveDialer.xaml.cs"); } }
void ctlScreenCapt_VMuktiEvent(object sender, VMuktiEventArgs e) { ClosePod(); }