소스 검색

not all calls are in calls dict. use cel_calls

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

+ 2 - 2
app/app.py

@@ -206,8 +206,8 @@ async def newchannelCallback(mngr: Manager, msg: Message):
              'callerId': cid,
              'did': did,
              'callId': uid}
-      if (msg.linkedid in  app.cache['calls']) and ('WebCallId' in app.cache['calls'][msg.linkedid]):
-        _cb['WebCallId'] = app.cache['calls'][msg.linkedid]['WebCallId']
+      if (msg.linkedid in  app.cache['cel_calls']) and ('WebCallId' in app.cache['cel_calls'][msg.linkedid]):
+        _cb['WebCallId'] = app.cache['cel_calls'][msg.linkedid]['WebCallId']
       reply = await doCallback(device, _cb)
 
 @manager.register_event('CEL')