Advanced call control features including DTMF sending, SIPREC recording, noise suppression, client state, and supervisor controls. This skill provides Python SDK examples.
SkillScore95Maintained
Automatic
◆Coding pack
Last verified 8/22/2026
What it changes
Passed 21 of 22 test cases with the skill, and 6 of 22 without it.
Without skill27%
With skill95%
Checks it passed that the model alone missed
Passes sip_transport set to tls
Passes siprec_track set to both_tracks
Invokes client.calls.actions.join_ai_assistant
and 21 more in the full report
15 fixed6 passed either way1 still failing0 broke
Pass-rate lift
+68 pp
Tokens
+305%
Agent turns
0%
Response time
-45%
Model gemini-3.6-flashMeasured 8/22/2026v221 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 15 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 15
Prompt
Write a Python snippet using Telnyx to turn off active noise suppression on a call leg with control ID 'cc-888'.
What was checked, without and with the skill
Checked
Without skill
With skill
Invokes client.calls.actions.stop_noise_suppression with call_control_id
Missed
Passed
case-08 · gemini-3.6-flash · 8/22/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md498 linessingle file
Telnyx Voice Advanced - Python
Installation
pip install telnyx
Setup
import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
All examples below assume client is already initialized as shown above.
Error Handling
All API calls can fail with network errors, rate limits (429), validation errors (422),
or authentication errors (401). Always handle errors in production code:
import telnyx
try:
result = client.messages.send(to="+13125550001", from_="+13125550002", text="Hello")
except telnyx.APIConnectionError:
print("Network error — check connectivity and retry")
except telnyx.RateLimitError:
# 429: rate limited — wait and retry with exponential backoff
import time
time.sleep(1) # Check Retry-After header for actual delay
except telnyx.APIStatusError as e: