Moving an ASP.NET Core SIP voice service off a retiring OpenAI realtime model with Azure App Configuration
This article was drafted with AI help and reviewed by the author. Say you run an ASP.NET Core service that answers phone calls through OpenAI's Realtime API over SIP. A call comes in, OpenAI sends your webhook an incoming call event, and your service accepts the call with the session settings it wa

This article was drafted with AI help and reviewed by the author.
Say you run an ASP.NET Core service that answers phone calls through OpenAI's Realtime API over SIP. A call comes in, OpenAI sends your webhook an incoming call event, and your service accepts the call with the session settings it wants.
OpenAI's deprecations page now gives shutdown dates to the realtime models such a service is likely to use. gpt-realtime and gpt-realtime-mini end on 20 January 2027. gpt-realtime-2 ends on 1 June 2027. The recommended targets are gpt-realtime-2.1 and gpt-realtime-2.1-mini.
The edit itself is small. The work is in switching safely, one number at a time, with a way back that still exists on the day you need it. This post walks through one way to do that on Azure. It is based on OpenAI's SIP, deprecations and List models docs and on Microsoft Learn pages for App Configuration and ASP.NET Core health checks, read on 3 December 2026. None of it has been tried on a live phone line.
OpenAI's SIP guide says the accept request accepts whatever you would put in a client secret request. So the model, voice, instructions and tools all go in there. It also says that when your service later opens a WebSocket to the call using the call id, any model argument on that connection is not used. The model was already fixed at accept time.
That simplifies the design. There is exactly one place per call where the model is chosen. Make that place read from configuration, and make the configuration easy to change.
Give each agent its own keys instead of one global model setting. A sample layout:
Use labels for environments, so staging can run the new model while production stays put.
For refresh, Microsoft's guidance offers two choices. You can register all selected keys for refresh, or watch one sentinel key and reload everything when it changes. With several related keys, the sentinel is the safer choice. Change the model and voice first, then bump the sentinel, and the service reloads once with a consistent set.
Two refresh details matter for a voice service.
Read the values through IOptionsMonitor or the configuration root at accept time, not into a field at startup.
A flag that flips every agent at once is not a staged rollout. App Configuration feature flags support a targeting filter with named users, groups and a default percentage. The ASP.NET Core docs note that targeting needs a targeting context, and that the default accessor takes the user from the HTTP context. A webhook from OpenAI has no signed-in user, so the default is no use here.
Write your own targeting context accessor instead. The incoming call event carries SIP headers, including the To header with the number that was dialed. Use that number as the user id and the agent name as the group.
OpenAI's guide says to treat SIP headers as untrusted caller data, not as proof of anything. That is fine for picking a model. Don't let the same header grant access to anything.
Before the first change, create an App Configuration snapshot of the VoiceAgents keys. Microsoft describes snapshots as immutable once created, and suited to controlled rollouts. Archived snapshots are kept for a retention period, which defaults to 30 days on Standard and Premium stores. Set a longer one when you create it if your rollout will run longer.
Rolling back means pointing the keys back at the snapshot's values and bumping the sentinel.
Know where that stops working. A rollback to gpt-realtime-mini only helps before 20 January 2027. After the shutdown, OpenAI says the model no longer accepts requests. From then on, your only options are a different model that is still live, or a transfer to a person. The SIP guide documents a refer call for transferring, so build and test that path before you need it.
Each model in OpenAI's List models response can carry a shutdown date, or null when none is set. Use that in an ASP.NET Core health check.
The missing case matters. The reference describes the list as the models currently available, so a retired model may vanish instead of showing an old date.
Tag this check and expose it on its own endpoint through a predicate. Do not put it on the liveness probe that AKS uses to restart containers. A model date problem is not fixed by restarting a pod, and restarting every pod at once during business hours makes things worse. Point your monitoring at the tagged endpoint and alert on Degraded.
Here is how it could play out for one service, with invented dates.
The guide to OpenAI's realtime model deprecations covers the rest of the migration, including which speech and transcription models are affected.