This commit is contained in:
Dev PC
2025-08-05 12:29:53 +03:00
parent fe140474d9
commit 9adfe63142
2 changed files with 2 additions and 5 deletions
+2 -4
View File
@@ -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
-1
View File
@@ -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 = {