Phone Number Attachment
Sessions can be started via incoming phone calls. Because it's not an API call that's driving session creation, configuration must be supplied up front in the dashboard.
If configuration changes are needed, for example if a memory context should be used so that the AI remembers previous conversations with a user, you must update the session using the updateRealtimeSession API.
The best entrypoint for updating the session is in response to the realtime_session.state_changed
webhook. Sessions initiated via phone will have the caller and callee phone number in its data
field.
See getRealtimeSession for details.