Skip to content

fix(task): use dialed number (dn) instead of ANI for outdial task titles#633

Draft
bhabalan wants to merge 1 commit intowebex:nextfrom
bhabalan:CAI-7359
Draft

fix(task): use dialed number (dn) instead of ANI for outdial task titles#633
bhabalan wants to merge 1 commit intowebex:nextfrom
bhabalan:CAI-7359

Conversation

@bhabalan
Copy link
Contributor

@bhabalan bhabalan commented Feb 27, 2026

COMPLETES

https://jira-eng-sjc12.cisco.com/jira/browse/CAI-7359

This pull request addresses

When making an outdial call via dialpad, the IncomingTask, TaskList, and active task widgets display the entrypoint/ANI number instead of the dialed destination number. CallControlCAD was already fixed in #629 (ce826f2) but IncomingTask and TaskList were missed.

by making the following changes

Extract dn (dialed number) from callAssociatedDetails and use dn || ani for the telephony title in IncomingTask and TaskList, matching the pattern already used in CallControlCAD.

  • incoming-task.utils.tsx — extract dn, use dn || ani for title, add dn to IncomingTaskData interface
  • task-list.utils.ts — extract dn, use dn || ani for title
  • task.types.ts — add dn to TaskListItemData interface
  • Added 4 unit tests covering dn priority and ani fallback

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios were tested

  • The testing is done with the amplify link
  • All 631 unit tests passing (including 4 new tests)
  • Manual test: make an outdial call via dialpad, verify IncomingTask shows the dialed number
  • Manual test: verify TaskList shows the dialed number for outdial calls
  • Manual test: verify inbound calls still show the caller's number (ani fallback)

The GAI Coding Policy And Copyright Annotation Best Practices

  • GAI was not used (or, no additional notation is required)
  • Code was generated entirely by GAI
  • GAI was used to create a draft that was subsequently customized or modified
  • Coder created a draft manually that was non-substantively modified by GAI (e.g., refactoring was performed by GAI on manually written code)
  • Tool used for AI assistance (GitHub Copilot / Other - specify)
    • Github Copilot
    • Other - Claude Code
  • This PR is related to
    • Feature
    • Defect fix
    • Tech Debt
    • Automation

Checklist before merging

  • I have not skipped any automated checks
  • All existing and new tests passed
  • I have updated the testing document
  • I have tested the functionality with amplify link

Make sure to have followed the contributing guidelines before submitting.

IncomingTask and TaskList widgets displayed the entrypoint/ANI number
instead of the dialed destination number for outdial calls. This aligns
them with CallControlCAD which was already fixed in ce826f2.

CAI-7359
@aws-amplify-us-east-2
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-633.d1b38q61t1z947.amplifyapp.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant