Hal De 3 rokov pred
rodič
commit
6b790abbf7
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  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