Skip to main content
telnyx-voice-java Make and receive calls, transfer, bridge, and manage call lifecycle with Call Control. Includes application management and call events. This skill provides Java SDK examples.
Zur Installation springen Skills Marktplatz Entdecken und erkunden Sie KI-Skills, die von der Community erstellt wurden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Prompt kopierenPrompt-Details anzeigen Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
npx skills add https://github.com/team-telnyx/telnyx-toolkit --skill telnyx-voice-javaDer Befehl bleibt in einer Zeile. Scrollen Sie horizontal, um ihn vor dem Kopieren vollständig zu prüfen.
Sie bevorzugen eine lokale Kopie? Laden Sie die Dateien herunter, die SkillsMP derzeit vorliegen.
ZIP herunterladen Herunterladen... Mehr aus diesem Repository Complete Telnyx toolkit — ready-to-use tools (STT, TTS, RAG, Networking, 10DLC) plus SDK documentation for JavaScript, Python, Go, Java, and Ruby.
Automated Telnyx bot account signup via challenge-response
Track agent activities using the Telnyx AI Missions API. Use this skill when executing multi-step tasks that should be logged and tracked. Supports creating voice/SMS agents, scheduling calls, and retrieving conversation insights. Use when tasks involve calling people, sending SMS, or any substantial tracked work.
SOC
Basierend auf der SOC-Berufsklassifikation
name telnyx-voice-java description Make and receive calls, transfer, bridge, and manage call lifecycle with Call Control. Includes application management and call events. This skill provides Java SDK examples. metadata {"author":"telnyx","product":"voice","language":"java","generated_by":"telnyx-ext-skills-generator"}
Telnyx Voice - Java
Installation
// See https://github.com/team-telnyx/telnyx-java for Maven/Gradle setup
Setup
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
All examples below assume client is already initialized as shown above.
Answer call
Answer an incoming call.
POST /calls/{call_control_id}/actions/answer
import com.telnyx.sdk.models.calls.actions.ActionAnswerParams;
import com.telnyx.sdk.models.calls.actions.ActionAnswerResponse;
ActionAnswerResponse response = client.calls().actions().answer("call_control_id" );
Bridge calls
Bridge two call control calls.
POST /calls/{call_control_id}/actions/bridge — Required:
call_control_id
import com.telnyx.sdk.models.calls.actions.ActionBridgeParams;
import com.telnyx.sdk.models.calls.actions.ActionBridgeResponse;
ActionBridgeParams params = ActionBridgeParams.builder()
.callControlIdToBridge("call_control_id" )
.callControlId("v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg" )
.build();
ActionBridgeResponse response = client.calls().actions().bridge(params);
Dial Dial a number or SIP URI from a given connection.
POST /calls — Required: connection_id, to, from
import com.telnyx.sdk.models.calls.CallDialParams;
import com.telnyx.sdk.models.calls.CallDialResponse;
CallDialParams params = CallDialParams.builder()
.connectionId("7267xxxxxxxxxxxxxx" )
.from("+18005550101" )
.to("+18005550100" )
.build();
CallDialResponse response = client.calls().dial(params);
Hangup call POST /calls/{call_control_id}/actions/hangup
import com.telnyx.sdk.models.calls.actions.ActionHangupParams;
import com.telnyx.sdk.models.calls.actions.ActionHangupResponse;
ActionHangupResponse response = client.calls().actions().hangup("call_control_id" );
Transfer call Transfer a call to a new destination.
POST /calls/{call_control_id}/actions/transfer — Required: to
import com.telnyx.sdk.models.calls.actions.ActionTransferParams;
import com.telnyx.sdk.models.calls.actions.ActionTransferResponse;
ActionTransferParams params = ActionTransferParams.builder()
.callControlId("call_control_id" )
.to("+18005550100" )
.build();
ActionTransferResponse response = client.calls().actions().transfer(params);
List all active calls for given connection Lists all active calls for given connection.
GET /connections/{connection_id}/active_calls
import com.telnyx.sdk.models.connections.ConnectionListActiveCallsPage;
import com.telnyx.sdk.models.connections.ConnectionListActiveCallsParams;
ConnectionListActiveCallsPage page = client.connections().listActiveCalls("1293384261075731461" );
List call control applications Return a list of call control applications.
GET /call_control_applications
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationListPage;
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationListParams;
CallControlApplicationListPage page = client.callControlApplications().list();
Create a call control application Create a call control application.
POST /call_control_applications — Required: application_name, webhook_event_url
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationCreateParams;
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationCreateResponse;
CallControlApplicationCreateParams params = CallControlApplicationCreateParams.builder()
.applicationName("call-router" )
.webhookEventUrl("https://example.com" )
.build();
CallControlApplicationCreateResponse callControlApplication = client.callControlApplications().create(params);
Retrieve a call control application Retrieves the details of an existing call control application.
GET /call_control_applications/{id}
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationRetrieveParams;
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationRetrieveResponse;
CallControlApplicationRetrieveResponse callControlApplication = client.callControlApplications().retrieve("id" );
Update a call control application Updates settings of an existing call control application.
PATCH /call_control_applications/{id} — Required: application_name, webhook_event_url
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationUpdateParams;
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationUpdateResponse;
CallControlApplicationUpdateParams params = CallControlApplicationUpdateParams.builder()
.id("id" )
.applicationName("call-router" )
.webhookEventUrl("https://example.com" )
.build();
CallControlApplicationUpdateResponse callControlApplication = client.callControlApplications().update(params);
Delete a call control application Deletes a call control application.
DELETE /call_control_applications/{id}
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationDeleteParams;
import com.telnyx.sdk.models.callcontrolapplications.CallControlApplicationDeleteResponse;
CallControlApplicationDeleteResponse callControlApplication = client.callControlApplications().delete("id" );
List call events Filters call events by given filter parameters.
import com.telnyx.sdk.models.callevents.CallEventListPage;
import com.telnyx.sdk.models.callevents.CallEventListParams;
CallEventListPage page = client.callEvents().list();
Webhooks The following webhook events are sent to your configured webhook URL.
All webhooks include telnyx-timestamp and telnyx-signature-ed25519 headers for verification (Standard Webhooks compatible).
Event Description callAnsweredCall Answered callStreamingStartedCall Streaming Started callStreamingStoppedCall Streaming Stopped callStreamingFailedCall Streaming Failed callBridgedCall Bridged callInitiatedCall Initiated callHangupCall Hangup callRecordingSavedCall Recording Saved callMachineDetectionEndedCall Machine Detection Ended callMachineGreetingEndedCall Machine Greeting Ended callMachinePremiumDetectionEndedCall Machine Premium Detection Ended callMachinePremiumGreetingEndedCall Machine Premium Greeting Ended