-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(calling): update failover logic for cc #3805
feat(calling): update failover logic for cc #3805
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
6c9845b
to
769bcca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just 1 nitpick.
@@ -681,13 +689,17 @@ export class Registration implements IRegistration { | |||
private startKeepaliveTimer(url: string, interval: number) { | |||
let keepAliveRetryCount = 0; | |||
this.clearKeepaliveTimer(); | |||
const isCCFlow = this.serviceData.indicator === ServiceIndicator.CONTACT_CENTER; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cant we use the above isCCFlow variable here also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can define a class variable isCCFlow, because if callingClient is created with cc service indicator it will always remain a cc flow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Made isCCFlow
a private class level variable and updated the logic everywhere.
a56f740
to
459a351
Compare
COMPLETES #< SPARK-548141 >
This pull request addresses
Updates the failover logic for registration and keepalive as shown below
by making the following changes
Handles the failover as described above.
Registration Failover
Keepalive Failover
Note: For log files please check the SPARK-548141
Change Type
The following scenarios where tested
< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >
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.