Hal De 4 lat temu
rodzic
commit
ec9dd4728c
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      app/app.py

+ 1 - 3
app/app.py

@@ -203,8 +203,7 @@ async def newchannelCallback(mngr: Manager, msg: Message):
     if device is not None:
       row = await db.fetch_one(query='SELECT url FROM callback_urls WHERE device = :device',
                                values={'device': device})
-      app.logger.warning('{}-{}-{}'.format((row is not None), ('url' in row), (row['url'].startswith('http'))))
-      if (row is not None) and ('url' in row) and (row['url'].startswith('http')):
+      if (row is not None) and (row['url'].startswith('http')):
         reply = await app.config['HTTP_CLIENT'].post(row['url'],
                                                      json={'user': user,
                                                            'device': device,
@@ -212,7 +211,6 @@ async def newchannelCallback(mngr: Manager, msg: Message):
                                                            'callerId': cid,
                                                            'did': did,
                                                            'callId': uid})
-        app.logger.warning('callback done')
 
 async def getCDR(start=None,
                  end=None,