Help running call automation python sample #11092
Replies: 4 comments
-
Hi @oradcliffe, are you trying to use the DefaultAzureCredential for authentication? Can you give more details on which exact sample you're trying to run? OpenAI or Azure OpenAI? A more complete stack trace? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @moonbox3 - I am trying to run the call automation sample, found here. I'm using Azure Open AI with a realtime model deployed. Here's what I am seeing most recently - previously I was getting a message that I didn't have environmental credentials but after throwing everything away and starting fresh, I am seeing this: [2025-03-27 16:36:55,387] INFO in call_automation: incoming call handler caller id: +14061234567 |
Beta Was this translation helpful? Give feedback.
-
For what it's worth, I've had to do a lot of trial and error to get this far. Here are my notes from a second go: Re-cloned repo /home/codespace/bin/devtunnel user login Take note of 'connect via browser' Open second terminal (leave dev tunnel running) Rename .env.example to .env uv run --env-file .env call_automation.py Update event grid with tunnel URL (/api/incomingCall) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the extra context, @oradcliffe. I created an issue (#11237) to better track this. Please follow along there for any further updates. |
Beta Was this translation helpful? Give feedback.
-
Has anyone successfully run the call automation sample? I am getting an error "DefaultAzureCredential failed to retrieve a token from the included credentials. Attempted credentials: EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured."
As far as I can tell, my environmental variables are configured. Everything else seems to work, dev tunnel is up, app runs, event grid hands call off to the (local) app, but have an issue connecting to openAI realtime model.
If there are any gotchas that aren't called out in the docs I might be missing, I would love to hear about it.
Beta Was this translation helpful? Give feedback.
All reactions