Integrates Telnyx with CrestApps Orchard Core as a WebRTC telephony provider, Contact Center voice provider, SMS provider, and AI voice agent. Covers API key provisioning, Ed25519-signed webhooks, STUN/TURN, and recipe steps.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Generate accurate configuration, recipes, and troubleshooting guidance for the CrestApps Telnyx module. Telnyx exposes a SIP-over-WebSocket registrar and a server-side Call Control API, so the browser soft phone carries the call audio itself (WebRTC) and the Contact Center can bridge live calls to agents server-side (ServerSideAcd). The provider-neutral soft phone, hub, and contracts are covered by orchardcore-telephony.
CrestApps.OrchardCore.Telnyx in the web/startup project.CrestApps.OrchardCore.Telnyx; it enables CrestApps.OrchardCore.Telephony and CrestApps.OrchardCore.WebSockets (see orchardcore-websockets).ManageTelephonySettings.Not authorized (Telnyx code 10006).TelnyxOptions and TelephonyProviderOptions through IOptionsMonitor<T>; saving the settings refreshes them without a tenant restart.{ "steps": [...] }.| Feature | Feature ID | Depends on | Purpose |
|---|---|---|---|
| Telnyx | CrestApps.OrchardCore.Telnyx | Telephony, WebSockets | Telephony provider, browser WebRTC soft phone, signed call webhooks. Category Telephony |
| Telnyx SMS | CrestApps.OrchardCore.Telnyx.Sms | Telnyx, OrchardCore.Sms | Orchard Core SMS/MMS provider and signed messaging webhook. Category Communication |
| Telnyx AI Voice Agent | CrestApps.OrchardCore.Telnyx.AiVoice | Telnyx, CrestApps.OrchardCore.Omnichannel.Voice, CrestApps.OrchardCore.AI, CrestApps.OrchardCore.AI.Chat.Core, CrestApps.OrchardCore.Omnichannel.Managements | Phone omnichannel processor that runs an AI conversation over Telnyx. Category Contact Center |
The Contact Center voice adapter is not a feature: it activates when CrestApps.OrchardCore.ContactCenter.Voice is enabled, and the media-stream adapter when CrestApps.OrchardCore.ContactCenter.Voice.Media is enabled.
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.Telephony.SoftPhone",
"CrestApps.OrchardCore.Telnyx"
],
"disable": []
}
]
}
telnyx/connect). It idempotently finds or creates a Call Control application with webhook https://<tenant-host>/api/telnyx/webhook/call, a Credential SIP connection, and an outbound voice profile, discovers numbers, suggests a caller id, and assigns an unassigned number to the Call Control application. The resulting ids are stored and shown read-only; a plain Save never overwrites them.telnyx/connect/disconnect) deletes the created resources and clears the ids.TelnyxSettings (site settings) and the projected TelnyxOptions carry these members:
| Member | Default | Notes |
|---|---|---|
IsEnabled | false | Enabling with no default provider makes Telnyx the default |
ApiKey | Bearer token, stored encrypted | |
ConnectionId, SipConnectionId, OutboundVoiceProfileId | Written by Connect | |
DefaultOutboundCallerId | E.164, used when a call carries no caller id of its own | |
WebhookPublicKey | Ed25519 public key, stored encrypted | |
CredentialLifetimeMinutes | 180 | Browser SIP credential lifetime, at least 30 (a shorter value is refused on save and raised to 30 when stored, imported or bound, TelnyxCredentialLifetime). The soft phone renews in the last 10 minutes, never while it holds a call (a parked dialer leg included), and as soon as that call ends |
EchoTestDestination | Audio test destination for diagnostics and the health canary | |
OrphanedCallHandling | Report | Report or EndCall for a connected call with no local record |
AnsweringMachineDetection | Premium | Premium, Standard, or Disabled |
TtsVoice, TtsLanguage | female, en-US | Voice for prompts, for example AWS.Polly.Joanna-Neural |
NoiseSuppressionEngine | Off | Krisp, DeepFilterNet, Denoiser, or AiCoustics (ai-coustics) |
NoiseSuppressionAgentVoice, NoiseSuppressionCallerVoice | true, false | Which voices Telnyx cleans; each is billed |
NoiseSuppressionStrength | Balanced | Light, Balanced, Strong |
SipWebSocketUrl, SipDomain | wss://sip.telnyx.com:7443, sip.telnyx.com | SIP-over-WSS is on port 7443, not 443 |
WebRtcCodecs, WebRtcRegion | SDK default, Automatic | Preferred codecs and signaling region |
IceUrls, TurnUsername, TurnCredential, IceTransportPolicy | SDK default, all | See STUN and TURN below |
ApiBaseUrl | https://api.telnyx.com/v2/ | Override for testing |
Voice settings export through the Telnyx Settings step and import with TelnyxSettings; SMS settings use Telnyx SMS Settings and TelnyxSmsSettings. API keys, webhook public keys, and the TURN credential are never exported; supply them in clear text in a hand-written recipe and they are encrypted on import. Connection ids belong to one Telnyx account, so run Connect Telnyx again in an environment that uses another account.
{
"steps": [
{
"name": "TelnyxSettings",
"Settings": {
"IsEnabled": true,
"ApiKey": "supply-in-clear-text-or-omit",
"DefaultOutboundCallerId": "+15551230000",
"CredentialLifetimeMinutes": 180,
"OrphanedCallHandling": "Report",
"AnsweringMachineDetection": "Premium",
"NoiseSuppressionEngine": "Krisp",
"NoiseSuppressionAgentVoice": true,
"NoiseSuppressionCallerVoice": false,
"TtsVoice": "AWS.Polly.Joanna-Neural",
"TtsLanguage": "en-US"
}
},
{
"name": "TelnyxSmsSettings",
"Settings": {
"IsEnabled": true,
"MessagingProfileId": "40017a1b-0000-0000-0000-000000000000"
}
}
]
}
An unknown noise suppression engine imports as off, the region is normalized, and options refresh without a restart. Members the step omits keep their stored values.
Settings > Communication > Telnyx Numbers (telnyx/numbers, ManageTelephonySettings, part of the Telnyx feature) lists the account's numbers, searches and buys one, sets its caller name, and releases it. Buying and releasing numbers changes the Telnyx account and its billing, so confirm before acting. With the AI Chat WebAPI feature (CrestApps.OrchardCore.AI.Chat.Api), the same operations are offered at api/ai/v1/carrier-numbers (GET available, POST orders, GET, PUT {numberId}/caller-name, DELETE {numberId}) to AI API keys with the numbers scope.
| Endpoint | Method | Feature | Events |
|---|---|---|---|
/api/telnyx/webhook/call | POST | Telnyx | Call Control events, committed to the durable provider webhook inbox and normalized into ProviderVoiceEvent |
/api/telnyx/webhook/sms | POST | Telnyx SMS | message.received onto the Omnichannel SmsReceived bus (committed to the provider webhook inbox first when an SMS feature is on), message.finalized delivery receipts |
/api/telnyx/media/stream | WebSocket GET | Contact Center Voice Media adapter | Bidirectional G.711 mu-law (PCMU) media stream |
Telnyx signs {timestamp}|{raw_body} with Ed25519 and sends telnyx-signature-ed25519 and telnyx-timestamp. The call endpoint rejects unsigned, stale, or bodies over 1 MiB, and answers service-unavailable when a stored public key cannot be decrypted instead of accepting unsigned traffic. Webhook and media endpoints must be reachable at the tenant's public base URL over HTTPS and WSS.
TelephonyAudioCapabilities.Browser with the telnyx-webrtc adapter (the vendored @telnyx/webrtc SDK). The server mints a short-lived telephony credential on the SIP connection per session; credentials are capped per user, expire on their own, and are deleted at Telnyx on sign-out.Dial, Hangup, Hold, Resume, Mute, Transfer, AttendedTransfer, Merge, SendDigits, Voicemail, ReceiveCalls, ExtensionDial, ExtensionConference, and BridgedDial.TelephonyConstants.ErrorCodes.BridgeUnavailable without creating a leg and only then does the browser dial directly.command_id for idempotency.RequestMetadata.ConferenceLeave and ConferenceEnd.The @telnyx/webrtc SDK ships its own STUN and TURN relays.
turn: or turns: URL (with TURN username and TURN credential when required).relay to force TURN.Telnyx does not mint ephemeral coturn credentials the way the Asterisk provider does.
Choose an engine, which voices to clean, and a strength. Suppression starts on the agent's leg when the agent connects and lasts through hold, transfers, and conferences; a change applies to the next call. It is a billed Telnyx beta, and a refused command leaves the call running without it. The application log records lines such as Telnyx noise suppression Krisp started on Agent leg ....
With Contact Center Voice enabled, TelnyxContactCenterVoiceProvider advertises ServerSideAcd and supports dialer dialing, agent connect (originate sip:{agent}@sip.telnyx.com, auto-answered, then actions/bridge), blind and consult transfers, supervisor listen, whisper, barge and takeover through Telnyx conferences, and recording. It also registers the inbound router, IVR and queue-treatment providers, the own-number source, and TelnyxWebhookInboxHandler (an IProviderWebhookInboxHandler from the Webhooks module). It answers IAgentPhoneStatusProvider from its credentials (a live one registered from a window whose connection is still open), so the agent bar can warn an agent with no phone open, and when an offer's pre-dialed leg is refused as unavailable (SIP 480 or 404) with no other credential to ring, TelnyxOutboundBridgeOrchestrator reports it so the offer is handed on at once. Routing, entry points, queues, supervision, and recording governance are described in orchardcore-contact-center.
Recording runs record_start, record_pause, record_resume, and record_stop under Contact Center governance. On call.recording.saved a durable ingest job streams the recording into the encrypted IRecordingMediaStore and then deletes the Telnyx-hosted copy; failures retry with backoff and dead-letter. Erased interactions are never re-ingested. Storage location is covered by orchardcore-telephony.
CrestApps.OrchardCore.Telnyx.AiVoice registers the Phone-channel VoiceOmnichannelProcessor. An automated Phone activity dials the contact (POST /v2/calls, caller id from the activity's channel endpoint when set), speaks a greeting, and runs a speak-and-listen loop with Telnyx text-to-speech and real-time transcription driven by an AI chat profile, then settles the activity with a summary and a disposition chosen from the dispositions the subject's actions are wired to. A call where the customer never spoke takes the No answer outcome, and a call handed to a live agent is concluded by that agent. Inbound calls an entry point routes to an AI voice agent are answered by the same conversation.
The AI profile, update permissions and reply delay come from the activity load, or from an inbound subject. The speech-to-text and text-to-speech deployments and the voice are settings of an inbound automated Phone subject only, and Telnyx supplies the speech recognition itself on this path. The voice resolves from the activity or subject, then the AI persona's voice, then the Telnyx default voice (for a realtime conversation, the profile's Voice comes before the persona's). With Contact Center Voice Media the audio runs over the media-streaming WebSocket; without it each turn is spoken and transcribed with Telnyx commands. Review AI conversation and the profile's conversation settings need the AI Chat feature. See orchardcore-omnichannel-voice, orchardcore-omnichannel-management and orchardcore-ai-chat.
Two providers, like Orchard Core's Twilio pattern, both read through IOptionsMonitor<TelnyxSmsOptions>:
OrchardCore_Sms_Telnyx with ApiKey, MessagingProfileId, WebhookPublicKey, and ApiBaseUrl. The provider is enabled whenever ApiKey has a value./Admin/Settings/sms). Values entered there win while that provider is enabled.{
"OrchardCore": {
"OrchardCore_Sms_Telnyx": {
"ApiKey": "<telnyx-api-key>",
"MessagingProfileId": "<messaging-profile-id>",
"WebhookPublicKey": "<base64-ed25519-public-key>"
}
}
}
OrchardCore__OrchardCore_Sms_Telnyx__ApiKey=<telnyx-api-key>
The source reads OrchardCore_Sms_Telnyx exactly; it does not use the Orchard Core 4.0 grouped Sms:* naming. In a tenant's own App_Data/Sites/{tenant}/appsettings.json, omit the OrchardCore wrapper. Set Telnyx as the default SMS provider on the SMS settings screen, and point the messaging profile webhook at https://<your-site>/api/telnyx/webhook/sms. See orchardcore-sms and orchardcore-omnichannel-sms.
TelnyxTelemetry publishes the CrestApps.OrchardCore.Telnyx meter (no spans of its own; matched by CrestApps.OrchardCore.*, see orchardcore-opentelemetry):
| Instrument | Tags | Measures |
|---|---|---|
crestapps.telnyx.webhooks | kind (call, sms), type, result (accepted, duplicate, rejected_signature, rejected_stale, rejected_rate, rejected_size, disabled, parse_error, store_failed, error) | Webhook deliveries received |
crestapps.telnyx.webhook.lag | kind, type | The event's own time to the delivery arriving |
crestapps.telnyx.voicemail.record_start.latency | outcome | Greeting ended to record_start accepted |
crestapps.telnyx.media.stream.failures, .reconnects, .reconnect.duration | result | streaming.failed reports and media streams that came back |
Each webhook puts crestapps.telnyx.webhook.type and crestapps.telnyx.webhook.result on the ASP.NET Core request span; queued call events run under the webhook inbox's crestapps.webhook.inbox.dispatch span. REST retries count on crestapps.retry.attempts (area = telnyx, reason = status_429, status_408, status_5xx, network, timeout). Log event ids 19000-19199 (for example 19011 record_start refused). Telephony-wide commands and recordings are on the CrestApps.OrchardCore.Telephony meter, Telnyx SMS on crestapps.messaging.*, and AI calls on crestapps.voice.*.
TelephonySettings.DefaultProviderName to Telnyx.CrestApps.OrchardCore.Telephony.Admin from recipes; the Telnyx tab is registered by the Telnyx feature.TelnyxOptions through IOptionsMonitor<TelnyxOptions>.CurrentValue; IOptions<TelnyxOptions> keeps the first value and never sees a settings change.TelnyxIvrProvider and TelnyxQueueTreatmentProvider take IVoiceMediaProvisioningService instead of IVoiceMediaItemManager; resolve clips with IVoiceMediaProvisioningService.ResolveAsync rather than VoiceMediaItem.MediaReference.| Symptom | Check |
|---|---|
Connect fails with Not authorized (10006) | Create the API key from an Owner or Admin member, or grant Voice and Connections permissions |
| Inbound calls never arrive | Read crestapps.telnyx.webhooks by result (rejected_signature means a wrong public key); webhook public key missing or wrong, number not assigned to the Call Control application, or /api/telnyx/webhook/call not publicly reachable over HTTPS |
Soft phone socket closes with 1006 | SIP WebSocket URL must use port 7443 |
| One-way audio | Leave ICE URLs empty or include a TURN URL; a STUN-only list is ignored |
| Calls flagged as spam | Use a Telnyx-owned Default outbound caller id |
| Settings change not picked up by custom code | Switch from IOptions<TelnyxOptions> to IOptionsMonitor<TelnyxOptions> |
| SMS not received | Check the messaging profile webhook URL, WebhookPublicKey, and that the Telnyx SMS provider is enabled |
| Dialer leg rung again with SIP 480 after a credential renewal | Keep Credential lifetime (minutes) at 30 or more; the soft phone defers renewal while it holds any leg |
What SKILL.md sets; muted values are Claude Code's defaults
/crestapps-orchardcore:orchardcore-telephony-telnyxfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job