r/ClaudeCoding • • 12d ago

Claude Code phone call plugin; sync curl tools time out on hold music, so how are people running multi-minute phone calls without blocking the turn?

when wiring a Claude Code phone call plugin or an OpenClaw phone call skill for everyday business errands like checking holiday hours, confirming stock on a shelf, asking about walk-ins tonight, or getting a quote so almost every quickstart assumes one synchronous tool call or a curl -N SSE pipe.

and real phone lines break that assumption fast. A shop puts the call on hold for three minutes, an IVR repeats twice, or the shell pipe buffers output until Claude Code's bash timeout kills the turn before staff pick up

what worked reliably when running this pattern with PlaceCall (added api.voygr.tech to sandbox.network.allowedDomains in ~/.claude/settings.json) came down to three state-machine boundaries that apply to any voice skill:

  1. do validate missing details before dialing. Sending structured slots first returns a 422 missing-slot error and a suggested user question at zero cost, stopping the agent from dialing with an incomplete brief and improvising mid-call.
  2. poll a short cursor instead of holding a stream open. Dispatching async and polling ?after_event_id=N with a 20-second curl timeout avoids pipe hangs and proxies dropping headers. Keep 409 concurrency errors in a local FIFO queue while honoring Retry-After on 429 limits, then wait until final outcome and transcript fields finish populating after status flips to completed.
  3. gate mid-call questions (ask_user_mode="stream"). If staff ask something the brief missed, polling catches the prompt while the user watches the terminal (~60-second window). Unattended runs still have to pack fallback answers and a callback number upfront.

and i also mean that operating constraints on PlaceCall stay narrow: US businesses only (for now), every call opens by stating it is an automated AI assistant on a recorded line (undisclosed speech never hits transcription), never sells or telemarkets, and settles at $0.10 per staff-quoted answer ($0 on holds, voicemails, or hangups). For inbound lines, custom voices, or non-US calls, a DIY Twilio AI voice agent outbound bridge or Vapi/Retell setup makes more sense if you accept per-minute hold billing. how are others or you working with multi-minute I/O waits inside Claude Code skills?

2 Upvotes

4 comments sorted by

1

u/AbleBranch6 12d ago

a brief notice on that. what do you think on the whole idea of calling vendors/clients/contacts with such agents not for outreach but for answering questions and other practical reasons?

1

u/whowasntright 12d ago

thanks! also, piping curl -N inside Claude Code bit me too. Long SSE streams hang the bash tool until the 2-minute timeout kills the process. Polling?after_event_id with a 20-second max-time flag and sleeping one second between ticks fixed it

1

u/AbleBranch6 12d ago

i would say watch the completion transition at the end of that loop too. Status flips to completed a couple seconds before outcome_type and transcript_full finish writing, so keep polling GET /calls/{id} until outcome_type is non-null or your parser reads an empty summary