Ver Fonte

not all calls are in calls dict. use cel_calls

svetlana há 3 anos atrás
pai
commit
b74e13e531
1 ficheiros alterados com 2 adições e 2 exclusões
  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')