瀏覽代碼

重复签入

zhangguoyu 7 年之前
父節點
當前提交
558079ebd0
共有 1 個文件被更改,包括 15 次插入1 次删除
  1. 15 1
      ACD/AgentOffice.cpp

+ 15 - 1
ACD/AgentOffice.cpp

@@ -151,7 +151,21 @@ BOOL CAgentOffice::insertAgent( UINT a_AgentID, UINT a_ExtID, LPCTSTR a_GroupID,
151 151
 
152 152
 	// 查找是否存在当前座席
153 153
 	if(isAgentExisted(a_AgentID))
154
-		return FALSE;
154
+	{ 
155
+		//2018.5.25重复请求签入
156
+		CAgent* t_pAgent = getAgentById(a_AgentID);
157
+		int t_asso_exten = t_pAgent->assoExten();;
158
+		if (t_asso_exten == a_ExtID) {
159
+			
160
+			//CAcdCore::GetInstance().getQueueMgr().addAgent(t_pAgent);// 座席添加到排队队列
161
+			t_pAgent->onAssoExtStatusUpdated(a_ExtStatus);// 设置座席当前状态
162
+
163
+			return TRUE;
164
+		}else{
165
+			return FALSE;
166
+		}
167
+	}
168
+		
155 169
 
156 170
 	// 保存对象 ych 2018.5.4
157 171
 	CAgent* pAgent = NULL;