Refer call
realtime.calls.refer(call_id, **kwargs) -> void
POST/realtime/calls/{call_id}/refer
Transfer an active SIP call to a new destination using the SIP REFER verb.
Parameters
call_id: String
target_uri: String
URI that should appear in the SIP Refer-To header. Supports values like
tel:+14155550123 or sip:agent@example.com.
Refer call
require "openai"
openai = OpenAI::Client.new(api_key: "My API Key")
result = openai.realtime.calls.refer("call_id", target_uri: "tel:+14155550123")
puts(result)