Repository navigation
fix(voice-call): Twilio Say fallback greeting cut off and 5s hangup - #158357
cestercian wants to merge 3 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThe Voice Call plugin combines Twilio fallback greetings with speech collection, extends the listening timeout, adds a silence redirect, and gives notification playback a pause-and-hangup tail. Review scores
Merge readiness⛔ Blocked before merge - 4 items remain The fix remains useful: current main and the latest release retain the reported fallback behavior. The prior empty-gather finding remains unresolved, and the contributor explicitly confirms that real Twilio after-fix proof is still missing. Priority: P1 Before merge
Findings
Agent review detailsHow this fits togetherThe Voice Call plugin translates call-manager playback and listening requests into Twilio call instructions. Twilio executes those instructions and sends speech or call-status callbacks to the plugin webhook. flowchart TD
A[Call manager] --> B[Twilio provider]
B --> C[Greeting and speech gather]
C --> D{Caller speaks?}
D -->|Yes| E[Speech webhook]
D -->|Timeout| F[Silence redirect]
F --> G[Webhook response]
E --> A
Technical reviewBest possible solution: Keep greeting playback and listening under the Twilio provider, with silence callbacks renewing speech collection for an active call while preserving notification and streaming behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: let the new non-streaming gather expire, then trace its redirect through the provider webhook to the pause-only response. No call or tests were executed during this read-only review. Is this the best way to solve the issue? Partly: combining greeting and gather avoids the competing update, but the silence callback must renew listening for the proposed recovery to work. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fd8397a6bb6e. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +104, Tests +119. Total +223 across 7 files. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed October 3, 2026, 11:35 AM ET / 15:35 UTC (Revision 4). |
…ing alive Combine initial Twilio Say playback with speech gather in one live TwiML update, and add gather timeout plus redirect so silent callers are not disconnected after five seconds.
Say-only TwiML ended those calls as soon as playback finished. Notify pauses for the configured hangup delay and then hangs up. Direct speech gathers so the call stays up. Conversation greetings still use one gather-and-redirect update.
58a468c to
915c78c
Compare
|
yeah, playTts no longer ends the doc after Say unless listenAfterPlayback is set. notify gets Pause then Hangup, direct speech keeps a Gather so the call stays up. rebased onto main. unit tests green. still need a redacted real twilio after-speak trace from someone with creds before this is fully proven. @clawsweeper re-review when you can |
|
🦞👀 Re-review progress:
|
|
pushed a small fix for the red lint and dependency checks, it was just a formatting nit in the new test and an export that only the test used. no behavior change |
… silence (#193137) Preserve the Twilio Say fallback greeting by sending playback and listening in one conversation update. Renew a longer Gather through signed webhook silence redirects, retaining explicit turn correlation. Keep the direct and notify paths unchanged. Add regression coverage through the actual signed voice-call webhook handler using synthetic carrier transport. Allocate 310 net test lines for that boundary regression and independent TwiML contracts. Real Twilio call playback and timeout timing remain unverified. Supersedes #158357, thanks @cestercian Fixes #158262 Co-authored-by: Cestercian <[email protected]>
|
Thanks @cestercian! This landed via #193137 (486a0bd), which keeps your Say-fallback greeting and silence-redirect approach and adds signed-webhook regression coverage. Timing on a real Twilio call is still unverified. |
… silence (#193137) Preserve the Twilio Say fallback greeting by sending playback and listening in one conversation update. Renew a longer Gather through signed webhook silence redirects, retaining explicit turn correlation. Keep the direct and notify paths unchanged. Add regression coverage through the actual signed voice-call webhook handler using synthetic carrier transport. Allocate 310 net test lines for that boundary regression and independent TwiML contracts. Real Twilio call playback and timeout timing remain unverified. Supersedes #158357, thanks @cestercian Fixes #158262 Co-authored-by: Cestercian <[email protected]> Backport-source: 486a0bd Backport-scope: Carry turnToken; let Say own following Gather; signed listen callbacks rearm without fake answered events. Preserve realtime, non-Twilio, notify-only and webhook checks. Adapted production backport for release/2026.11.2. Upstream validation descriptions refer to source history; candidate regression coverage and remote qualification are tracked separately. Co-authored-by: RomneyDa <[email protected]>
… silence (openclaw#193137) Preserve the Twilio Say fallback greeting by sending playback and listening in one conversation update. Renew a longer Gather through signed webhook silence redirects, retaining explicit turn correlation. Keep the direct and notify paths unchanged. Add regression coverage through the actual signed voice-call webhook handler using synthetic carrier transport. Allocate 310 net test lines for that boundary regression and independent TwiML contracts. Real Twilio call playback and timeout timing remain unverified. Supersedes openclaw#158357, thanks @cestercian Fixes openclaw#158262 Co-authored-by: Cestercian <[email protected]>
What Problem This Solves
Outbound/inbound conversation calls on Twilio without media streams did not play the initial greeting reliably, and the call dropped shortly after each reply when the caller stayed silent.
User Impact
Callers hear the greeting and replies on the TwiML Say path, and the call stays connected while waiting for speech instead of hanging up after about five seconds of silence.
Changes
speakInitialMessagenow callsspeak(..., { listenAfterPlayback: true })and skips the extrastartListening()live TwiML update that was replacing the in-flight<Say>.buildTwilioSpeechGatherVerbs()addstimeout="120"and a post-<Gather><Redirect>to the webhook.playTtsonly includes<Gather>whenlistenAfterPlaybackis set.Fixes #158262
Evidence
Focused voice-call unit tests cover the three TwiML tails: the conversation gather plus redirect, the notify pause and hangup, and the direct-speech gather. After-fix proof on a real Twilio call still needs a human redacted trace (greeting, a silent pause, and the next reply, with numbers, keys, and endpoints removed). This pull request does not include a live call log.