Skip to content

Conversation

@rsarika
Copy link
Contributor

@rsarika rsarika commented Dec 20, 2025

COMPLETES #CAI-7496

This pull request addresses

We are getting relogin failures when we do the cc sdk relogin.

await this.webCallingService.registerWebCallingLine(); fails for relogin.

by making the following changes

Did the deregister and register when we fe this issue.
< 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

< 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

I certified that

  • I have read and followed contributing guidelines
  • I discussed changes with code owners prior to submitting this pull request
  • I have not skipped any automated checks
  • All existing and new tests passed
  • I have updated the documentation accordingly

Make sure to have followed the contributing guidelines before submitting.

@rsarika rsarika requested a review from a team as a code owner December 20, 2025 11:36
@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-4626.d3m3l2kee0btzx.amplifyapp.com

@rsarika rsarika added the validated If the pull request is validated for automation. label Dec 22, 2025
Copy link
Contributor

@rarajes2 rarajes2 left a comment

Choose a reason for hiding this comment

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

  1. Let's add a vidcast
  2. Add/Update the UTs

* @returns {Promise<void>}
* @private
*/
private async handleDeviceType(deviceType: LoginOption, dn: string): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is not in the scope of this PR but let's discuss this method.

It's doing two different things but the name is bit misleading :

  1. Registering the device in case of BROWSER device type
  2. For other cases, it's simply setting the agent config which will be further used for the station login

method: METHODS.SILENT_RELOGIN,
});
await this.stationLogout({
logoutReason: 'User requested agent device change',
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add the error message in the logout reason so, we can have actual reason ?

module: CC_FILE,
method: METHODS.SILENT_RELOGIN,
});
if (error.message.contains('Error registering web calling line')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we compare the device type and error code instead of error message ? Message can be added as comment for developer's readability

Copy link
Contributor

@Kesari3008 Kesari3008 left a comment

Choose a reason for hiding this comment

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

Did we troubleshoot this issue in more details as to why Calling SDK is not getting the deviceURI and userID information after reload ?
I wouldn't suggest addding fix to deregister and register directly without the RCA

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

Labels

validated If the pull request is validated for automation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants