소스 검색

fix: 修复呼入

余尚辉 5 달 전
부모
커밋
76d043d01b
1개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 6
      src/core/callcenter/views.py

+ 4 - 6
src/core/callcenter/views.py

@@ -1,22 +1,20 @@
 #!/usr/bin/env python3
 # encoding:utf-8
-
 from . import app
 import src.core.callcenter.cache as Cache
+from src.core.callcenter.agent import AgentService, AgentOperService
 from src.core.callcenter.constant import success_response, error_response
 from src.core.callcenter.enumeration import CallType
+from src.core.callcenter.esl.client import InboundClient, OutboundClient
 from flask import Flask, request, render_template_string
 
+from src.core.callcenter.call import CallService
 from src.core.callcenter.api import AgentCallRequest, AgentActionRequest, HangupCallRequest, \
     HumanServiceQueryRequest
-
 from src.core.voip.bot import BotAgent
-from src.core.callcenter.call import CallService
-from src.core.callcenter.agent import AgentService, AgentOperService
-from src.core.callcenter.esl.client import InboundClient, OutboundClient
+
 
 agent = BotAgent(app.logger)
-# agent, inbound_client = None, None
 inbound_client = InboundClient(agent, app.logger)
 outbound_client = OutboundClient(agent, app.logger)
 call_service = CallService(inbound_client, app.logger)