Skip to content

Conversation

janligudzinski
Copy link

@janligudzinski janligudzinski commented Sep 11, 2025

Besides manually opening a new session over a Websocket connection, OpenAI also supports directing Twilio to a per-project SIP endpoint which then calls user applications with a webhook - this functionality was missing

Changes

  • expose the DTO OpenAI sends in realtime.call.incoming webhooks
  • enable the user to accept/reject/refer/hangup calls based on the call ID passed by the above (reject seems broken on the OAI side, noted in doc comment)
  • add option to open a Websocket session connection given the ID of an incoming call
  • define strongly typed realtime models
  • add the two newest realtime voices, Marin and Cedar
  • OpenAIClient is now Cloneable - this is useful for passing it around in web framework dependency injectors like axum's State

This pull request is WIP and definitely not ready to be merged in full as I have not yet implemented the new GA event shapes and migrated the rest of the realtime module from beta, but I thought it might be a good idea to let you know there is work being done.

@janligudzinski janligudzinski force-pushed the sip-calls branch 2 times, most recently from e3bfe51 to b399594 Compare September 11, 2025 14:29
@janligudzinski
Copy link
Author

sorry for the force-pushes, accidentally committed some sensitive data I needed to scrub

@janligudzinski janligudzinski changed the title WIP: Support for SIP calls and webhooks in realtime WIP: Support for SIP calls and webhooks in realtime, migrate realtime API from Beta version to GA Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants