openclaw - 💡(How to fix) Fix [voice-call] Enable hold detection in all call modes, not just IVR mode [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#56178Fetched 2026-04-08 01:44:04
View on GitHub
Comments
1
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
closed ×1commented ×1locked ×1
RAW_BUFFERClick to expand / collapse

Hold detection is currently only enabled in IVR mode. If a human agent puts the bot on hold mid-conversation (in conversation mode, or after agent pickup in IVR mode), S2S stays active and hears hold music and may respond to it.

Fix: Call enableHoldDetection(streamSid) unconditionally in webhook.ts onConnect, removing the if (isIvrMode) guard.

For conversation mode: same pause/resume mechanism applies, but no pre-pause (S2S starts active and pauses only when hold music is detected).

For IVR mode post-agent-pickup: already enabled, continues working unchanged.

extent analysis

Fix Plan

To fix the issue, we need to modify the webhook.ts file to call enableHoldDetection(streamSid) unconditionally in the onConnect method. Here are the steps:

  • Open the webhook.ts file
  • Locate the onConnect method
  • Remove the if (isIvrMode) guard and call enableHoldDetection(streamSid) unconditionally

Example code:

onConnect(streamSid: string) {
  // Remove the if (isIvrMode) guard
  // if (isIvrMode) {
  enableHoldDetection(streamSid);
  // }
}

Verification

To verify that the fix worked, test the hold detection in both conversation mode and IVR mode post-agent-pickup. The S2S should pause when hold music is detected and resume when the hold music stops.

Extra Tips

  • Make sure to test the fix thoroughly to ensure that the hold detection works as expected in all modes.
  • Review the code changes to ensure that they do not introduce any regressions or side effects.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [voice-call] Enable hold detection in all call modes, not just IVR mode [1 comments, 1 participants]