Loading...
Loading...
Compare original and translation side by side
Standalone skill: This skill is fully self-contained. For deeper SDK-specific code examples after migration, install the relevant language plugin (,telnyx-python,telnyx-javascript,telnyx-go, ortelnyx-java). For client-side WebRTC, installtelnyx-ruby.telnyx-webrtc-client
独立Skill:本Skill完全独立。迁移后如需更深入的特定SDK代码示例,请安装相关语言插件(,telnyx-python,telnyx-javascript,telnyx-go, 或telnyx-java)。对于客户端WebRTC,请安装telnyx-ruby。telnyx-webrtc-client
bash {baseDir}/scripts/preflight-check.shTELNYX_API_KEYbash {baseDir}/scripts/preflight-check.shTELNYX_API_KEY| Twilio Product | Telnyx Equivalent | Migration Path |
|---|---|---|
| Programmable Voice (TwiML) | TeXML | Near drop-in XML compatibility |
| Programmable Voice (REST) | Call Control API | Event-driven, WebSocket-based |
| Programmable Messaging | Messaging API | New SDK integration |
| Elastic SIP Trunking | SIP Trunking | Direct replacement |
| Voice SDK (WebRTC) | WebRTC SDKs (JS, iOS, Android, Flutter, RN) | Concept remapping |
| Phone Numbers | Number Management | FastPort for same-day porting |
| Twilio Verify | Verify API | Different API surface, same functionality |
| Twilio Lookup | Number Lookup | Direct replacement |
| Twilio Video (retired Dec 2024) | Video Rooms API | Telnyx still supports video |
| Twilio Fax (deprecated) | Programmable Fax | Telnyx still supports fax |
| Super SIM / IoT | IoT SIM Cards | 650+ networks, 180+ countries |
{baseDir}/references/product-mapping.md| Twilio产品 | Telnyx等效产品 | 迁移路径 |
|---|---|---|
| Programmable Voice (TwiML) | TeXML | 近乎直接兼容的XML |
| Programmable Voice (REST) | Call Control API | 事件驱动、基于WebSocket |
| Programmable Messaging | Messaging API | 新SDK集成 |
| Elastic SIP Trunking | SIP Trunking | 直接替代 |
| Voice SDK (WebRTC) | WebRTC SDKs (JS、iOS、Android、Flutter、RN) | 概念重映射 |
| Phone Numbers | Number Management | 通过FastPort实现当日号码移植 |
| Twilio Verify | Verify API | API接口不同,但功能一致 |
| Twilio Lookup | Number Lookup | 直接替代 |
| Twilio Video(2024年12月停用) | Video Rooms API | Telnyx仍支持视频服务 |
| Twilio Fax(已弃用) | Programmable Fax | Telnyx仍支持传真服务 |
| Super SIM / IoT | IoT SIM Cards | 覆盖650+网络、180+国家 |
{baseDir}/references/product-mapping.mdundefinedundefined
Get your API key at https://portal.telnyx.com/#/app/api-keys
请在https://portal.telnyx.com/#/app/api-keys获取你的API密钥。import telnyximport telnyx
**Node.js:**
```javascript
const telnyx = require('telnyx')('YOUR_API_KEY');
telnyx.webhooks.signature.verifySignature(
payload,
request.headers['telnyx-signature-ed25519'],
request.headers['telnyx-timestamp'],
PUBLIC_KEY
);
**Node.js:**
```javascript
const telnyx = require('telnyx')('YOUR_API_KEY');
telnyx.webhooks.signature.verifySignature(
payload,
request.headers['telnyx-signature-ed25519'],
request.headers['telnyx-timestamp'],
PUBLIC_KEY
);data// Twilio webhook payload
{ "MessageSid": "SM...", "From": "+1555...", "Body": "Hello" }
// Telnyx webhook payload
{
"data": {
"event_type": "message.received",
"payload": {
"id": "...",
"from": { "phone_number": "+1555..." },
"text": "Hello"
}
}
}data// Twilio webhook payload
{ "MessageSid": "SM...", "From": "+1555...", "Body": "Hello" }
// Telnyx webhook payload
{
"data": {
"event_type": "message.received",
"payload": {
"id": "...",
"from": { "phone_number": "+1555..." },
"text": "Hello"
}
}
}channels="single"recordingChannels="single"channels="single"recordingChannels="single"bash {baseDir}/scripts/validate-texml.sh /path/to/your/twiml.xml{baseDir}/references/voice-migration.md{baseDir}/references/texml-verbs.md<Say><Play><Gather><Dial><Record><Hangup><Pause><Redirect><Reject><Refer><Enqueue><Leave><Start><Stop><Connect><Transcription><Suppression><Siprec><Gather><Say><Pay>bash {baseDir}/scripts/validate-texml.sh /path/to/your/twiml.xml{baseDir}/references/voice-migration.md{baseDir}/references/texml-verbs.md<Say><Play><Gather><Dial><Record><Hangup><Pause><Redirect><Reject><Refer><Enqueue><Leave><Start><Stop><Connect><Transcription><Suppression><Siprec><Gather><Say><Pay>{baseDir}/references/messaging-migration.mdundefined{baseDir}/references/messaging-migration.mdundefinedundefinedundefined{baseDir}/references/webrtc-migration.mdEnhanced coverage: Install theplugin for platform-specific implementation guides (JavaScript, iOS, Android, Flutter, React Native).telnyx-webrtc-client
{baseDir}/references/webrtc-migration.md扩展内容:安装插件以获取平台特定的实现指南(JavaScript、iOS、Android、Flutter、React Native)。telnyx-webrtc-client
{baseDir}/references/number-porting.md{baseDir}/references/number-porting.md{baseDir}/references/verify-migration.md{baseDir}/references/verify-migration.mdbash {baseDir}/scripts/validate-texml.sh /path/to/file.xmlbash {baseDir}/scripts/validate-texml.sh /path/to/file.xmlbash {baseDir}/scripts/preflight-check.shTELNYX_API_KEYapi.telnyx.combash {baseDir}/scripts/preflight-check.shTELNYX_API_KEYapi.telnyx.com| Migration Area | Related Skills | What They Cover |
|---|---|---|
| Voice (Call Control) | | dial (with |
| Voice (Advanced) | | |
| Voice (Conferencing) | | conference create (with |
| Voice (Gather/IVR) | | DTMF gathering, AI gather, gather using speak/audio — with webhook payload schemas for |
| Voice (Media) | | play audio, start/stop recording, streaming — with optional params for recording format, channels, track |
| Voice (TeXML REST) | | TeXML API CRUD (JS only — other langs use Call Control) |
| WebRTC (Backend) | | telephony credential create/token, SIP connection setup |
| WebRTC (Client) | | platform SDKs (JS, iOS, Android, Flutter, React Native) — custom SIP headers, push notifications |
| SIP / Trunking | | outbound voice profiles (with |
| Messaging | | send/receive SMS/MMS with optional params and webhook payload schemas |
| Numbers | | number management, porting |
| Verify | | verification API (SMS, voice, flash calling) |
telnyx-pythontelnyx-javascripttelnyx-gotelnyx-javatelnyx-ruby| 迁移领域 | 相关Skill | 涵盖内容 |
|---|---|---|
| 语音 (Call Control) | | 拨号(支持 |
| 语音 (高级) | | 所有命令的 |
| 语音 (会议) | | 会议创建(支持 |
| 语音 (Gather/IVR) | | DTMF收集、AI收集、通过语音/音频收集 —— 包含 |
| 语音 (媒体) | | 播放音频、开始/停止录音、流传输 —— 包含录音格式、声道、音轨的可选参数 |
| 语音 (TeXML REST) | | TeXML API增删改查(仅JS支持 —— 其他语言使用Call Control) |
| WebRTC (后端) | | 电话凭证创建/令牌、SIP连接设置 |
| WebRTC (客户端) | | 平台SDK(JS、iOS、Android、Flutter、React Native) —— 自定义SIP头、推送通知 |
| SIP / 中继 | | 外呼语音配置文件(支持 |
| 消息服务 | | 发送/接收SMS/MMS —— 包含可选参数和Webhook负载Schema |
| 号码 | | 号码管理、号码移植 |
| Verify | | 验证API(SMS、语音、闪呼) |
telnyx-pythontelnyx-javascripttelnyx-gotelnyx-javatelnyx-ruby