Svetlana il y a 3 ans
Parent
commit
ae93efcfa8
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      app/app.py

+ 2 - 0
app/app.py

@@ -332,6 +332,7 @@ async def celCallback(mngr: Manager, msg: Message):
         (firstMessage.Context == 'from-pstn')):
       if (msg.EventName == 'APP_START'):
         app.cache['cel_queue_calls'][lid] = {'caller': msg.CallerIDnum, 'start': parseDatetime(msg.EventTime).isoformat()}
+        app.cache['cel_calls'][lid]['queueName'] = msg.Exten
         _cb = {'callid': lid, 
             'caller': msg.CallerIDnum, 
             'start': parseDatetime(msg.EventTime).isoformat(),
@@ -341,6 +342,7 @@ async def celCallback(mngr: Manager, msg: Message):
         reply = await doCallback('queueEnter', _cb)
       if (msg.EventName in ('APP_END', 'BRIDGE_ENTER')):
         call = app.cache['cel_queue_calls'].pop(lid,False)
+        app.cache['cel_calls'][lid]['queueName'] = False
         queue_changed = (call != None)
         if queue_changed :
           _cb = {'callid': lid,