Skip to content

Realtime SDK: WebRTC Call ID not exposed, blocking use of Realtime server controls #483

@lcasartelli

Description

@lcasartelli

Describe the bug

When using the JS Realtime SDK to establish a WebRTC connection with a client_secret generated on the backend, I want to implement Realtime server controls as described in the documentation.

However, I cannot extract the WebRTC Call ID from the Location header as described in the docs.

The SDK encapsulates the request to https://api.openai.com/v1/realtime/calls, and the sdpResponse object (reference) is not exposed to the SDK caller.

This makes it impossible to retrieve the Call ID that is required to interact with the Realtime server controls API.

Debug information

  • Agents SDK version: v0.1.3
  • Runtime environment: React 18.3

Steps to reproduce

  1. Use the JS Realtime SDK to create a WebRTC connection with a client_secret.
  2. Attempt to follow the Realtime server controls documentation, which requires retrieving the WebRTC Call ID from the Location header.
  3. Notice that the SDK does not expose the sdpResponse or the Call ID to the caller.

Expected behavior

  • The SDK should provide a way to access the WebRTC Call ID returned in the Location header when creating a call.
  • This would allow developers to use the Call ID to integrate with the Realtime server controls API as documented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions