OutdialCall is largely unaffected by the task state machine refactor. It initiates outbound calls via cc.startOutdial() (a CC-level method, not a task method) and fetches ANI entries. The resulting task, once created, is handled by IncomingTask/TaskList/CallControl. No state machine integration needed here.
File: packages/contact-center/task/src/helper.ts
Hook: useOutdialCall(props: useOutdialCallProps)
- Fetches ANI entries via
cc.getOutdialAniEntries() - Validates phone number format
- Initiates outbound call via
cc.startOutdial(destination, origin) - Does NOT subscribe to any task events
- Resulting task surfaces via
TASK_INCOMING→ IncomingTask widget
No changes required. The cc.startOutdial() method is a CC-level API, not a task-level API. The state machine is activated when the resulting task is created.
- Outdial initiation works
- ANI entry fetching works
- Resulting task appears in task list via existing flow
- Phone number validation unchanged
Parent: 001-migration-overview.md