@telnyx/webrtc 2.27.0-beta.1 → 2.27.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,9 +36,10 @@ export declare const TELNYX_WARNING_CODES: {
|
|
|
36
36
|
readonly PEER_CONNECTION_FAILED: 33004;
|
|
37
37
|
readonly ONLY_HOST_ICE_CANDIDATES: 33005;
|
|
38
38
|
readonly ANSWER_WHILE_PEER_ACTIVE: 33006;
|
|
39
|
+
readonly DUPLICATE_INBOUND_ANSWER: 33007;
|
|
39
40
|
readonly TOKEN_EXPIRING_SOON: 34001;
|
|
40
41
|
readonly SESSION_NOT_REATTACHED: 35001;
|
|
41
42
|
};
|
|
42
43
|
export declare const SDP_CREATE_OFFER_FAILED: 40001, SDP_CREATE_ANSWER_FAILED: 40002, SDP_SET_LOCAL_DESCRIPTION_FAILED: 40003, SDP_SET_REMOTE_DESCRIPTION_FAILED: 40004, SDP_SEND_FAILED: 40005, MEDIA_MICROPHONE_PERMISSION_DENIED: 42001, MEDIA_DEVICE_NOT_FOUND: 42002, MEDIA_GET_USER_MEDIA_FAILED: 42003, HOLD_FAILED: 44001, INVALID_CALL_PARAMETERS: 44002, BYE_SEND_FAILED: 44003, SUBSCRIBE_FAILED: 44004, PEER_CLOSED_DURING_INIT: 44005, WEBSOCKET_CONNECTION_FAILED: 45001, WEBSOCKET_ERROR: 45002, RECONNECTION_EXHAUSTED: 45003, GATEWAY_FAILED: 45004, LOGIN_FAILED: 46001, INVALID_CREDENTIALS: 46002, AUTHENTICATION_REQUIRED: 46003, ICE_RESTART_FAILED: 47001, NETWORK_OFFLINE: 48001, UNEXPECTED_ERROR: 49001;
|
|
43
|
-
export declare const HIGH_RTT: 31001, HIGH_JITTER: 31002, HIGH_PACKET_LOSS: 31003, LOW_MOS: 31004, LOW_BYTES_RECEIVED: 32001, LOW_BYTES_SENT: 32002, ICE_CONNECTIVITY_LOST: 33001, ICE_GATHERING_TIMEOUT: 33002, ICE_GATHERING_EMPTY: 33003, PEER_CONNECTION_FAILED: 33004, ONLY_HOST_ICE_CANDIDATES: 33005, ANSWER_WHILE_PEER_ACTIVE: 33006, TOKEN_EXPIRING_SOON: 34001, SESSION_NOT_REATTACHED: 35001;
|
|
44
|
+
export declare const HIGH_RTT: 31001, HIGH_JITTER: 31002, HIGH_PACKET_LOSS: 31003, LOW_MOS: 31004, LOW_BYTES_RECEIVED: 32001, LOW_BYTES_SENT: 32002, ICE_CONNECTIVITY_LOST: 33001, ICE_GATHERING_TIMEOUT: 33002, ICE_GATHERING_EMPTY: 33003, PEER_CONNECTION_FAILED: 33004, ONLY_HOST_ICE_CANDIDATES: 33005, ANSWER_WHILE_PEER_ACTIVE: 33006, DUPLICATE_INBOUND_ANSWER: 33007, TOKEN_EXPIRING_SOON: 34001, SESSION_NOT_REATTACHED: 35001;
|
|
44
45
|
export declare const HAS_NON_HOST_ICE_CANDIDATE_REGEX: RegExp;
|
|
@@ -96,6 +96,13 @@ export declare const SDK_WARNINGS: {
|
|
|
96
96
|
readonly causes: readonly ["Application called answer() twice on the same call object", "Multiple click handlers or event listeners triggering answer()"];
|
|
97
97
|
readonly solutions: readonly ["Ensure answer() is called only once per call", "Disable the answer button after the first click", "Check that answer() is not invoked from multiple event handlers"];
|
|
98
98
|
};
|
|
99
|
+
readonly 33007: {
|
|
100
|
+
readonly name: "DUPLICATE_INBOUND_ANSWER";
|
|
101
|
+
readonly message: "Call answer ignored because another inbound call is already being answered";
|
|
102
|
+
readonly description: "answer() was called on an inbound call while another inbound call is already answering or active in this JavaScript runtime. Answering both legs can trigger SIP 486 USER_BUSY / LOSE_RACE when duplicate WebSocket registrations receive the same incoming call.";
|
|
103
|
+
readonly causes: readonly ["Multiple TelnyxRTC instances in the same page", "Application code recreating a client without disconnecting the previous instance", "Duplicate inbound call notifications produced by duplicate WebSocket registrations"];
|
|
104
|
+
readonly solutions: readonly ["Keep a single active TelnyxRTC instance for inbound call handling", "Call disconnect() before replacing an SDK client instance", "Only call answer() for one inbound call notification at a time"];
|
|
105
|
+
};
|
|
99
106
|
readonly 34001: {
|
|
100
107
|
readonly name: "TOKEN_EXPIRING_SOON";
|
|
101
108
|
readonly message: "Authentication token expiring soon";
|
|
@@ -116,6 +116,10 @@ export default abstract class BaseCall implements IWebRTCCall {
|
|
|
116
116
|
private _dispatchConferenceUpdate;
|
|
117
117
|
private _dispatchNotification;
|
|
118
118
|
private _execute;
|
|
119
|
+
private _registerInboundAnswerAttempt;
|
|
120
|
+
private _getSessionInboundAnswerCalls;
|
|
121
|
+
private _isBlockingInboundAnswer;
|
|
122
|
+
private _hasUsablePeerConnection;
|
|
119
123
|
private _init;
|
|
120
124
|
protected _finalize(): void;
|
|
121
125
|
private _flushIntermediateReport;
|