@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
package/lib/api-client.js
CHANGED
|
@@ -1058,6 +1058,7 @@ const LINE_STATE = {
|
|
|
1058
1058
|
|
|
1059
1059
|
|
|
1060
1060
|
|
|
1061
|
+
|
|
1061
1062
|
|
|
1062
1063
|
|
|
1063
1064
|
|
|
@@ -1094,6 +1095,7 @@ const LINE_STATE = {
|
|
|
1094
1095
|
|
|
1095
1096
|
|
|
1096
1097
|
|
|
1098
|
+
|
|
1097
1099
|
|
|
1098
1100
|
|
|
1099
1101
|
|
|
@@ -1125,6 +1127,7 @@ class Profile {
|
|
|
1125
1127
|
|
|
1126
1128
|
|
|
1127
1129
|
|
|
1130
|
+
|
|
1128
1131
|
|
|
1129
1132
|
|
|
1130
1133
|
|
|
@@ -1141,6 +1144,7 @@ class Profile {
|
|
|
1141
1144
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1142
1145
|
username: plain.username,
|
|
1143
1146
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1147
|
+
ringSeconds: plain.ring_seconds,
|
|
1144
1148
|
forwards: [
|
|
1145
1149
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1146
1150
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1177,6 +1181,7 @@ class Profile {
|
|
|
1177
1181
|
switchboards,
|
|
1178
1182
|
agent,
|
|
1179
1183
|
status,
|
|
1184
|
+
ringSeconds,
|
|
1180
1185
|
sipLines,
|
|
1181
1186
|
callPickupTargetUsers,
|
|
1182
1187
|
onlineCallRecordEnabled,
|
|
@@ -1198,6 +1203,7 @@ class Profile {
|
|
|
1198
1203
|
this.status = status;
|
|
1199
1204
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1200
1205
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1206
|
+
this.ringSeconds = ringSeconds;
|
|
1201
1207
|
|
|
1202
1208
|
this.sipLines = sipLines || [];
|
|
1203
1209
|
}
|
|
@@ -3301,7 +3307,7 @@ class Recording {
|
|
|
3301
3307
|
|
|
3302
3308
|
|
|
3303
3309
|
|
|
3304
|
-
|
|
3310
|
+
|
|
3305
3311
|
|
|
3306
3312
|
|
|
3307
3313
|
|
package/lib/checker/Checker.js
CHANGED
|
@@ -1080,6 +1080,7 @@ const LINE_STATE = {
|
|
|
1080
1080
|
|
|
1081
1081
|
|
|
1082
1082
|
|
|
1083
|
+
|
|
1083
1084
|
|
|
1084
1085
|
|
|
1085
1086
|
|
|
@@ -1116,6 +1117,7 @@ const LINE_STATE = {
|
|
|
1116
1117
|
|
|
1117
1118
|
|
|
1118
1119
|
|
|
1120
|
+
|
|
1119
1121
|
|
|
1120
1122
|
|
|
1121
1123
|
|
|
@@ -1147,6 +1149,7 @@ class Profile {
|
|
|
1147
1149
|
|
|
1148
1150
|
|
|
1149
1151
|
|
|
1152
|
+
|
|
1150
1153
|
|
|
1151
1154
|
|
|
1152
1155
|
|
|
@@ -1163,6 +1166,7 @@ class Profile {
|
|
|
1163
1166
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1164
1167
|
username: plain.username,
|
|
1165
1168
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1169
|
+
ringSeconds: plain.ring_seconds,
|
|
1166
1170
|
forwards: [
|
|
1167
1171
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1168
1172
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1199,6 +1203,7 @@ class Profile {
|
|
|
1199
1203
|
switchboards,
|
|
1200
1204
|
agent,
|
|
1201
1205
|
status,
|
|
1206
|
+
ringSeconds,
|
|
1202
1207
|
sipLines,
|
|
1203
1208
|
callPickupTargetUsers,
|
|
1204
1209
|
onlineCallRecordEnabled,
|
|
@@ -1220,6 +1225,7 @@ class Profile {
|
|
|
1220
1225
|
this.status = status;
|
|
1221
1226
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1222
1227
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1228
|
+
this.ringSeconds = ringSeconds;
|
|
1223
1229
|
|
|
1224
1230
|
this.sipLines = sipLines || [];
|
|
1225
1231
|
}
|
|
@@ -3349,7 +3355,7 @@ class Recording {
|
|
|
3349
3355
|
|
|
3350
3356
|
|
|
3351
3357
|
|
|
3352
|
-
|
|
3358
|
+
|
|
3353
3359
|
|
|
3354
3360
|
|
|
3355
3361
|
|
|
@@ -1058,6 +1058,7 @@ const LINE_STATE = {
|
|
|
1058
1058
|
|
|
1059
1059
|
|
|
1060
1060
|
|
|
1061
|
+
|
|
1061
1062
|
|
|
1062
1063
|
|
|
1063
1064
|
|
|
@@ -1094,6 +1095,7 @@ const LINE_STATE = {
|
|
|
1094
1095
|
|
|
1095
1096
|
|
|
1096
1097
|
|
|
1098
|
+
|
|
1097
1099
|
|
|
1098
1100
|
|
|
1099
1101
|
|
|
@@ -1125,6 +1127,7 @@ class Profile {
|
|
|
1125
1127
|
|
|
1126
1128
|
|
|
1127
1129
|
|
|
1130
|
+
|
|
1128
1131
|
|
|
1129
1132
|
|
|
1130
1133
|
|
|
@@ -1141,6 +1144,7 @@ class Profile {
|
|
|
1141
1144
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1142
1145
|
username: plain.username,
|
|
1143
1146
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1147
|
+
ringSeconds: plain.ring_seconds,
|
|
1144
1148
|
forwards: [
|
|
1145
1149
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1146
1150
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1177,6 +1181,7 @@ class Profile {
|
|
|
1177
1181
|
switchboards,
|
|
1178
1182
|
agent,
|
|
1179
1183
|
status,
|
|
1184
|
+
ringSeconds,
|
|
1180
1185
|
sipLines,
|
|
1181
1186
|
callPickupTargetUsers,
|
|
1182
1187
|
onlineCallRecordEnabled,
|
|
@@ -1198,6 +1203,7 @@ class Profile {
|
|
|
1198
1203
|
this.status = status;
|
|
1199
1204
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1200
1205
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1206
|
+
this.ringSeconds = ringSeconds;
|
|
1201
1207
|
|
|
1202
1208
|
this.sipLines = sipLines || [];
|
|
1203
1209
|
}
|
|
@@ -3301,7 +3307,7 @@ class Recording {
|
|
|
3301
3307
|
|
|
3302
3308
|
|
|
3303
3309
|
|
|
3304
|
-
|
|
3310
|
+
|
|
3305
3311
|
|
|
3306
3312
|
|
|
3307
3313
|
|
|
@@ -1058,6 +1058,7 @@ const LINE_STATE = {
|
|
|
1058
1058
|
|
|
1059
1059
|
|
|
1060
1060
|
|
|
1061
|
+
|
|
1061
1062
|
|
|
1062
1063
|
|
|
1063
1064
|
|
|
@@ -1094,6 +1095,7 @@ const LINE_STATE = {
|
|
|
1094
1095
|
|
|
1095
1096
|
|
|
1096
1097
|
|
|
1098
|
+
|
|
1097
1099
|
|
|
1098
1100
|
|
|
1099
1101
|
|
|
@@ -1125,6 +1127,7 @@ class Profile {
|
|
|
1125
1127
|
|
|
1126
1128
|
|
|
1127
1129
|
|
|
1130
|
+
|
|
1128
1131
|
|
|
1129
1132
|
|
|
1130
1133
|
|
|
@@ -1141,6 +1144,7 @@ class Profile {
|
|
|
1141
1144
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1142
1145
|
username: plain.username,
|
|
1143
1146
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1147
|
+
ringSeconds: plain.ring_seconds,
|
|
1144
1148
|
forwards: [
|
|
1145
1149
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1146
1150
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1177,6 +1181,7 @@ class Profile {
|
|
|
1177
1181
|
switchboards,
|
|
1178
1182
|
agent,
|
|
1179
1183
|
status,
|
|
1184
|
+
ringSeconds,
|
|
1180
1185
|
sipLines,
|
|
1181
1186
|
callPickupTargetUsers,
|
|
1182
1187
|
onlineCallRecordEnabled,
|
|
@@ -1198,6 +1203,7 @@ class Profile {
|
|
|
1198
1203
|
this.status = status;
|
|
1199
1204
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1200
1205
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1206
|
+
this.ringSeconds = ringSeconds;
|
|
1201
1207
|
|
|
1202
1208
|
this.sipLines = sipLines || [];
|
|
1203
1209
|
}
|
|
@@ -3301,7 +3307,7 @@ class Recording {
|
|
|
3301
3307
|
|
|
3302
3308
|
|
|
3303
3309
|
|
|
3304
|
-
|
|
3310
|
+
|
|
3305
3311
|
|
|
3306
3312
|
|
|
3307
3313
|
|
|
@@ -1080,6 +1080,7 @@ const LINE_STATE = {
|
|
|
1080
1080
|
|
|
1081
1081
|
|
|
1082
1082
|
|
|
1083
|
+
|
|
1083
1084
|
|
|
1084
1085
|
|
|
1085
1086
|
|
|
@@ -1116,6 +1117,7 @@ const LINE_STATE = {
|
|
|
1116
1117
|
|
|
1117
1118
|
|
|
1118
1119
|
|
|
1120
|
+
|
|
1119
1121
|
|
|
1120
1122
|
|
|
1121
1123
|
|
|
@@ -1147,6 +1149,7 @@ class Profile {
|
|
|
1147
1149
|
|
|
1148
1150
|
|
|
1149
1151
|
|
|
1152
|
+
|
|
1150
1153
|
|
|
1151
1154
|
|
|
1152
1155
|
|
|
@@ -1163,6 +1166,7 @@ class Profile {
|
|
|
1163
1166
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1164
1167
|
username: plain.username,
|
|
1165
1168
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1169
|
+
ringSeconds: plain.ring_seconds,
|
|
1166
1170
|
forwards: [
|
|
1167
1171
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1168
1172
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1199,6 +1203,7 @@ class Profile {
|
|
|
1199
1203
|
switchboards,
|
|
1200
1204
|
agent,
|
|
1201
1205
|
status,
|
|
1206
|
+
ringSeconds,
|
|
1202
1207
|
sipLines,
|
|
1203
1208
|
callPickupTargetUsers,
|
|
1204
1209
|
onlineCallRecordEnabled,
|
|
@@ -1220,6 +1225,7 @@ class Profile {
|
|
|
1220
1225
|
this.status = status;
|
|
1221
1226
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1222
1227
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1228
|
+
this.ringSeconds = ringSeconds;
|
|
1223
1229
|
|
|
1224
1230
|
this.sipLines = sipLines || [];
|
|
1225
1231
|
}
|
|
@@ -3349,7 +3355,7 @@ class Recording {
|
|
|
3349
3355
|
|
|
3350
3356
|
|
|
3351
3357
|
|
|
3352
|
-
|
|
3358
|
+
|
|
3353
3359
|
|
|
3354
3360
|
|
|
3355
3361
|
|
|
@@ -1609,6 +1609,7 @@ const LINE_STATE = {
|
|
|
1609
1609
|
|
|
1610
1610
|
|
|
1611
1611
|
|
|
1612
|
+
|
|
1612
1613
|
|
|
1613
1614
|
|
|
1614
1615
|
|
|
@@ -1645,6 +1646,7 @@ const LINE_STATE = {
|
|
|
1645
1646
|
|
|
1646
1647
|
|
|
1647
1648
|
|
|
1649
|
+
|
|
1648
1650
|
|
|
1649
1651
|
|
|
1650
1652
|
|
|
@@ -1676,6 +1678,7 @@ class Profile {
|
|
|
1676
1678
|
|
|
1677
1679
|
|
|
1678
1680
|
|
|
1681
|
+
|
|
1679
1682
|
|
|
1680
1683
|
|
|
1681
1684
|
|
|
@@ -1692,6 +1695,7 @@ class Profile {
|
|
|
1692
1695
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1693
1696
|
username: plain.username,
|
|
1694
1697
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1698
|
+
ringSeconds: plain.ring_seconds,
|
|
1695
1699
|
forwards: [
|
|
1696
1700
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1697
1701
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1728,6 +1732,7 @@ class Profile {
|
|
|
1728
1732
|
switchboards,
|
|
1729
1733
|
agent,
|
|
1730
1734
|
status,
|
|
1735
|
+
ringSeconds,
|
|
1731
1736
|
sipLines,
|
|
1732
1737
|
callPickupTargetUsers,
|
|
1733
1738
|
onlineCallRecordEnabled,
|
|
@@ -1749,6 +1754,7 @@ class Profile {
|
|
|
1749
1754
|
this.status = status;
|
|
1750
1755
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1751
1756
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1757
|
+
this.ringSeconds = ringSeconds;
|
|
1752
1758
|
|
|
1753
1759
|
this.sipLines = sipLines || [];
|
|
1754
1760
|
}
|
|
@@ -3852,7 +3858,7 @@ class Recording {
|
|
|
3852
3858
|
|
|
3853
3859
|
|
|
3854
3860
|
|
|
3855
|
-
|
|
3861
|
+
|
|
3856
3862
|
|
|
3857
3863
|
|
|
3858
3864
|
|
|
@@ -1609,6 +1609,7 @@ const LINE_STATE = {
|
|
|
1609
1609
|
|
|
1610
1610
|
|
|
1611
1611
|
|
|
1612
|
+
|
|
1612
1613
|
|
|
1613
1614
|
|
|
1614
1615
|
|
|
@@ -1645,6 +1646,7 @@ const LINE_STATE = {
|
|
|
1645
1646
|
|
|
1646
1647
|
|
|
1647
1648
|
|
|
1649
|
+
|
|
1648
1650
|
|
|
1649
1651
|
|
|
1650
1652
|
|
|
@@ -1676,6 +1678,7 @@ class Profile {
|
|
|
1676
1678
|
|
|
1677
1679
|
|
|
1678
1680
|
|
|
1681
|
+
|
|
1679
1682
|
|
|
1680
1683
|
|
|
1681
1684
|
|
|
@@ -1692,6 +1695,7 @@ class Profile {
|
|
|
1692
1695
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1693
1696
|
username: plain.username,
|
|
1694
1697
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1698
|
+
ringSeconds: plain.ring_seconds,
|
|
1695
1699
|
forwards: [
|
|
1696
1700
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1697
1701
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1728,6 +1732,7 @@ class Profile {
|
|
|
1728
1732
|
switchboards,
|
|
1729
1733
|
agent,
|
|
1730
1734
|
status,
|
|
1735
|
+
ringSeconds,
|
|
1731
1736
|
sipLines,
|
|
1732
1737
|
callPickupTargetUsers,
|
|
1733
1738
|
onlineCallRecordEnabled,
|
|
@@ -1749,6 +1754,7 @@ class Profile {
|
|
|
1749
1754
|
this.status = status;
|
|
1750
1755
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1751
1756
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1757
|
+
this.ringSeconds = ringSeconds;
|
|
1752
1758
|
|
|
1753
1759
|
this.sipLines = sipLines || [];
|
|
1754
1760
|
}
|
|
@@ -3852,7 +3858,7 @@ class Recording {
|
|
|
3852
3858
|
|
|
3853
3859
|
|
|
3854
3860
|
|
|
3855
|
-
|
|
3861
|
+
|
|
3856
3862
|
|
|
3857
3863
|
|
|
3858
3864
|
|
|
@@ -1267,6 +1267,7 @@ const LINE_STATE = {
|
|
|
1267
1267
|
|
|
1268
1268
|
|
|
1269
1269
|
|
|
1270
|
+
|
|
1270
1271
|
|
|
1271
1272
|
|
|
1272
1273
|
|
|
@@ -1303,6 +1304,7 @@ const LINE_STATE = {
|
|
|
1303
1304
|
|
|
1304
1305
|
|
|
1305
1306
|
|
|
1307
|
+
|
|
1306
1308
|
|
|
1307
1309
|
|
|
1308
1310
|
|
|
@@ -1334,6 +1336,7 @@ class Profile {
|
|
|
1334
1336
|
|
|
1335
1337
|
|
|
1336
1338
|
|
|
1339
|
+
|
|
1337
1340
|
|
|
1338
1341
|
|
|
1339
1342
|
|
|
@@ -1350,6 +1353,7 @@ class Profile {
|
|
|
1350
1353
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1351
1354
|
username: plain.username,
|
|
1352
1355
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1356
|
+
ringSeconds: plain.ring_seconds,
|
|
1353
1357
|
forwards: [
|
|
1354
1358
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1355
1359
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1386,6 +1390,7 @@ class Profile {
|
|
|
1386
1390
|
switchboards,
|
|
1387
1391
|
agent,
|
|
1388
1392
|
status,
|
|
1393
|
+
ringSeconds,
|
|
1389
1394
|
sipLines,
|
|
1390
1395
|
callPickupTargetUsers,
|
|
1391
1396
|
onlineCallRecordEnabled,
|
|
@@ -1407,6 +1412,7 @@ class Profile {
|
|
|
1407
1412
|
this.status = status;
|
|
1408
1413
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1409
1414
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1415
|
+
this.ringSeconds = ringSeconds;
|
|
1410
1416
|
|
|
1411
1417
|
this.sipLines = sipLines || [];
|
|
1412
1418
|
}
|
|
@@ -3301,7 +3307,7 @@ class Recording {
|
|
|
3301
3307
|
|
|
3302
3308
|
|
|
3303
3309
|
|
|
3304
|
-
|
|
3310
|
+
|
|
3305
3311
|
|
|
3306
3312
|
|
|
3307
3313
|
|
|
@@ -4754,7 +4760,7 @@ var getApiClient = (forServer ) => {
|
|
|
4754
4760
|
|
|
4755
4761
|
|
|
4756
4762
|
|
|
4757
|
-
|
|
4763
|
+
|
|
4758
4764
|
|
|
4759
4765
|
|
|
4760
4766
|
|
|
@@ -4774,7 +4780,7 @@ class AdHocAPIConference {
|
|
|
4774
4780
|
|
|
4775
4781
|
|
|
4776
4782
|
|
|
4777
|
-
|
|
4783
|
+
|
|
4778
4784
|
|
|
4779
4785
|
|
|
4780
4786
|
|
|
@@ -4786,7 +4792,7 @@ class AdHocAPIConference {
|
|
|
4786
4792
|
participants,
|
|
4787
4793
|
started,
|
|
4788
4794
|
finished,
|
|
4789
|
-
|
|
4795
|
+
answerTime,
|
|
4790
4796
|
conferenceId,
|
|
4791
4797
|
muted,
|
|
4792
4798
|
paused,
|
|
@@ -4796,16 +4802,20 @@ class AdHocAPIConference {
|
|
|
4796
4802
|
this.participants = participants || {};
|
|
4797
4803
|
this.started = started || false;
|
|
4798
4804
|
this.finished = finished || false;
|
|
4799
|
-
this.
|
|
4805
|
+
this.answerTime = answerTime;
|
|
4800
4806
|
this.conferenceId = conferenceId || '';
|
|
4801
4807
|
this.muted = muted || false;
|
|
4802
4808
|
this.paused = paused || false;
|
|
4809
|
+
|
|
4810
|
+
if (this.host) {
|
|
4811
|
+
this.host.setIsConference(true);
|
|
4812
|
+
}
|
|
4803
4813
|
}
|
|
4804
4814
|
|
|
4805
4815
|
async start() {
|
|
4806
4816
|
this.started = true;
|
|
4807
4817
|
// $FlowFixMe
|
|
4808
|
-
this.
|
|
4818
|
+
this.answerTime = Object.values(this.participants).length ? Object.values(this.participants)[0].answerTime : null;
|
|
4809
4819
|
|
|
4810
4820
|
const participantIds = Object.keys(this.participants);
|
|
4811
4821
|
const conference = await getApiClient().calld.createAdHocConference(this.host.callId, participantIds);
|
package/lib/domain/CallLog.js
CHANGED
|
@@ -61,6 +61,7 @@ var updateFrom = (instance , from ) => {
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
64
|
+
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
class CallSession {
|
|
@@ -123,6 +124,8 @@ class CallSession {
|
|
|
123
124
|
|
|
124
125
|
|
|
125
126
|
|
|
127
|
+
|
|
128
|
+
|
|
126
129
|
|
|
127
130
|
|
|
128
131
|
|
|
@@ -154,6 +157,7 @@ class CallSession {
|
|
|
154
157
|
videoRemotelyDowngraded,
|
|
155
158
|
sipSession,
|
|
156
159
|
answerTime,
|
|
160
|
+
conference,
|
|
157
161
|
} ) {
|
|
158
162
|
this.callId = callId;
|
|
159
163
|
this.sipCallId = sipCallId;
|
|
@@ -182,6 +186,7 @@ class CallSession {
|
|
|
182
186
|
this.videoRemotelyDowngraded = videoRemotelyDowngraded;
|
|
183
187
|
this.sipSession = sipSession;
|
|
184
188
|
this.answerTime = answerTime || this.answerTime;
|
|
189
|
+
this.conference = conference;
|
|
185
190
|
|
|
186
191
|
// Useful to compare instead of instanceof with minified code
|
|
187
192
|
this.type = 'CallSession';
|
|
@@ -239,6 +244,10 @@ class CallSession {
|
|
|
239
244
|
this.screensharing = false;
|
|
240
245
|
}
|
|
241
246
|
|
|
247
|
+
setIsConference(conference ) {
|
|
248
|
+
this.conference = conference;
|
|
249
|
+
}
|
|
250
|
+
|
|
242
251
|
isIncoming() {
|
|
243
252
|
return !this.isCaller && !this.answered;
|
|
244
253
|
}
|
|
@@ -315,6 +324,10 @@ class CallSession {
|
|
|
315
324
|
return this.sipStatus === sessionState.SessionState.Terminated;
|
|
316
325
|
}
|
|
317
326
|
|
|
327
|
+
isConference() {
|
|
328
|
+
return this.conference;
|
|
329
|
+
}
|
|
330
|
+
|
|
318
331
|
getElapsedTimeInSeconds() {
|
|
319
332
|
if (!this.startTime) {
|
|
320
333
|
return 0;
|
|
@@ -406,6 +419,7 @@ class CallSession {
|
|
|
406
419
|
cameraEnabled: false,
|
|
407
420
|
dialedExtension: call.dialedExtension,
|
|
408
421
|
call,
|
|
422
|
+
conference: false, // @FIXME?
|
|
409
423
|
});
|
|
410
424
|
}
|
|
411
425
|
}
|
package/lib/domain/Features.js
CHANGED
|
@@ -1060,6 +1060,7 @@ const LINE_STATE = {
|
|
|
1060
1060
|
|
|
1061
1061
|
|
|
1062
1062
|
|
|
1063
|
+
|
|
1063
1064
|
|
|
1064
1065
|
|
|
1065
1066
|
|
|
@@ -1096,6 +1097,7 @@ const LINE_STATE = {
|
|
|
1096
1097
|
|
|
1097
1098
|
|
|
1098
1099
|
|
|
1100
|
+
|
|
1099
1101
|
|
|
1100
1102
|
|
|
1101
1103
|
|
|
@@ -1127,6 +1129,7 @@ class Profile {
|
|
|
1127
1129
|
|
|
1128
1130
|
|
|
1129
1131
|
|
|
1132
|
+
|
|
1130
1133
|
|
|
1131
1134
|
|
|
1132
1135
|
|
|
@@ -1143,6 +1146,7 @@ class Profile {
|
|
|
1143
1146
|
lines: plain.lines.map(line => Line.parse(line)),
|
|
1144
1147
|
username: plain.username,
|
|
1145
1148
|
mobileNumber: plain.mobile_phone_number || '',
|
|
1149
|
+
ringSeconds: plain.ring_seconds,
|
|
1146
1150
|
forwards: [
|
|
1147
1151
|
ForwardOption.parse(plain.forwards.unconditional, FORWARD_KEYS.UNCONDITIONAL),
|
|
1148
1152
|
ForwardOption.parse(plain.forwards.noanswer, FORWARD_KEYS.NO_ANSWER),
|
|
@@ -1179,6 +1183,7 @@ class Profile {
|
|
|
1179
1183
|
switchboards,
|
|
1180
1184
|
agent,
|
|
1181
1185
|
status,
|
|
1186
|
+
ringSeconds,
|
|
1182
1187
|
sipLines,
|
|
1183
1188
|
callPickupTargetUsers,
|
|
1184
1189
|
onlineCallRecordEnabled,
|
|
@@ -1200,6 +1205,7 @@ class Profile {
|
|
|
1200
1205
|
this.status = status;
|
|
1201
1206
|
this.callPickupTargetUsers = callPickupTargetUsers;
|
|
1202
1207
|
this.onlineCallRecordEnabled = onlineCallRecordEnabled;
|
|
1208
|
+
this.ringSeconds = ringSeconds;
|
|
1203
1209
|
|
|
1204
1210
|
this.sipLines = sipLines || [];
|
|
1205
1211
|
}
|
|
@@ -3303,7 +3309,7 @@ class Recording {
|
|
|
3303
3309
|
|
|
3304
3310
|
|
|
3305
3311
|
|
|
3306
|
-
|
|
3312
|
+
|
|
3307
3313
|
|
|
3308
3314
|
|
|
3309
3315
|
|