Architecture and models
Should a voice agent use WebRTC or SIP?
Use WebRTC for many browser or app voice sessions, and SIP when the required entry point is a phone system or carrier trunk. Many deployments need both; let the caller’s access path drive the choice.
Map who starts the call
For an in-browser click-to-talk feature, test microphone permission, reconnection and playback. For a number people dial, specify how the carrier or PBX sends the call to the agent.
Treat transport and agent logic separately
Keep business rules and tools on the server even if the browser handles audio. Test caller context and transfer behavior independently for each route.
Compare real paths
Do not claim a browser demo measures telephone latency or carrier audio. Use the same conversation rubric on both paths, with channel-specific checks.
Sources and scope
Sources checked: .
- OpenAI WebRTC integration
WebRTC setup using a browser/client application.
- OpenAI telephony and SIP
Phone network integration over SIP.