You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add recoveredCallId to call object for recovery correlation (#553)
* feat: add recoveredCallId to call object for recovery correlation (ENGDESK-50308)
When a call is recovered after a network reconnection (reattach), the SDK
creates a new call object. Customers tracking calls by ID see the old call
destroyed and a new call created, causing duplicate UI elements (e.g. dialers).
This adds a 'recoveredCallId' field to the call object, set automatically
during the reattach/recovery flow. Customers can use it to correlate the
new call with the ended call and clean up stale UI.
Changes:
- Add recoveredCallId to IWebRTCCall and IVertoCallOptions interfaces
- Add recoveredCallId public property to BaseCall
- Set recoveredCallId in VertoHandler Attach recovery flow
- Add TelnyxRTC docs with usage example
- Add 3 VertoHandler tests covering recovery, fresh attach, and ID change
* feat: add recoveredCallId to call object for recovery correlation (ENGDESK-50308)
When a call is recovered after a network reconnection (reattach), the SDK
creates a new call object. Customers tracking calls by ID see the old call
destroyed and a new call created, causing duplicate UI elements (e.g. dialers).
This adds a 'recoveredCallId' field to the call object, set automatically
during the reattach/recovery flow. Customers can use it to correlate the
new call with the ended call and clean up stale UI.
The isRecovering flag is now derived from recoveredCallId — if a
recoveredCallId is present, the call is recovering.
Changes:
- Add recoveredCallId to IWebRTCCall and IVertoCallOptions interfaces
- Add recoveredCallId public property to BaseCall, derive _isRecovering from it
- Remove isRecovering constructor param from BaseCall
- Set recoveredCallId via _buildCall in VertoHandler Attach recovery flow
- Add TelnyxRTC docs with usage example
- Add 3 VertoHandler tests covering recovery, fresh attach, and ID change
* docs: update ts docs
* chore: update changelog for webrtc@2.25.26-beta.2
* chore: release webrtc 2.25.26-beta.2
* fix: remove duplicate CHANGELOG entry
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
// This call replaced a previous call after recovery.
1008
+
// Remove the old dialer/UI for call.recoveredCallId
1009
+
removeDialer(call.recoveredCallId);
1010
+
}
1011
+
}
1012
+
});
1013
+
```
1014
+
996
1015
### Voice Isolation
997
1016
998
1017
Voice isolation options can be set by passing an `audio` object to the `newCall` method. This property controls the settings of a MediaStreamTrack object. For reference on available audio constraints, see [MediaTrackConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints).
* // This call replaced a previous call after recovery.
223
+
* // Remove the old dialer/UI for call.recoveredCallId
224
+
* removeDialer(call.recoveredCallId);
225
+
* }
226
+
* }
227
+
* });
228
+
* ```
229
+
*
211
230
* ### Voice Isolation
212
231
*
213
232
* Voice isolation options can be set by passing an `audio` object to the `newCall` method. This property controls the settings of a MediaStreamTrack object. For reference on available audio constraints, see [MediaTrackConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints).
0 commit comments