Skip to content

fix(spillover-of-outdial): fix-pending-oudial-items - #563

Merged
akulakum merged 4 commits into
webex:nextfrom
akulakum:OUTDIAL_SPILLOVER
Dec 1, 2025
Merged

fix(spillover-of-outdial): fix-pending-oudial-items#563
akulakum merged 4 commits into
webex:nextfrom
akulakum:OUTDIAL_SPILLOVER

Conversation

@akulakum

@akulakum akulakum commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

COMPLETES #https://jira-eng-sjc12.cisco.com/jira/browse/CAI-7323

Vidcast Link: https://app.vidcast.io/share/e2820333-3021-442e-8dee-8b4fc78215e3

When to Disable the Outdial Call Button: Telephony vs. Digital Tasks
Vidcast Link: https://app.vidcast.io/share/8b1ac7d1-73a5-4910-81cc-d255ba423f13

This pull request addresses

This pull request addresses the following enhancements and fixes:

  • Disabled the Call button when an active task is in progress, provided the task is of telephony type. If the task list contains only digital tasks such as email or chat, the agent should still be allowed to make outdial calls. However, if any task in the task list is telephony-related, the outdial call button should be disabled.
  • Added an option to unselect Outdial ANI.
  • Implemented Auto-Answer functionality for desktop calls

by making the following changes

< DESCRIBE YOUR CHANGES >

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
    < ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >

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 - Please Specify
  • 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.

@akulakum akulakum added the validated Indicates that the PR is ready for actions label Nov 26, 2025
@aws-amplify-us-east-2

Copy link
Copy Markdown

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

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

const disableAccept = isTelephony && !isBrowser;
const disableAccept = (isTelephony && !isBrowser) || isAutoAnswering;

const disableDecline = (isTelephony && !isBrowser) || (isAutoAnswering && !isDeclineButtonEnabled);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did u test with digital task? I feel it will show. just cross check

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have tested the digital task scenarios. When we receive a digital task, only the Accept button is displayed. For digital tasks, we do not show the Decline button, so the behavior is correct.

const result = useOutdialCall({cc, logger});
const props = {
logger,
currentTask,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced currentTask check with isTelephonyTaskActive boolean that specifically checks for telephony tasks in the task list. This allows agents to make outdial calls while handling digital tasks (email/chat), as only active telephony tasks should prevent outbound calling.

@akulakum
akulakum requested a review from rsarika December 1, 2025 04:36
import {withMetrics} from '@webex/cc-ui-logging';
import {Input, Button, Option, Select} from '@momentum-design/components/dist/react';
import {Input, Button, Icon} from '@momentum-design/components/dist/react';
import {SelectNext} from '@momentum-ui/react-collaboration';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://jira-eng-sjc12.cisco.com/jira/browse/CAI-6990
Lets add this as a todo. Please mention the details about this in the above ticket as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -1,6 +1,7 @@
import {MEDIA_CHANNEL, TaskListItemData} from '../task.types';
import {ILogger, ITask} from '@webex/cc-store';
import {isIncomingTask} from '@webex/cc-store';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import {isIncomingTask} from '@webex/cc-store';
import {isIncomingTask},store from '@webex/cc-store';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

@akulakum
akulakum merged commit d1240d7 into webex:next Dec 1, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

validated Indicates that the PR is ready for actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants