Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

log: Alert when non managed Communication Service error is triggered

Clémence Lesné783fb4479eeb
diff --git a/main.py b/main.py
index ca8e73c..55921a4 100644
--- a/main.py
+++ b/main.py
@@ -353,6 +353,7 @@ async def communication_event_worker(
call.recognition_retry += 1
else: # Timeout reached or other error
+ _logger.warn(f"Recognition failed with unknown error code {error_code}, ending call ({call.call_id})")
await handle_play(
call=call,
client=client,