예제 #1
0
 public override void OnRequestAgentModeChange(ref Agent agent, AgentMode agentMode)
 {
     try { throw new NotImplementedException("Invalid Agent Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LoggerFiles.DuoDefault, "", exception, Logger.LogLevel.Error); }
 }
예제 #2
0
 public override void OnRequestAgentBreak(ref Agent agent, AgentMode agentMode, string callSessionId)
 {
     var result = ArdsHandler.SendStatusChangeRequestBreak(agent.UserAuth, callSessionId);
     agent.BreakRequsetHandle(result);
 }
예제 #3
0
 public override void OnCallReject(ref Agent agent, string callSessionId)
 {
     try { throw new NotImplementedException("Invalid Agent Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LoggerFiles.DuoDefault, "", exception, Logger.LogLevel.Error); }
 }
예제 #4
0
 public override void OnResetStatus(ref Agent agent)
 {
     agent.AgentCurrentState = new AgentIdle();
     
 }
예제 #5
0
 public override void OnLoggedOn(ref Agent agent, string callSessionId)
 {
     Logger.Instance.LogMessage(Logger.LoggerFiles.DuoDefault, "Due to Reconfiguration",Logger.LogLevel.Info);
 }
예제 #6
0
 public override void OnFailMakeCall(ref Agent agent)
 {
     try { throw new NotImplementedException("Invalid Agent Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LoggerFiles.DuoDefault, "", exception, Logger.LogLevel.Error); }
 }
예제 #7
0
 public override void OnAnswerCall(ref Agent agent, string callSessionId)
 {
     agent.AgentCurrentState = new AgentBusy();
 }
예제 #8
0
 public override void OnEndBreak(ref Agent agent)
 {
     agent.CancelAgentBreakRequest();
 }
예제 #9
0
 public override void OnMakeCall(ref Agent agent)
 {
     agent.AgentCurrentState = new AgentBusy();
     //ArdsHandler.ResourceStatusChangeBusy(dialPad.Auth, dialPad.CallSessionId); // call server not accept dis msg. kusal ask me to remove this update.
 }
예제 #10
0
 public override void OnRequestAgentBreak(ref Agent agent, string callSessionId, string breakReason)
 {
     agent.ResoursHandler.SendStatusChangeRequestBreak(agent.Auth, callSessionId, breakReason);
 }
예제 #11
0
 public override void OnOffline(ref Agent agent, string statusText)
 {
     agent.AgentCurrentState = new AgentOffline();
 }
예제 #12
0
 public override void OnMakeCall(ref Agent agent)
 {
     agent.AgentCurrentState = new AgentBusy();
 }
예제 #13
0
 public override void OnRequestAgentBreakCancel(ref Agent agent, string callSessionId)
 {
     agent.ResoursHandler.CancelBreakRequest(agent.Auth, callSessionId);
 }