@wazo/sdk 0.37.35 → 0.37.38
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.
- package/README.md +8 -2
- package/dist/wazo-sdk.js +2 -2
- package/esm/__tests__/api-client.test.js +7 -1
- package/esm/__tests__/web-rtc-client.test.js +7 -1
- package/esm/api/auth.js +2 -1
- package/esm/api/call-logd.js +1 -1
- package/esm/api/chatd.js +6 -0
- package/esm/api/confd.js +6 -0
- package/esm/api-client.js +7 -1
- package/esm/checker/Checker.js +7 -1
- package/esm/checker/checks/aor.js +7 -1
- package/esm/checker/checks/api.js +7 -1
- package/esm/checker/checks/index.js +7 -1
- package/esm/checker/checks/webrtc-transport.js +7 -1
- package/esm/checker/checks/webrtc.js +7 -1
- package/esm/domain/AdHocAPIConference.js +16 -6
- package/esm/domain/CallLog.js +1 -1
- package/esm/domain/CallSession.js +14 -0
- package/esm/domain/Features.js +7 -1
- package/esm/domain/Phone/CTIPhone.js +21 -1
- package/esm/domain/Phone/WebRTCPhone.js +42 -11
- package/esm/domain/Profile.js +6 -0
- package/esm/domain/SwitchboardCall.js +5 -5
- package/esm/domain/__tests__/CallLog.test.js +5 -1
- package/esm/domain/__tests__/CallSession.test.js +14 -0
- package/esm/domain/__tests__/IndirectTransfer.test.js +14 -0
- package/esm/domain/__tests__/Profile.test.js +6 -0
- package/esm/domain/__tests__/Room.test.js +14 -0
- package/esm/domain/__tests__/Session.test.js +6 -0
- package/esm/index.js +83 -29
- package/esm/service/CallApi.js +7 -1
- package/esm/service/getApiClient.js +7 -1
- package/esm/simple/Auth.js +84 -30
- package/esm/simple/Configuration.js +83 -29
- package/esm/simple/Directory.js +7 -1
- package/esm/simple/Phone.js +83 -29
- package/esm/simple/index.js +83 -29
- package/esm/simple/room/LocalParticipant.js +83 -29
- package/esm/simple/room/Participant.js +83 -29
- package/esm/simple/room/RemoteParticipant.js +83 -29
- package/esm/simple/room/Room.js +83 -29
- package/esm/simple/room/SipRoom.js +83 -29
- package/esm/simple/room/Stream.js +83 -29
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +83 -29
- package/esm/simple/utils.js +83 -29
- package/esm/web-rtc-client.js +7 -1
- package/lib/__tests__/api-client.test.js +7 -1
- package/lib/__tests__/web-rtc-client.test.js +7 -1
- package/lib/api/auth.js +3 -0
- package/lib/api/call-logd.js +1 -1
- package/lib/api/chatd.js +6 -0
- package/lib/api/confd.js +6 -0
- package/lib/api-client.js +7 -1
- package/lib/checker/Checker.js +7 -1
- package/lib/checker/checks/aor.js +7 -1
- package/lib/checker/checks/api.js +7 -1
- package/lib/checker/checks/index.js +7 -1
- package/lib/checker/checks/webrtc-transport.js +7 -1
- package/lib/checker/checks/webrtc.js +7 -1
- package/lib/domain/AdHocAPIConference.js +16 -6
- package/lib/domain/CallLog.js +1 -1
- package/lib/domain/CallSession.js +14 -0
- package/lib/domain/Features.js +7 -1
- package/lib/domain/Phone/CTIPhone.js +21 -1
- package/lib/domain/Phone/WebRTCPhone.js +42 -11
- package/lib/domain/Profile.js +6 -0
- package/lib/domain/SwitchboardCall.js +5 -5
- package/lib/domain/__tests__/CallLog.test.js +5 -1
- package/lib/domain/__tests__/CallSession.test.js +14 -0
- package/lib/domain/__tests__/IndirectTransfer.test.js +14 -0
- package/lib/domain/__tests__/Profile.test.js +6 -0
- package/lib/domain/__tests__/Room.test.js +14 -0
- package/lib/domain/__tests__/Session.test.js +6 -0
- package/lib/index.js +83 -29
- package/lib/service/CallApi.js +7 -1
- package/lib/service/getApiClient.js +7 -1
- package/lib/simple/Auth.js +84 -29
- package/lib/simple/Configuration.js +83 -29
- package/lib/simple/Directory.js +7 -1
- package/lib/simple/Phone.js +83 -29
- package/lib/simple/index.js +83 -29
- package/lib/simple/room/LocalParticipant.js +83 -29
- package/lib/simple/room/Participant.js +83 -29
- package/lib/simple/room/RemoteParticipant.js +83 -29
- package/lib/simple/room/Room.js +83 -29
- package/lib/simple/room/SipRoom.js +83 -29
- package/lib/simple/room/Stream.js +83 -29
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +83 -29
- package/lib/simple/utils.js +83 -29
- package/lib/web-rtc-client.js +7 -1
- package/package.json +1 -1
- package/src/api/auth.js +2 -1
- package/src/domain/AdHocAPIConference.js +9 -5
- package/src/domain/CallLog.js +1 -1
- package/src/domain/CallSession.js +14 -0
- package/src/domain/Phone/WebRTCPhone.js +28 -11
- package/src/domain/Profile.js +6 -0
- package/src/domain/SwitchboardCall.js +5 -5
- package/src/domain/__tests__/CallLog.test.js +4 -0
- package/src/simple/Auth.js +13 -2
- package/src/simple/Phone.js +6 -6
- package/src/simple/index.js +2 -1
|
@@ -1071,6 +1071,7 @@ const LINE_STATE = {
|
|
|
1071
1071
|
|
|
1072
1072
|
|
|
1073
1073
|
|
|
1074
|
+
|
|
1074
1075
|
|
|
1075
1076
|
|
|
1076
1077
|
|
|
@@ -1107,6 +1108,7 @@ const LINE_STATE = {
|
|
|
1107
1108
|
|
|
1108
1109
|
|
|
1109
1110
|
|
|
1111
|
+
|
|
1110
1112
|
|
|
1111
1113
|
|
|
1112
1114
|
|
|
@@ -1138,6 +1140,7 @@ class Profile {
|
|
|
1138
1140
|
|
|
1139
1141
|
|
|
1140
1142
|
|
|
1143
|
+
|
|
1141
1144
|
|
|
1142
1145
|
|
|
1143
1146
|
|
|
@@ -1154,6 +1157,7 @@ class Profile {
|
|
|
1154
1157
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1155
1158
|
username: plain.username,
|
|
1156
1159
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1160
|
+
ringSeconds: plain.ring_seconds,
|
|
1157
1161
|
forwards: [
|
|
1158
1162
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1159
1163
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1190,6 +1194,7 @@ class Profile {
|
|
|
1190
1194
|
switchboards,
|
|
1191
1195
|
agent,
|
|
1192
1196
|
status,
|
|
1197
|
+
ringSeconds,
|
|
1193
1198
|
sipLines,
|
|
1194
1199
|
callPickupTargetUsers,
|
|
1195
1200
|
onlineCallRecordEnabled,
|
|
@@ -1211,6 +1216,7 @@ class Profile {
|
|
|
1211
1216
|
this.status = status;
|
|
1212
1217
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1213
1218
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1219
|
+
this.ringSeconds = ringSeconds;
|
|
1214
1220
|
|
|
1215
1221
|
this.sipLines = sipLines || [];
|
|
1216
1222
|
}
|
|
@@ -2202,6 +2208,7 @@ class Session {
|
|
|
2202
2208
|
/* */
|
|
2203
2209
|
|
|
2204
2210
|
const DEFAULT_BACKEND_USER = 'wazo_user';
|
|
2211
|
+
const BACKEND_LDAP_USER = 'ldap_user';
|
|
2205
2212
|
const DETAULT_EXPIRATION = 3600;
|
|
2206
2213
|
|
|
2207
2214
|
var authMethods = (client , baseUrl ) => ({
|
|
@@ -3280,6 +3287,7 @@ var updateFrom = (instance , from ) => {
|
|
|
3280
3287
|
|
|
3281
3288
|
|
|
3282
3289
|
|
|
3290
|
+
|
|
3283
3291
|
|
|
3284
3292
|
|
|
3285
3293
|
class CallSession {
|
|
@@ -3342,6 +3350,8 @@ class CallSession {
|
|
|
3342
3350
|
|
|
3343
3351
|
|
|
3344
3352
|
|
|
3353
|
+
|
|
3354
|
+
|
|
3345
3355
|
|
|
3346
3356
|
|
|
3347
3357
|
|
|
@@ -3373,6 +3383,7 @@ class CallSession {
|
|
|
3373
3383
|
videoRemotelyDowngraded,
|
|
3374
3384
|
sipSession,
|
|
3375
3385
|
answerTime,
|
|
3386
|
+
conference,
|
|
3376
3387
|
} ) {
|
|
3377
3388
|
this.callId = callId;
|
|
3378
3389
|
this.sipCallId = sipCallId;
|
|
@@ -3401,6 +3412,7 @@ class CallSession {
|
|
|
3401
3412
|
this.videoRemotelyDowngraded = videoRemotelyDowngraded;
|
|
3402
3413
|
this.sipSession = sipSession;
|
|
3403
3414
|
this.answerTime = answerTime || this.answerTime;
|
|
3415
|
+
this.conference = conference;
|
|
3404
3416
|
|
|
3405
3417
|
// Useful to compare instead of instanceof with minified code
|
|
3406
3418
|
this.type = 'CallSession';
|
|
@@ -3458,6 +3470,10 @@ class CallSession {
|
|
|
3458
3470
|
this.screensharing = false;
|
|
3459
3471
|
}
|
|
3460
3472
|
|
|
3473
|
+
setIsConference(conference ) {
|
|
3474
|
+
this.conference = conference;
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3461
3477
|
isIncoming() {
|
|
3462
3478
|
return !this.isCaller && !this.answered;
|
|
3463
3479
|
}
|
|
@@ -3534,6 +3550,10 @@ class CallSession {
|
|
|
3534
3550
|
return this.sipStatus === SessionState.Terminated;
|
|
3535
3551
|
}
|
|
3536
3552
|
|
|
3553
|
+
isConference() {
|
|
3554
|
+
return this.conference;
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3537
3557
|
getElapsedTimeInSeconds() {
|
|
3538
3558
|
if (!this.startTime) {
|
|
3539
3559
|
return 0;
|
|
@@ -3625,6 +3645,7 @@ class CallSession {
|
|
|
3625
3645
|
cameraEnabled: false,
|
|
3626
3646
|
dialedExtension: call.dialedExtension,
|
|
3627
3647
|
call,
|
|
3648
|
+
conference: false, // @FIXME?
|
|
3628
3649
|
});
|
|
3629
3650
|
}
|
|
3630
3651
|
}
|
|
@@ -3720,7 +3741,7 @@ class Recording {
|
|
|
3720
3741
|
|
|
3721
3742
|
|
|
3722
3743
|
|
|
3723
|
-
|
|
3744
|
+
|
|
3724
3745
|
|
|
3725
3746
|
|
|
3726
3747
|
|
|
@@ -5589,6 +5610,7 @@ var getApiClient = (forServer ) => {
|
|
|
5589
5610
|
|
|
5590
5611
|
class InvalidSubscription extends Error {}
|
|
5591
5612
|
class InvalidAuthorization extends Error {}
|
|
5613
|
+
class NoTenantIdError extends Error {}
|
|
5592
5614
|
|
|
5593
5615
|
const logger$9 = IssueReporter$1.loggerFor('simple-auth');
|
|
5594
5616
|
|
|
@@ -5602,11 +5624,15 @@ class Auth {
|
|
|
5602
5624
|
|
|
5603
5625
|
|
|
5604
5626
|
|
|
5627
|
+
|
|
5628
|
+
|
|
5605
5629
|
|
|
5606
5630
|
constructor() {
|
|
5607
5631
|
this.expiration = DETAULT_EXPIRATION;
|
|
5608
5632
|
this.authenticated = false;
|
|
5609
5633
|
this.minSubscriptionType = null;
|
|
5634
|
+
this.BACKEND_WAZO = DEFAULT_BACKEND_USER;
|
|
5635
|
+
this.BACKEND_LDAP = BACKEND_LDAP_USER;
|
|
5610
5636
|
}
|
|
5611
5637
|
|
|
5612
5638
|
init(clientId ,
|
|
@@ -5639,12 +5665,18 @@ class Auth {
|
|
|
5639
5665
|
setFetchOptions(options);
|
|
5640
5666
|
}
|
|
5641
5667
|
|
|
5642
|
-
async logIn(username , password ) {
|
|
5668
|
+
async logIn(username , password , backend , tenantId ) {
|
|
5669
|
+
if (backend && backend !== this.BACKEND_WAZO && !tenantId) {
|
|
5670
|
+
throw new NoTenantIdError('No tenant id');
|
|
5671
|
+
}
|
|
5672
|
+
|
|
5643
5673
|
this.authenticated = false;
|
|
5644
5674
|
this.session = null;
|
|
5645
5675
|
const rawSession = await getApiClient().auth.logIn({
|
|
5646
5676
|
username,
|
|
5647
5677
|
password,
|
|
5678
|
+
backend,
|
|
5679
|
+
tenantId,
|
|
5648
5680
|
expiration: this.expiration,
|
|
5649
5681
|
mobile: this.mobile,
|
|
5650
5682
|
});
|
|
@@ -5874,7 +5906,7 @@ var Auth$1 = global.wazoAuthInstance;
|
|
|
5874
5906
|
|
|
5875
5907
|
|
|
5876
5908
|
|
|
5877
|
-
|
|
5909
|
+
|
|
5878
5910
|
|
|
5879
5911
|
|
|
5880
5912
|
|
|
@@ -5894,7 +5926,7 @@ class AdHocAPIConference {
|
|
|
5894
5926
|
|
|
5895
5927
|
|
|
5896
5928
|
|
|
5897
|
-
|
|
5929
|
+
|
|
5898
5930
|
|
|
5899
5931
|
|
|
5900
5932
|
|
|
@@ -5906,7 +5938,7 @@ class AdHocAPIConference {
|
|
|
5906
5938
|
participants,
|
|
5907
5939
|
started,
|
|
5908
5940
|
finished,
|
|
5909
|
-
|
|
5941
|
+
answerTime,
|
|
5910
5942
|
conferenceId,
|
|
5911
5943
|
muted,
|
|
5912
5944
|
paused,
|
|
@@ -5916,16 +5948,20 @@ class AdHocAPIConference {
|
|
|
5916
5948
|
this.participants = participants || {};
|
|
5917
5949
|
this.started = started || false;
|
|
5918
5950
|
this.finished = finished || false;
|
|
5919
|
-
this.
|
|
5951
|
+
this.answerTime = answerTime;
|
|
5920
5952
|
this.conferenceId = conferenceId || '';
|
|
5921
5953
|
this.muted = muted || false;
|
|
5922
5954
|
this.paused = paused || false;
|
|
5955
|
+
|
|
5956
|
+
if (this.host) {
|
|
5957
|
+
this.host.setIsConference(true);
|
|
5958
|
+
}
|
|
5923
5959
|
}
|
|
5924
5960
|
|
|
5925
5961
|
async start() {
|
|
5926
5962
|
this.started = true;
|
|
5927
5963
|
// $FlowFixMe
|
|
5928
|
-
this.
|
|
5964
|
+
this.answerTime = Object.values(this.participants).length ? Object.values(this.participants)[0].answerTime : null;
|
|
5929
5965
|
|
|
5930
5966
|
const participantIds = Object.keys(this.participants);
|
|
5931
5967
|
const conference = await getApiClient().calld.createAdHocConference(this.host.callId, participantIds);
|
|
@@ -9629,7 +9665,11 @@ class WebRTCPhone extends Emitter {
|
|
|
9629
9665
|
accept(callSession , cameraEnabled ) {
|
|
9630
9666
|
logger$7.info('WebRTC phone - accept call', { id: callSession ? callSession.getId() : 'n/a', cameraEnabled });
|
|
9631
9667
|
if (this.currentSipSession) {
|
|
9632
|
-
this.holdSipSession(
|
|
9668
|
+
this.holdSipSession(
|
|
9669
|
+
this.currentSipSession,
|
|
9670
|
+
this.currentCallSession,
|
|
9671
|
+
true,
|
|
9672
|
+
);
|
|
9633
9673
|
}
|
|
9634
9674
|
|
|
9635
9675
|
if (!callSession) {
|
|
@@ -9722,22 +9762,22 @@ class WebRTCPhone extends Emitter {
|
|
|
9722
9762
|
}
|
|
9723
9763
|
}
|
|
9724
9764
|
|
|
9725
|
-
hold(callSession , withEvent = true
|
|
9765
|
+
hold(callSession , withEvent = true) {
|
|
9726
9766
|
logger$7.info('WebRTC hold', { id: callSession.getId() });
|
|
9727
9767
|
|
|
9728
9768
|
const sipSession = this.findSipSession(callSession);
|
|
9729
9769
|
|
|
9730
|
-
return sipSession ? this.holdSipSession(sipSession, callSession, withEvent
|
|
9770
|
+
return sipSession ? this.holdSipSession(sipSession, callSession, withEvent) : null;
|
|
9731
9771
|
}
|
|
9732
9772
|
|
|
9733
9773
|
// @Deprecated
|
|
9734
|
-
unhold(callSession , withEvent = true
|
|
9774
|
+
unhold(callSession , withEvent = true) {
|
|
9735
9775
|
console.warn('Please note that `phone.unhold()` is being deprecated; `phone.resume()` is the preferred method');
|
|
9736
9776
|
|
|
9737
|
-
return this.resume(callSession,
|
|
9777
|
+
return this.resume(callSession, withEvent);
|
|
9738
9778
|
}
|
|
9739
9779
|
|
|
9740
|
-
resume(callSession ,
|
|
9780
|
+
resume(callSession , withEvent = true) {
|
|
9741
9781
|
logger$7.info('WebRTC resume called', { id: callSession ? callSession.getId() : null });
|
|
9742
9782
|
|
|
9743
9783
|
const sipSession = this.findSipSession(callSession);
|
|
@@ -9750,10 +9790,14 @@ class WebRTCPhone extends Emitter {
|
|
|
9750
9790
|
// Hold current session if different from the current one (we don't want 2 sessions active at the same time).
|
|
9751
9791
|
if (this.currentSipSession && this.currentSipSession.id !== sipSession.id) {
|
|
9752
9792
|
logger$7.info('WebRTC hold call after resume', { id: this.currentSipSession.id });
|
|
9753
|
-
this.holdSipSession(
|
|
9793
|
+
this.holdSipSession(
|
|
9794
|
+
this.currentSipSession,
|
|
9795
|
+
this.currentCallSession,
|
|
9796
|
+
withEvent,
|
|
9797
|
+
);
|
|
9754
9798
|
}
|
|
9755
9799
|
|
|
9756
|
-
const promise = this.unholdSipSession(sipSession, callSession, withEvent
|
|
9800
|
+
const promise = this.unholdSipSession(sipSession, callSession, withEvent);
|
|
9757
9801
|
this.currentSipSession = sipSession;
|
|
9758
9802
|
if (callSession) {
|
|
9759
9803
|
this.currentCallSession = callSession;
|
|
@@ -9766,7 +9810,6 @@ class WebRTCPhone extends Emitter {
|
|
|
9766
9810
|
sipSession ,
|
|
9767
9811
|
callSession ,
|
|
9768
9812
|
withEvent = true,
|
|
9769
|
-
isConference = false,
|
|
9770
9813
|
) {
|
|
9771
9814
|
if (!sipSession) {
|
|
9772
9815
|
return new Promise((resolve, reject) => reject(new Error('No session to hold')));
|
|
@@ -9787,6 +9830,8 @@ class WebRTCPhone extends Emitter {
|
|
|
9787
9830
|
await this.client.downgradeToAudio(sipSession);
|
|
9788
9831
|
}
|
|
9789
9832
|
|
|
9833
|
+
const isConference = !!callSession && callSession.isConference();
|
|
9834
|
+
|
|
9790
9835
|
const promise = this.client.hold(sipSession, isConference, hasVideo);
|
|
9791
9836
|
if (withEvent) {
|
|
9792
9837
|
this.eventEmitter.emit(ON_CALL_HELD, this._createCallSession(sipSession, callSession));
|
|
@@ -9799,11 +9844,13 @@ class WebRTCPhone extends Emitter {
|
|
|
9799
9844
|
sipSession ,
|
|
9800
9845
|
callSession ,
|
|
9801
9846
|
withEvent = true,
|
|
9802
|
-
isConference = false,
|
|
9803
9847
|
) {
|
|
9804
9848
|
if (!sipSession) {
|
|
9805
9849
|
return new Promise((resolve, reject) => reject(new Error('No session to unhold')));
|
|
9806
9850
|
}
|
|
9851
|
+
|
|
9852
|
+
const isConference = !!callSession && callSession.isConference();
|
|
9853
|
+
|
|
9807
9854
|
const sessionId = this.getSipSessionId(sipSession);
|
|
9808
9855
|
logger$7.info('WebRTC unhold sip session', { sessionId, isConference });
|
|
9809
9856
|
|
|
@@ -9945,7 +9992,11 @@ class WebRTCPhone extends Emitter {
|
|
|
9945
9992
|
await this.client.register();
|
|
9946
9993
|
}
|
|
9947
9994
|
if (this.currentSipSession) {
|
|
9948
|
-
this.holdSipSession(
|
|
9995
|
+
this.holdSipSession(
|
|
9996
|
+
this.currentSipSession,
|
|
9997
|
+
this.currentCallSession,
|
|
9998
|
+
true,
|
|
9999
|
+
).catch(e => {
|
|
9949
10000
|
logger$7.warn('Unable to hold current session when making another call', e);
|
|
9950
10001
|
});
|
|
9951
10002
|
}
|
|
@@ -9960,6 +10011,7 @@ class WebRTCPhone extends Emitter {
|
|
|
9960
10011
|
return Promise.resolve(null);
|
|
9961
10012
|
}
|
|
9962
10013
|
const callSession = this._createOutgoingCallSession(sipSession, cameraEnabled || false);
|
|
10014
|
+
callSession.setIsConference(conference);
|
|
9963
10015
|
callSession.creationTime = new Date();
|
|
9964
10016
|
this._updateCallSession(callSession);
|
|
9965
10017
|
|
|
@@ -10538,6 +10590,7 @@ class WebRTCPhone extends Emitter {
|
|
|
10538
10590
|
recording: fromSession ? fromSession.isRecording() : false,
|
|
10539
10591
|
recordingPaused: false, // @TODO
|
|
10540
10592
|
sipSession,
|
|
10593
|
+
conference: !!fromSession && fromSession.isConference(),
|
|
10541
10594
|
...extra,
|
|
10542
10595
|
});
|
|
10543
10596
|
|
|
@@ -10794,16 +10847,16 @@ class Phone extends Emitter {
|
|
|
10794
10847
|
}
|
|
10795
10848
|
}
|
|
10796
10849
|
|
|
10797
|
-
hold(callSession
|
|
10798
|
-
return this.phone && this.phone.hold(callSession, true
|
|
10850
|
+
hold(callSession ) {
|
|
10851
|
+
return this.phone && this.phone.hold(callSession, true);
|
|
10799
10852
|
}
|
|
10800
10853
|
|
|
10801
|
-
unhold(callSession
|
|
10802
|
-
return this.phone && this.phone.unhold(callSession, true
|
|
10854
|
+
unhold(callSession ) {
|
|
10855
|
+
return this.phone && this.phone.unhold(callSession, true);
|
|
10803
10856
|
}
|
|
10804
10857
|
|
|
10805
|
-
resume(callSession
|
|
10806
|
-
return this.phone && this.phone.resume(callSession
|
|
10858
|
+
resume(callSession ) {
|
|
10859
|
+
return this.phone && this.phone.resume(callSession);
|
|
10807
10860
|
}
|
|
10808
10861
|
|
|
10809
10862
|
reject(callSession ) {
|
|
@@ -13063,7 +13116,7 @@ class Room {
|
|
|
13063
13116
|
|
|
13064
13117
|
|
|
13065
13118
|
|
|
13066
|
-
|
|
13119
|
+
|
|
13067
13120
|
|
|
13068
13121
|
|
|
13069
13122
|
|
|
@@ -13089,7 +13142,7 @@ class SwitchboardCall {
|
|
|
13089
13142
|
|
|
13090
13143
|
|
|
13091
13144
|
|
|
13092
|
-
|
|
13145
|
+
|
|
13093
13146
|
|
|
13094
13147
|
|
|
13095
13148
|
|
|
@@ -13103,7 +13156,7 @@ class SwitchboardCall {
|
|
|
13103
13156
|
callerIdName: plain.caller_id_name || null,
|
|
13104
13157
|
callerIdNumber: plain.caller_id_number || null,
|
|
13105
13158
|
participantId: plain.participantId || null,
|
|
13106
|
-
|
|
13159
|
+
answerTime: plain.startTime,
|
|
13107
13160
|
state: plain.state,
|
|
13108
13161
|
switchboardName: plain.switchboardName,
|
|
13109
13162
|
switchboardUuid: plain.switchboardUuid,
|
|
@@ -13116,7 +13169,7 @@ class SwitchboardCall {
|
|
|
13116
13169
|
callerIdName,
|
|
13117
13170
|
callerIdNumber,
|
|
13118
13171
|
participantId,
|
|
13119
|
-
|
|
13172
|
+
answerTime,
|
|
13120
13173
|
state,
|
|
13121
13174
|
switchboardName,
|
|
13122
13175
|
switchboardUuid,
|
|
@@ -13126,7 +13179,7 @@ class SwitchboardCall {
|
|
|
13126
13179
|
this.callerIdName = callerIdName;
|
|
13127
13180
|
this.callerIdNumber = callerIdNumber;
|
|
13128
13181
|
this.participantId = participantId;
|
|
13129
|
-
this.
|
|
13182
|
+
this.answerTime = answerTime;
|
|
13130
13183
|
this.state = state;
|
|
13131
13184
|
this.switchboardName = switchboardName;
|
|
13132
13185
|
this.switchboardUuid = switchboardUuid;
|
|
@@ -13763,6 +13816,7 @@ const Wazo = {
|
|
|
13763
13816
|
InvalidAuthorization,
|
|
13764
13817
|
CanceledCallError,
|
|
13765
13818
|
SFUNotAvailableError,
|
|
13819
|
+
NoTenantIdError,
|
|
13766
13820
|
};
|
|
13767
13821
|
|
|
13768
13822
|
if (window) {
|