|
@@ -566,7 +566,7 @@ class AgentStateService:
|
|
|
def idle_hash(self, saas_id, agent_id, phone_num, service_id):
|
|
|
key = self._key(saas_id, service_id)
|
|
|
state_data = AgentStateData()
|
|
|
-
|
|
|
+ print("idle_hash, key=%s, saas_id=%s, phone_num=%s"%(key, saas_id, phone_num), flush=True)
|
|
|
cache_agent_map = self.get_cache_agent_map(saas_id, service_id)
|
|
|
if cache_agent_map and phone_num in cache_agent_map:
|
|
|
state_data = cache_agent_map[phone_num]
|
|
@@ -670,10 +670,10 @@ class AgentStateService:
|
|
|
return 0
|
|
|
|
|
|
def _check_in_key(self, saas_id):
|
|
|
- return "CTI:%s:HUMAN:AGENT".format(saas_id.upper())
|
|
|
+ return "CTI:%s:HUMAN:AGENT"%(saas_id.upper())
|
|
|
|
|
|
def _key(self, saas_id, service_id):
|
|
|
- return "CTI:%s:HUMAN:%s".format(saas_id.upper(), service_id)
|
|
|
+ return "CTI:%s:HUMAN:%s"%(saas_id.upper(), service_id)
|
|
|
|
|
|
def _get_expire_time(self):
|
|
|
now = datetime.now()
|