Skip to content

fix(voice-call): reject unsupported pre-connect DTMF - #155491

Open
mfurkanakinci wants to merge 1 commit into
openclaw:mainfrom
mfurkanakinci:fix/voice-call-preconnect-dtmf
Open

mfurkanakinci wants to merge 1 commit into
openclaw:mainfrom
mfurkanakinci:fix/voice-call-preconnect-dtmf

Conversation

@mfurkanakinci

Copy link
Copy Markdown
Contributor

Closes #152577

What Problem This Solves

Plivo and Telnyx calls accept dtmfSequence and report success even though the requested extension or IVR digits are never sent.

User Impact

Unsupported pre-connect digits now return a clear error before creating or dialing a call. Twilio conversation calls retain pre-connect DTMF support, and ordinary calls remain available.

Why This Change Was Made

Validate the provider in the existing call manager before admission or persistence. Only Twilio consumes the generated pre-connect instructions; mid-call DTMF support is a separate capability. Tool descriptions and interface documentation now state the carrier and mode restriction.

Evidence

  • The original real CallManager/SQLite regression returned success: true for both unsupported providers; the Twilio control passed.
  • 108 focused tests passed across manager lifecycle, outbound operations, the Twilio provider, and registered plugin tools/RPCs (36.87 seconds wall).
  • New cases verify no provider call, active record, or persisted history for rejected requests; a subsequent ordinary call succeeds; Twilio still receives the generated digits.
  • Changed lifecycle file: 8 tests, 5.30 seconds in test bodies, 18.48 seconds for its test phase. The three added cases took 1.91 seconds and exercise real SQLite state. CI timing remains pending.
  • Focused lint, formatting, MDX validation, git diff --check, and independent P2 review passed.

Carrier operations were simulated through the existing provider fixture; no live calls were placed. Full build and broad typechecking were not run.

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: voice-call Channel integration: voice-call size: S labels Sep 22, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

The voice-call plugin rejects unsupported pre-connect keypad digits before saving or dialing a call, adds regression coverage, and documents the Twilio conversation-mode restriction.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused patch and meaningful regressions provide useful signal, while real after-fix proof remains a merge gate.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Merge readiness

⛔ Blocked before merge - 4 items remain

This remains a useful repair for a source-confirmed defect on current main. No blocking code bug was found, but after-fix real behavior proof and the compatibility choice remain unresolved.

Priority: P2
Reviewed head: 33f4325ebe22f2a146e018d46372faa27c34c339
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should unsupported pre-connect digits prevent Plivo and Telnyx calls by default, or should existing dialing remain available with an explicit warning and opt-in rejection?
  • Recommendation: Preserve dialing with explicit warnings: Keep existing dialing available, clearly report that digits were not sent, and make strict rejection an explicit operator choice.
  • Why: The defect establishes that silently reporting applied digits is wrong, but it does not settle whether existing requests should stop dialing; no recorded maintainer acceptance covers that compatibility choice.

Before merge

  • Add real behavior proof - The changed outbound manager is reached through voice_call and voicecall.start, but after-fix evidence uses FakeProvider with real SQLite rather than a real configured setup. The linked production-client trace demonstrates only the pre-fix defect. Add redacted after-fix output showing rejection and preserved ordinary/Twilio behavior, including an upgraded setup; terminal output, logs, screenshots, or recordings that show the behavior count. Redact private numbers, addresses, endpoints, and keys. Updating the PR body should trigger re-review; otherwise ask a maintainer to comment @clawsweeper re-review. No stored-data contract changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk - Existing Plivo and Telnyx requests containing dtmfSequence will stop dialing after upgrade; no recorded maintainer decision or upgraded-setup proof settles this intentional compatibility change.
  • Complete next step - Resolve the default rejection-versus-warning compatibility choice and add redacted after-fix real-setup evidence, including fresh and upgraded behavior.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

The voice-call plugin accepts call requests from agent tools and Gateway methods. Its call manager validates requests, saves call records, and dispatches calls to the configured telephony provider.

flowchart TD
  A[Agent tool or Gateway request] --> B[Call manager validation]
  B --> C{Pre-connect digits supported?}
  C -->|No| D[Return error before dialing]
  C -->|Yes or no digits| E[Save call record]
  E --> F[Telephony provider]
  F --> G[Call initiation result]
Loading

Technical review

Best possible solution:

Make ignored digits visible while preserving ordinary calls; prefer an explicit strict-rejection mode unless the voice-call owner accepts unconditional rejection.

Do we have a high-confidence way to reproduce the issue?

Yes, source provides a high-confidence path: initiate a Plivo or Telnyx conversation call with dtmfSequence and observe that current main forwards instructions those providers never consume. This review did not execute that path.

Is this the best way to solve the issue?

The manager guard is a narrow repair for misleading success, but unconditional refusal needs a compatibility decision; visible warnings with opt-in strict rejection preserve existing dialing more safely.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3c904ae54750.

Merge-risk options

Maintainer options:

  1. Preserve existing dialing explicitly (recommended)
    Replace silent success with a visible unsupported-digits warning and reserve refusal for an approved opt-in strict mode.
  2. Accept refusal as the repaired contract
    Have the voice-call owner accept the dialing change and add fresh and upgraded real-setup evidence for rejection and preserved supported calls.

Security

None.

Evidence

What I checked:

PR surface

Source +11, Tests +53, Docs 0. Total +64 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 14 3 +11
Tests 1 54 1 +53
Docs 1 3 3 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 71 7 +64

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #152577
Summary: This branch is the explicit candidate repair for the unsupported pre-connect DTMF report; restored-call ownership is separate work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs provider-specific silent omission of requested IVR digits with a limited voice-call blast radius.
  • merge-risk: 🚨 compatibility: Requests that previously dialed on Plivo or Telnyx will instead fail before dialing when they contain pre-connect digits.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add redacted after-fix real-setup evidence through the registered call entry point.
  • Record the selected compatibility behavior and verify fresh and upgraded setups.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-22T05:45:11.841Z sha 33f4325 :: needs real behavior proof before merge. :: none
  • reviewed September 26, 2026, 9:45 PM ET / September 27, 2026, 01:45 UTC (Revision 2) sha unknown :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-27T18:08:09.385Z sha 33f4325 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-07T04:15:23.511Z sha 33f4325 :: needs real behavior proof before merge. :: none

Reviewed October 7, 2026, 12:51 AM ET / 04:51 UTC (Revision 5).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: voice-call Channel integration: voice-call docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

voice-call: pre-connect dtmfSequence is silently discarded on plivo and telnyx while initiate_call reports success

1 participant