Transfer call
live().sessions().refer(SessionReferParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/live/sessions/{session_id}/refer
Transfer a SIP call to another destination. Supply a nonblank target_uri for the SIP Refer-To header.
Transfer call
package com.openai.example;
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.live.sessions.SessionReferParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
OpenAIClient client = OpenAIOkHttpClient.fromEnv();
SessionReferParams params = SessionReferParams.builder()
.sessionId("session_id")
.targetUri("tel:+14155550123")
.build();
client.live().sessions().refer(params);
}
}