Twilio Voice Outbound Calls for Codex: Test a Mock Request
Review the parameters and status events for a Twilio outbound call by exercising a local fake adapter before connecting any telephony credentials.
中文Setup for Codex
Codex with a local mock adapter and placeholder identifiers. The fixture is fully offline and does not place calls or connect to a Twilio account.
- Use the pinned Twilio checkout linked below. Copy `skills/twilio/twilio-voice-outbound-calls/` to the scratch project's `.agents/skills/twilio-voice-outbound-calls/` and load the skill from a fresh Codex session.
- Use the guide to map sender, recipient, TwiML choice and lifecycle events. Keep the example adapter pointed at an in-memory fake.
Example task
In a mock adapter, capture one request with placeholders from-demo and to-demo and inline TwiML that says 'Sample'. Have the fake emit a queued event followed by a completed event. Validate the captured fields and event sequence.Expected result
The fake captures the sender, recipient and inline TwiML exactly once. The local log records queued before completed, and it labels those events as synthetic.
Upstream documentation
Original SKILL.md on GitHub · MIT license · Source reviewed
Frequently asked question
Can I verify the shape of a Twilio Voice request without dialing?
A local mock can verify required fields and expected event-handling branches. Phone-network delivery and live status behavior require a separate integration test.