Repository navigation
feat(telnyx): accept TeXML recordingStatusCallback form posts - #8
Merged
Merged
Conversation
TeXML Dial recordings arrive form-encoded with RecordingSid, CallSessionId, From, To, Direction, RecordingChannels and a pre-signed RecordingUrl. A new /webhook/texml-recording route reshapes that into the Call Control call.recording.saved payload and reuses the existing processing path, which is now a shared coroutine. Party identity is present on this path, so no recordings-API lookup is needed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The lint job has been red on main since 2026-09-15: webhook.py and the step-0 spike script both landed unformatted, so black --check has failed on every run since. Formats those two plus this branch's new test file. Formatting only, no behaviour change. 485 tests pass, ruff already clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Recovers a commit from 2026-09-13 that was written, tested and then left on a local branch: it never reached a PR and main has no equivalent. Cherry-picked onto current main, where it applies cleanly.
TeXML Dial recordings arrive form-encoded (
RecordingSid,CallSessionId,From,To,Direction,RecordingChannels, and a pre-signedRecordingUrl), which the existing Call Control JSON route cannot parse. A new/webhook/texml-recordingroute reshapes that payload into thecall.recording.savedshape and reuses the existing processing path, now factored into a shared coroutine. Party identity is already on this payload, so this path skips the recordings-API lookup the Call Control path needs.This is the capture route the TeXML side of the trunk actually uses, so without it those recordings never become vCons.
Test plan
tests/adapters/telnyx/test_texml_recording.py(78 lines) over the form-post reshaping and the shared processing path🤖 Generated with Claude Code