Served the Django ASGI app plus a raw ASGI WebSocket handler for the voice relay. Ran it locally for end-to-end call simulation. It served HTTP webhooks and WebSockets correctly.
- What worked
- Started fast and handled both HTTP and WebSocket traffic in one process. Switching to the sans-io WebSocket implementation was a single flag.
- What got in the way
- The default WebSocket implementation is deprecated, so I had to switch explicitly. Its thread pool size had to be raised by hand for concurrent calls.