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