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

cost: Do not retry too long call events

Clémence Lesnécb41778608a7
diff --git a/main.py b/main.py
index aaf7994..5661ed4 100644
--- a/main.py
+++ b/main.py
@@ -132,6 +132,10 @@ async def eventgrid_register() -> None:
event_subscription_info={
"properties": {
"eventDeliverySchema": "EventGridSchema",
+ "retryPolicy": {
+ "maxDeliveryAttempts": 8,
+ "eventTimeToLiveInMinutes": 3, # Call are real time, no need to wait
+ },
"destination": {
"endpointType": "WebHook",
"properties": {