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

dev: Enhance logging

Clémence Lesné6acf0742a1ff
diff --git a/main.py b/main.py
index 73d8e5a..deab6d7 100644
--- a/main.py
+++ b/main.py
@@ -899,7 +899,7 @@ async def handle_hangup(client: CallConnectionClient, call: CallModel) -> None:
)
except Exception:
- _logger.warn(f"SMS error ({call.id})", exc_info=True)
+ _logger.warn(f"Failed SMS to {call.phone_number} ({call.id})", exc_info=True)
def audio_from_text(text: str) -> TextSource: