debug10
This commit is contained in:
+2
-4
@@ -101,10 +101,8 @@ class CallHandler:
|
|||||||
for var in config.ID_VARS:
|
for var in config.ID_VARS:
|
||||||
answered = event.get(var)
|
answered = event.get(var)
|
||||||
if answered in config.OPERATORS:
|
if answered in config.OPERATORS:
|
||||||
await self.call_started(
|
await self.call_started(linkedid, answered)
|
||||||
linkedid, answered, event_now
|
return
|
||||||
)
|
|
||||||
break
|
|
||||||
if event.get("Disposition") == "NO ANSWER":
|
if event.get("Disposition") == "NO ANSWER":
|
||||||
await self.call_lost(linkedid)
|
await self.call_lost(linkedid)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ async def send_post_request(body: dict):
|
|||||||
}
|
}
|
||||||
if config.DEBUG:
|
if config.DEBUG:
|
||||||
loggingDict("Sending data to Medods", data, call_id)
|
loggingDict("Sending data to Medods", data, call_id)
|
||||||
loggingDict("Headers", headers, call_id)
|
|
||||||
r = await post_request(url=config.MEDODS_SERVER, headers=headers, json=data)
|
r = await post_request(url=config.MEDODS_SERVER, headers=headers, json=data)
|
||||||
try:
|
try:
|
||||||
res = {
|
res = {
|
||||||
|
|||||||
Reference in New Issue
Block a user