소스 검색

refactoring

Hal De 3 년 전
부모
커밋
6b790abbf7
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      app/app.py

+ 1 - 2
app/app.py

@@ -221,8 +221,7 @@ async def celCallback(mngr: Manager, msg: Message):
     if (cid is not None) and (len(cid) < 7):                         #for local calls only
       if msg.Context in ('from-queue'):
         if ((msg.EventName == 'CHAN_START') or
-            ((msg.EventName == 'CHAN_END') and
-             ('answered' not in firstMessage))):
+            ((msg.EventName == 'CHAN_END') and ('answered' not in firstMessage))):
           if msg.EventName == 'CHAN_START':                          #start dial
             app.cache['cel_calls'][lid]['channels'][msg.Exten] = msg.Channel
           else:                                                      #end dial