Refer call
realtime().calls().refer(CallReferParamsparams , RequestOptionsrequestOptions = RequestOptions.none() )
POST
/realtime/calls/{call_id}/referTransfer an active SIP call to a new destination using the SIP REFER verb.
Refer call
package com.openai.example;
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.realtime.calls.CallReferParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
OpenAIClient client = OpenAIOkHttpClient.fromEnv();
CallReferParams params = CallReferParams.builder()
.callId("call_id")
.targetUri("tel:+14155550123")
.build();
client.realtime().calls().refer(params);
}
}