You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VoIP outbound call always 422: POST /api/agents/{agent_name}/voip/call path param is 'name' not 'agent_name' #1069
The VoIP Phase 1 (VOIP-001, #1056/#1066) outbound-call trigger is 100% unusable. Every call attempt returns HTTP 422 because the POST /api/agents/{agent_name}/voip/call handler declares its path parameter as name, which does not match the route-template placeholder {agent_name}. FastAPI binds the URL segment to agent_name, leaving name unpopulated → required-path-param-missing.
This blocks both trigger paths — the REST endpoint and the call_user MCP tool (which proxies to it).
Path-param name vs route-template placeholder mismatch. From the live OpenAPI:
Method
Route template
Declared path param
GET /api/agents/{agent_name}/voip
{agent_name}
agent_name ✅
PUT /api/agents/{agent_name}/voip
{agent_name}
agent_name ✅
POST /api/agents/{agent_name}/voip/call
{agent_name}
name ❌
The /voip/call handler's name path parameter (OpenAPI: {"name":"name","in":"path","required":true,"description":"Agent name from path"}) can never be filled, because the URL template exposes the segment as {agent_name}. No request payload can satisfy it.
Suggested fix
Rename the /voip/call handler's path parameter from name to agent_name (or Path(alias="agent_name")) so it matches the route template and the sibling GET/PUT /voip handlers. Add a regression test asserting the agent resolves from the path on POST .../voip/call.
Impact
VoIP outbound calling cannot be triggered by any means as shipped. Everything else in the path works (binding config, tunnel ingress, Twilio creds, Gemini bridge env); only this param mismatch blocks the feature.
Filed by the Trinity Ops Agent while enabling VoIP on the construct instance.
Fixed in PR #1071, squash-merged to dev (commit 0f9f964c). Swapped the /voip/call handler to AuthorizedAgentByName so the dependency's Path() param matches the {agent_name} route template — no auth boundary change (the two dependency functions are byte-identical except the param name). Mutation-verified regression test added (tests/unit/test_1069_voip_call_path_param.py, 4/4). Moves to In Dev; will close on the next dev → main release cut.
Verified fixed and deployed. Pulled fd6ba602 (fix(voip): correct /voip/call path param, #1071) to the construct instance. The live OpenAPI now reports the POST /api/agents/{agent_name}/voip/call path param as agent_name (was name), and a configured agent's binding is ready to place outbound calls. Thanks for the fast turnaround — closing.
Nice touch including the test_1069_voip_call_path_param.py regression test.
Activity
vybe commentedon Jun 4, 2026
/claim
github-actions commentedon Jun 4, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/1069-<short-slug>Fixes #1069docs(feature-flows): sync voip call-trigger auth alias for #1069
fix(voip): correct /voip/call path param so outbound calls don't 422 (#…
vybe commentedon Jun 4, 2026
Fixed in PR #1071, squash-merged to
dev(commit0f9f964c). Swapped the/voip/callhandler toAuthorizedAgentByNameso the dependency'sPath()param matches the{agent_name}route template — no auth boundary change (the two dependency functions are byte-identical except the param name). Mutation-verified regression test added (tests/unit/test_1069_voip_call_path_param.py, 4/4). Moves to In Dev; will close on the nextdev→mainrelease cut.vybe commentedon Jun 4, 2026
Verified fixed and deployed. Pulled
fd6ba602(fix(voip): correct /voip/call path param, #1071) to theconstructinstance. The live OpenAPI now reports thePOST /api/agents/{agent_name}/voip/callpath param asagent_name(wasname), and a configured agent's binding is ready to place outbound calls. Thanks for the fast turnaround — closing.Nice touch including the
test_1069_voip_call_path_param.pyregression test.test(voip): exempt #1069/#1073 VoIP unit tests from sys.modules lint
fix(voip): pass Media Streams ticket via <Parameter>, not query string (
test(brain-orb): close coverage gaps — owner gate, idempotency, hook …
feat(git): bind an agent to a GitHub repo you own — post-creation own…
feat(credentials): guided per-agent credential setup checklist (trini…
feat(systems): install a system from a manifest via the UI (trinity-e…