From 523c012c38c11d0ea538828963edb76dac0a4d0c Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Sun, 27 Apr 2025 08:33:55 -0400 Subject: [PATCH] Use a Twilio asset to ring the phone throughout --- examples/phone-chatbot-daily-twilio-sip/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/phone-chatbot-daily-twilio-sip/server.py b/examples/phone-chatbot-daily-twilio-sip/server.py index 68fc621a1..5a89e742c 100644 --- a/examples/phone-chatbot-daily-twilio-sip/server.py +++ b/examples/phone-chatbot-daily-twilio-sip/server.py @@ -83,9 +83,12 @@ async def handle_call(request: Request): raise HTTPException(status_code=500, detail=f"Failed to start bot: {str(e)}") # Generate TwiML response to put the caller on hold with music + # You can replace the URL with your own music file + # or use Twilio's built-in music on hold + # https://www.twilio.com/docs/voice/twiml/play#music-on-hold resp = VoiceResponse() resp.play( - url="http://com.twilio.sounds.music.s3.amazonaws.com/MARKOVICHAMP-Borghestral.mp3", + url="https://therapeutic-crayon-2467.twil.io/assets/US_ringback_tone.mp3", loop=10, )