@wazo/sdk 0.38.2 → 0.38.3
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 +50 -3
- package/dist/wazo-sdk.js +5 -5
- package/esm/index.js +39 -9
- package/esm/simple/Auth.js +39 -9
- package/esm/simple/Configuration.js +39 -9
- package/esm/simple/Phone.js +39 -9
- package/esm/simple/Softphone.js +39 -9
- package/esm/simple/index.js +39 -9
- package/esm/simple/room/LocalParticipant.js +39 -9
- package/esm/simple/room/Participant.js +39 -9
- package/esm/simple/room/RemoteParticipant.js +39 -9
- package/esm/simple/room/Room.js +39 -9
- package/esm/simple/room/SipRoom.js +39 -9
- package/esm/simple/room/Stream.js +39 -9
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +39 -9
- package/esm/simple/utils.js +39 -9
- package/lib/index.js +39 -9
- package/lib/simple/Auth.js +39 -9
- package/lib/simple/Configuration.js +39 -9
- package/lib/simple/Phone.js +39 -9
- package/lib/simple/Softphone.js +39 -9
- package/lib/simple/index.js +39 -9
- package/lib/simple/room/LocalParticipant.js +39 -9
- package/lib/simple/room/Participant.js +39 -9
- package/lib/simple/room/RemoteParticipant.js +39 -9
- package/lib/simple/room/Room.js +39 -9
- package/lib/simple/room/SipRoom.js +39 -9
- package/lib/simple/room/Stream.js +39 -9
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +39 -9
- package/lib/simple/utils.js +39 -9
- package/package.json +1 -1
- package/src/simple/Softphone.js +39 -9
|
@@ -13985,7 +13985,9 @@ const BRIDGE_ON_AGENT_LOGGED_OUT = 'bridge/BRIDGE_ON_AGENT_LOGGED_OUT';
|
|
|
13985
13985
|
const BRIDGE_ON_AGENT_PAUSED = 'bridge/BRIDGE_ON_AGENT_PAUSED';
|
|
13986
13986
|
const BRIDGE_ON_AGENT_RESUMED = 'bridge/BRIDGE_ON_AGENT_RESUMED';
|
|
13987
13987
|
const BRIDGE_ON_LANGUAGE_CHANGED = 'bridge/BRIDGE_ON_LANGUAGE_CHANGED';
|
|
13988
|
-
const
|
|
13988
|
+
const BRIDGE_ON_CALL_LOCALLY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_LOCALLY_ACCEPTED';
|
|
13989
|
+
const BRIDGE_ON_CALL_REJECTED = 'bridge/BRIDGE_ON_CALL_REJECTED';
|
|
13990
|
+
const BRIDGE_ON_CALL_REMOTELY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_REMOTELY_ACCEPTED';
|
|
13989
13991
|
const BRIDGE_ON_CALL_HELD = 'bridge/BRIDGE_ON_CALL_HELD';
|
|
13990
13992
|
const BRIDGE_ON_CALL_RESUMED = 'bridge/BRIDGE_ON_CALL_RESUMED';
|
|
13991
13993
|
const BRIDGE_ON_CALL_MUTED = 'bridge/BRIDGE_ON_CALL_MUTED';
|
|
@@ -14002,12 +14004,13 @@ const BRIDGE_ON_STOP_RECORDING = 'bridge/BRIDGE_ON_STOP_RECORDING';
|
|
|
14002
14004
|
const BRIDGE_ON_CARD_CANCELED = 'bridge/BRIDGE_ON_CARD_CANCELED';
|
|
14003
14005
|
const BRIDGE_ENABLE_AGENT = 'bridge/BRIDGE_ENABLE_AGENT';
|
|
14004
14006
|
const BRIDGE_SET_CARD_CONTENT = 'bridge/BRIDGE_SET_CARD_CONTENT';
|
|
14007
|
+
const BRIDGE_ENABLE_DEBUG = 'bridge/BRIDGE_ENABLE_DEBUG';
|
|
14005
14008
|
|
|
14006
14009
|
const BRIDGE_INJECT_CSS = 'bridge/BRIDGE_INJECT_CSS';
|
|
14007
14010
|
const BRIDGE_CUSTOMIZE_APPEARANCE = 'bridge/BRIDGE_CUSTOMIZE_APPEARANCE';
|
|
14008
14011
|
|
|
14009
14012
|
const SDK_CLICK_TO_CALL = 'sdk/CLICK_TO_CALL';
|
|
14010
|
-
const
|
|
14013
|
+
const SDK_ON_OUTGOING_CALL_MADE = 'sdk/SDK_ON_OUTGOING_CALL_MADE';
|
|
14011
14014
|
const SDK_CALL_ENDED = 'sdk/ON_CALL_ENDED';
|
|
14012
14015
|
const SDK_CALL_INCOMING = 'sdk/SDK_CALL_INCOMING';
|
|
14013
14016
|
const SDK_AUTHENTICATED = 'sdk/SDK_AUTHENTICATED';
|
|
@@ -14027,10 +14030,13 @@ class Softphone {
|
|
|
14027
14030
|
onLinkEnabled(link ) {}
|
|
14028
14031
|
onIFrameLoaded() {}
|
|
14029
14032
|
|
|
14030
|
-
|
|
14031
|
-
|
|
14033
|
+
onCallLocallyAnswered(call ) {}
|
|
14034
|
+
onCallRemotelyAnswered(call ) {}
|
|
14035
|
+
onOutgoingCallMade(call ) {}
|
|
14032
14036
|
onCallIncoming(call ) {}
|
|
14037
|
+
onCallRejected(call ) {}
|
|
14033
14038
|
onCallEnded(call , card , direction , fromExtension ) {}
|
|
14039
|
+
|
|
14034
14040
|
onCardSaved(card ) {}
|
|
14035
14041
|
onCardCanceled() {}
|
|
14036
14042
|
onAuthenticated(session ) {}
|
|
@@ -14062,7 +14068,18 @@ class Softphone {
|
|
|
14062
14068
|
onStopRecording() {}
|
|
14063
14069
|
onUnHandledEvent(event ) {}
|
|
14064
14070
|
|
|
14065
|
-
init({
|
|
14071
|
+
init({
|
|
14072
|
+
url,
|
|
14073
|
+
width,
|
|
14074
|
+
height,
|
|
14075
|
+
server,
|
|
14076
|
+
port,
|
|
14077
|
+
language,
|
|
14078
|
+
wrapUpDuration,
|
|
14079
|
+
enableAgent = true,
|
|
14080
|
+
tenantId,
|
|
14081
|
+
debug = false,
|
|
14082
|
+
} = {}) {
|
|
14066
14083
|
this.url = url || 'https://softphone.wazo.io';
|
|
14067
14084
|
this.width = width || 500;
|
|
14068
14085
|
this.height = height || 600;
|
|
@@ -14085,6 +14102,9 @@ class Softphone {
|
|
|
14085
14102
|
if (port) {
|
|
14086
14103
|
config.port = port;
|
|
14087
14104
|
}
|
|
14105
|
+
if (tenantId) {
|
|
14106
|
+
config.tenantId = tenantId;
|
|
14107
|
+
}
|
|
14088
14108
|
if (wrapUpDuration) {
|
|
14089
14109
|
config.wrapUpDuration = wrapUpDuration;
|
|
14090
14110
|
}
|
|
@@ -14095,6 +14115,10 @@ class Softphone {
|
|
|
14095
14115
|
this._sendMessage(BRIDGE_ENABLE_AGENT);
|
|
14096
14116
|
}
|
|
14097
14117
|
|
|
14118
|
+
if (debug) {
|
|
14119
|
+
this._sendMessage(BRIDGE_ENABLE_DEBUG);
|
|
14120
|
+
}
|
|
14121
|
+
|
|
14098
14122
|
this._createIframe(() => {
|
|
14099
14123
|
this.iframeLoaded = true;
|
|
14100
14124
|
this._pendingMessages.forEach(([type, payload]) => this._sendMessage(type, payload));
|
|
@@ -14215,8 +14239,8 @@ class Softphone {
|
|
|
14215
14239
|
}
|
|
14216
14240
|
|
|
14217
14241
|
switch (event.data.type) {
|
|
14218
|
-
case
|
|
14219
|
-
this.
|
|
14242
|
+
case SDK_ON_OUTGOING_CALL_MADE:
|
|
14243
|
+
this.onOutgoingCallMade(event.data.callSession);
|
|
14220
14244
|
break;
|
|
14221
14245
|
case SDK_CALL_ENDED: {
|
|
14222
14246
|
const { callSession, content, direction, userExtension } = event.data;
|
|
@@ -14307,8 +14331,14 @@ class Softphone {
|
|
|
14307
14331
|
case BRIDGE_ON_CARD_CANCELED:
|
|
14308
14332
|
this.onCardCanceled();
|
|
14309
14333
|
break;
|
|
14310
|
-
case
|
|
14311
|
-
this.
|
|
14334
|
+
case BRIDGE_ON_CALL_LOCALLY_ACCEPTED:
|
|
14335
|
+
this.onCallLocallyAnswered(event.data.call);
|
|
14336
|
+
break;
|
|
14337
|
+
case BRIDGE_ON_CALL_REJECTED:
|
|
14338
|
+
this.onCallRejected(event.data.call);
|
|
14339
|
+
break;
|
|
14340
|
+
case BRIDGE_ON_CALL_REMOTELY_ACCEPTED:
|
|
14341
|
+
this.onCallRemotelyAnswered(event.data.call);
|
|
14312
14342
|
break;
|
|
14313
14343
|
default:
|
|
14314
14344
|
this.onUnHandledEvent(event);
|
package/esm/simple/utils.js
CHANGED
|
@@ -13969,7 +13969,9 @@ const BRIDGE_ON_AGENT_LOGGED_OUT = 'bridge/BRIDGE_ON_AGENT_LOGGED_OUT';
|
|
|
13969
13969
|
const BRIDGE_ON_AGENT_PAUSED = 'bridge/BRIDGE_ON_AGENT_PAUSED';
|
|
13970
13970
|
const BRIDGE_ON_AGENT_RESUMED = 'bridge/BRIDGE_ON_AGENT_RESUMED';
|
|
13971
13971
|
const BRIDGE_ON_LANGUAGE_CHANGED = 'bridge/BRIDGE_ON_LANGUAGE_CHANGED';
|
|
13972
|
-
const
|
|
13972
|
+
const BRIDGE_ON_CALL_LOCALLY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_LOCALLY_ACCEPTED';
|
|
13973
|
+
const BRIDGE_ON_CALL_REJECTED = 'bridge/BRIDGE_ON_CALL_REJECTED';
|
|
13974
|
+
const BRIDGE_ON_CALL_REMOTELY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_REMOTELY_ACCEPTED';
|
|
13973
13975
|
const BRIDGE_ON_CALL_HELD = 'bridge/BRIDGE_ON_CALL_HELD';
|
|
13974
13976
|
const BRIDGE_ON_CALL_RESUMED = 'bridge/BRIDGE_ON_CALL_RESUMED';
|
|
13975
13977
|
const BRIDGE_ON_CALL_MUTED = 'bridge/BRIDGE_ON_CALL_MUTED';
|
|
@@ -13986,12 +13988,13 @@ const BRIDGE_ON_STOP_RECORDING = 'bridge/BRIDGE_ON_STOP_RECORDING';
|
|
|
13986
13988
|
const BRIDGE_ON_CARD_CANCELED = 'bridge/BRIDGE_ON_CARD_CANCELED';
|
|
13987
13989
|
const BRIDGE_ENABLE_AGENT = 'bridge/BRIDGE_ENABLE_AGENT';
|
|
13988
13990
|
const BRIDGE_SET_CARD_CONTENT = 'bridge/BRIDGE_SET_CARD_CONTENT';
|
|
13991
|
+
const BRIDGE_ENABLE_DEBUG = 'bridge/BRIDGE_ENABLE_DEBUG';
|
|
13989
13992
|
|
|
13990
13993
|
const BRIDGE_INJECT_CSS = 'bridge/BRIDGE_INJECT_CSS';
|
|
13991
13994
|
const BRIDGE_CUSTOMIZE_APPEARANCE = 'bridge/BRIDGE_CUSTOMIZE_APPEARANCE';
|
|
13992
13995
|
|
|
13993
13996
|
const SDK_CLICK_TO_CALL = 'sdk/CLICK_TO_CALL';
|
|
13994
|
-
const
|
|
13997
|
+
const SDK_ON_OUTGOING_CALL_MADE = 'sdk/SDK_ON_OUTGOING_CALL_MADE';
|
|
13995
13998
|
const SDK_CALL_ENDED = 'sdk/ON_CALL_ENDED';
|
|
13996
13999
|
const SDK_CALL_INCOMING = 'sdk/SDK_CALL_INCOMING';
|
|
13997
14000
|
const SDK_AUTHENTICATED = 'sdk/SDK_AUTHENTICATED';
|
|
@@ -14011,10 +14014,13 @@ class Softphone {
|
|
|
14011
14014
|
onLinkEnabled(link ) {}
|
|
14012
14015
|
onIFrameLoaded() {}
|
|
14013
14016
|
|
|
14014
|
-
|
|
14015
|
-
|
|
14017
|
+
onCallLocallyAnswered(call ) {}
|
|
14018
|
+
onCallRemotelyAnswered(call ) {}
|
|
14019
|
+
onOutgoingCallMade(call ) {}
|
|
14016
14020
|
onCallIncoming(call ) {}
|
|
14021
|
+
onCallRejected(call ) {}
|
|
14017
14022
|
onCallEnded(call , card , direction , fromExtension ) {}
|
|
14023
|
+
|
|
14018
14024
|
onCardSaved(card ) {}
|
|
14019
14025
|
onCardCanceled() {}
|
|
14020
14026
|
onAuthenticated(session ) {}
|
|
@@ -14046,7 +14052,18 @@ class Softphone {
|
|
|
14046
14052
|
onStopRecording() {}
|
|
14047
14053
|
onUnHandledEvent(event ) {}
|
|
14048
14054
|
|
|
14049
|
-
init({
|
|
14055
|
+
init({
|
|
14056
|
+
url,
|
|
14057
|
+
width,
|
|
14058
|
+
height,
|
|
14059
|
+
server,
|
|
14060
|
+
port,
|
|
14061
|
+
language,
|
|
14062
|
+
wrapUpDuration,
|
|
14063
|
+
enableAgent = true,
|
|
14064
|
+
tenantId,
|
|
14065
|
+
debug = false,
|
|
14066
|
+
} = {}) {
|
|
14050
14067
|
this.url = url || 'https://softphone.wazo.io';
|
|
14051
14068
|
this.width = width || 500;
|
|
14052
14069
|
this.height = height || 600;
|
|
@@ -14069,6 +14086,9 @@ class Softphone {
|
|
|
14069
14086
|
if (port) {
|
|
14070
14087
|
config.port = port;
|
|
14071
14088
|
}
|
|
14089
|
+
if (tenantId) {
|
|
14090
|
+
config.tenantId = tenantId;
|
|
14091
|
+
}
|
|
14072
14092
|
if (wrapUpDuration) {
|
|
14073
14093
|
config.wrapUpDuration = wrapUpDuration;
|
|
14074
14094
|
}
|
|
@@ -14079,6 +14099,10 @@ class Softphone {
|
|
|
14079
14099
|
this._sendMessage(BRIDGE_ENABLE_AGENT);
|
|
14080
14100
|
}
|
|
14081
14101
|
|
|
14102
|
+
if (debug) {
|
|
14103
|
+
this._sendMessage(BRIDGE_ENABLE_DEBUG);
|
|
14104
|
+
}
|
|
14105
|
+
|
|
14082
14106
|
this._createIframe(() => {
|
|
14083
14107
|
this.iframeLoaded = true;
|
|
14084
14108
|
this._pendingMessages.forEach(([type, payload]) => this._sendMessage(type, payload));
|
|
@@ -14199,8 +14223,8 @@ class Softphone {
|
|
|
14199
14223
|
}
|
|
14200
14224
|
|
|
14201
14225
|
switch (event.data.type) {
|
|
14202
|
-
case
|
|
14203
|
-
this.
|
|
14226
|
+
case SDK_ON_OUTGOING_CALL_MADE:
|
|
14227
|
+
this.onOutgoingCallMade(event.data.callSession);
|
|
14204
14228
|
break;
|
|
14205
14229
|
case SDK_CALL_ENDED: {
|
|
14206
14230
|
const { callSession, content, direction, userExtension } = event.data;
|
|
@@ -14291,8 +14315,14 @@ class Softphone {
|
|
|
14291
14315
|
case BRIDGE_ON_CARD_CANCELED:
|
|
14292
14316
|
this.onCardCanceled();
|
|
14293
14317
|
break;
|
|
14294
|
-
case
|
|
14295
|
-
this.
|
|
14318
|
+
case BRIDGE_ON_CALL_LOCALLY_ACCEPTED:
|
|
14319
|
+
this.onCallLocallyAnswered(event.data.call);
|
|
14320
|
+
break;
|
|
14321
|
+
case BRIDGE_ON_CALL_REJECTED:
|
|
14322
|
+
this.onCallRejected(event.data.call);
|
|
14323
|
+
break;
|
|
14324
|
+
case BRIDGE_ON_CALL_REMOTELY_ACCEPTED:
|
|
14325
|
+
this.onCallRemotelyAnswered(event.data.call);
|
|
14296
14326
|
break;
|
|
14297
14327
|
default:
|
|
14298
14328
|
this.onUnHandledEvent(event);
|
package/lib/index.js
CHANGED
|
@@ -14134,7 +14134,9 @@ const BRIDGE_ON_AGENT_LOGGED_OUT = 'bridge/BRIDGE_ON_AGENT_LOGGED_OUT';
|
|
|
14134
14134
|
const BRIDGE_ON_AGENT_PAUSED = 'bridge/BRIDGE_ON_AGENT_PAUSED';
|
|
14135
14135
|
const BRIDGE_ON_AGENT_RESUMED = 'bridge/BRIDGE_ON_AGENT_RESUMED';
|
|
14136
14136
|
const BRIDGE_ON_LANGUAGE_CHANGED = 'bridge/BRIDGE_ON_LANGUAGE_CHANGED';
|
|
14137
|
-
const
|
|
14137
|
+
const BRIDGE_ON_CALL_LOCALLY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_LOCALLY_ACCEPTED';
|
|
14138
|
+
const BRIDGE_ON_CALL_REJECTED = 'bridge/BRIDGE_ON_CALL_REJECTED';
|
|
14139
|
+
const BRIDGE_ON_CALL_REMOTELY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_REMOTELY_ACCEPTED';
|
|
14138
14140
|
const BRIDGE_ON_CALL_HELD = 'bridge/BRIDGE_ON_CALL_HELD';
|
|
14139
14141
|
const BRIDGE_ON_CALL_RESUMED = 'bridge/BRIDGE_ON_CALL_RESUMED';
|
|
14140
14142
|
const BRIDGE_ON_CALL_MUTED = 'bridge/BRIDGE_ON_CALL_MUTED';
|
|
@@ -14151,12 +14153,13 @@ const BRIDGE_ON_STOP_RECORDING = 'bridge/BRIDGE_ON_STOP_RECORDING';
|
|
|
14151
14153
|
const BRIDGE_ON_CARD_CANCELED = 'bridge/BRIDGE_ON_CARD_CANCELED';
|
|
14152
14154
|
const BRIDGE_ENABLE_AGENT = 'bridge/BRIDGE_ENABLE_AGENT';
|
|
14153
14155
|
const BRIDGE_SET_CARD_CONTENT = 'bridge/BRIDGE_SET_CARD_CONTENT';
|
|
14156
|
+
const BRIDGE_ENABLE_DEBUG = 'bridge/BRIDGE_ENABLE_DEBUG';
|
|
14154
14157
|
|
|
14155
14158
|
const BRIDGE_INJECT_CSS = 'bridge/BRIDGE_INJECT_CSS';
|
|
14156
14159
|
const BRIDGE_CUSTOMIZE_APPEARANCE = 'bridge/BRIDGE_CUSTOMIZE_APPEARANCE';
|
|
14157
14160
|
|
|
14158
14161
|
const SDK_CLICK_TO_CALL = 'sdk/CLICK_TO_CALL';
|
|
14159
|
-
const
|
|
14162
|
+
const SDK_ON_OUTGOING_CALL_MADE = 'sdk/SDK_ON_OUTGOING_CALL_MADE';
|
|
14160
14163
|
const SDK_CALL_ENDED = 'sdk/ON_CALL_ENDED';
|
|
14161
14164
|
const SDK_CALL_INCOMING = 'sdk/SDK_CALL_INCOMING';
|
|
14162
14165
|
const SDK_AUTHENTICATED = 'sdk/SDK_AUTHENTICATED';
|
|
@@ -14176,10 +14179,13 @@ class Softphone {
|
|
|
14176
14179
|
onLinkEnabled(link ) {}
|
|
14177
14180
|
onIFrameLoaded() {}
|
|
14178
14181
|
|
|
14179
|
-
|
|
14180
|
-
|
|
14182
|
+
onCallLocallyAnswered(call ) {}
|
|
14183
|
+
onCallRemotelyAnswered(call ) {}
|
|
14184
|
+
onOutgoingCallMade(call ) {}
|
|
14181
14185
|
onCallIncoming(call ) {}
|
|
14186
|
+
onCallRejected(call ) {}
|
|
14182
14187
|
onCallEnded(call , card , direction , fromExtension ) {}
|
|
14188
|
+
|
|
14183
14189
|
onCardSaved(card ) {}
|
|
14184
14190
|
onCardCanceled() {}
|
|
14185
14191
|
onAuthenticated(session ) {}
|
|
@@ -14211,7 +14217,18 @@ class Softphone {
|
|
|
14211
14217
|
onStopRecording() {}
|
|
14212
14218
|
onUnHandledEvent(event ) {}
|
|
14213
14219
|
|
|
14214
|
-
init({
|
|
14220
|
+
init({
|
|
14221
|
+
url,
|
|
14222
|
+
width,
|
|
14223
|
+
height,
|
|
14224
|
+
server,
|
|
14225
|
+
port,
|
|
14226
|
+
language,
|
|
14227
|
+
wrapUpDuration,
|
|
14228
|
+
enableAgent = true,
|
|
14229
|
+
tenantId,
|
|
14230
|
+
debug = false,
|
|
14231
|
+
} = {}) {
|
|
14215
14232
|
this.url = url || 'https://softphone.wazo.io';
|
|
14216
14233
|
this.width = width || 500;
|
|
14217
14234
|
this.height = height || 600;
|
|
@@ -14234,6 +14251,9 @@ class Softphone {
|
|
|
14234
14251
|
if (port) {
|
|
14235
14252
|
config.port = port;
|
|
14236
14253
|
}
|
|
14254
|
+
if (tenantId) {
|
|
14255
|
+
config.tenantId = tenantId;
|
|
14256
|
+
}
|
|
14237
14257
|
if (wrapUpDuration) {
|
|
14238
14258
|
config.wrapUpDuration = wrapUpDuration;
|
|
14239
14259
|
}
|
|
@@ -14244,6 +14264,10 @@ class Softphone {
|
|
|
14244
14264
|
this._sendMessage(BRIDGE_ENABLE_AGENT);
|
|
14245
14265
|
}
|
|
14246
14266
|
|
|
14267
|
+
if (debug) {
|
|
14268
|
+
this._sendMessage(BRIDGE_ENABLE_DEBUG);
|
|
14269
|
+
}
|
|
14270
|
+
|
|
14247
14271
|
this._createIframe(() => {
|
|
14248
14272
|
this.iframeLoaded = true;
|
|
14249
14273
|
this._pendingMessages.forEach(([type, payload]) => this._sendMessage(type, payload));
|
|
@@ -14364,8 +14388,8 @@ class Softphone {
|
|
|
14364
14388
|
}
|
|
14365
14389
|
|
|
14366
14390
|
switch (event.data.type) {
|
|
14367
|
-
case
|
|
14368
|
-
this.
|
|
14391
|
+
case SDK_ON_OUTGOING_CALL_MADE:
|
|
14392
|
+
this.onOutgoingCallMade(event.data.callSession);
|
|
14369
14393
|
break;
|
|
14370
14394
|
case SDK_CALL_ENDED: {
|
|
14371
14395
|
const { callSession, content, direction, userExtension } = event.data;
|
|
@@ -14456,8 +14480,14 @@ class Softphone {
|
|
|
14456
14480
|
case BRIDGE_ON_CARD_CANCELED:
|
|
14457
14481
|
this.onCardCanceled();
|
|
14458
14482
|
break;
|
|
14459
|
-
case
|
|
14460
|
-
this.
|
|
14483
|
+
case BRIDGE_ON_CALL_LOCALLY_ACCEPTED:
|
|
14484
|
+
this.onCallLocallyAnswered(event.data.call);
|
|
14485
|
+
break;
|
|
14486
|
+
case BRIDGE_ON_CALL_REJECTED:
|
|
14487
|
+
this.onCallRejected(event.data.call);
|
|
14488
|
+
break;
|
|
14489
|
+
case BRIDGE_ON_CALL_REMOTELY_ACCEPTED:
|
|
14490
|
+
this.onCallRemotelyAnswered(event.data.call);
|
|
14461
14491
|
break;
|
|
14462
14492
|
default:
|
|
14463
14493
|
this.onUnHandledEvent(event);
|
package/lib/simple/Auth.js
CHANGED
|
@@ -13696,7 +13696,9 @@ const BRIDGE_ON_AGENT_LOGGED_OUT = 'bridge/BRIDGE_ON_AGENT_LOGGED_OUT';
|
|
|
13696
13696
|
const BRIDGE_ON_AGENT_PAUSED = 'bridge/BRIDGE_ON_AGENT_PAUSED';
|
|
13697
13697
|
const BRIDGE_ON_AGENT_RESUMED = 'bridge/BRIDGE_ON_AGENT_RESUMED';
|
|
13698
13698
|
const BRIDGE_ON_LANGUAGE_CHANGED = 'bridge/BRIDGE_ON_LANGUAGE_CHANGED';
|
|
13699
|
-
const
|
|
13699
|
+
const BRIDGE_ON_CALL_LOCALLY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_LOCALLY_ACCEPTED';
|
|
13700
|
+
const BRIDGE_ON_CALL_REJECTED = 'bridge/BRIDGE_ON_CALL_REJECTED';
|
|
13701
|
+
const BRIDGE_ON_CALL_REMOTELY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_REMOTELY_ACCEPTED';
|
|
13700
13702
|
const BRIDGE_ON_CALL_HELD = 'bridge/BRIDGE_ON_CALL_HELD';
|
|
13701
13703
|
const BRIDGE_ON_CALL_RESUMED = 'bridge/BRIDGE_ON_CALL_RESUMED';
|
|
13702
13704
|
const BRIDGE_ON_CALL_MUTED = 'bridge/BRIDGE_ON_CALL_MUTED';
|
|
@@ -13713,12 +13715,13 @@ const BRIDGE_ON_STOP_RECORDING = 'bridge/BRIDGE_ON_STOP_RECORDING';
|
|
|
13713
13715
|
const BRIDGE_ON_CARD_CANCELED = 'bridge/BRIDGE_ON_CARD_CANCELED';
|
|
13714
13716
|
const BRIDGE_ENABLE_AGENT = 'bridge/BRIDGE_ENABLE_AGENT';
|
|
13715
13717
|
const BRIDGE_SET_CARD_CONTENT = 'bridge/BRIDGE_SET_CARD_CONTENT';
|
|
13718
|
+
const BRIDGE_ENABLE_DEBUG = 'bridge/BRIDGE_ENABLE_DEBUG';
|
|
13716
13719
|
|
|
13717
13720
|
const BRIDGE_INJECT_CSS = 'bridge/BRIDGE_INJECT_CSS';
|
|
13718
13721
|
const BRIDGE_CUSTOMIZE_APPEARANCE = 'bridge/BRIDGE_CUSTOMIZE_APPEARANCE';
|
|
13719
13722
|
|
|
13720
13723
|
const SDK_CLICK_TO_CALL = 'sdk/CLICK_TO_CALL';
|
|
13721
|
-
const
|
|
13724
|
+
const SDK_ON_OUTGOING_CALL_MADE = 'sdk/SDK_ON_OUTGOING_CALL_MADE';
|
|
13722
13725
|
const SDK_CALL_ENDED = 'sdk/ON_CALL_ENDED';
|
|
13723
13726
|
const SDK_CALL_INCOMING = 'sdk/SDK_CALL_INCOMING';
|
|
13724
13727
|
const SDK_AUTHENTICATED = 'sdk/SDK_AUTHENTICATED';
|
|
@@ -13738,10 +13741,13 @@ class Softphone {
|
|
|
13738
13741
|
onLinkEnabled(link ) {}
|
|
13739
13742
|
onIFrameLoaded() {}
|
|
13740
13743
|
|
|
13741
|
-
|
|
13742
|
-
|
|
13744
|
+
onCallLocallyAnswered(call ) {}
|
|
13745
|
+
onCallRemotelyAnswered(call ) {}
|
|
13746
|
+
onOutgoingCallMade(call ) {}
|
|
13743
13747
|
onCallIncoming(call ) {}
|
|
13748
|
+
onCallRejected(call ) {}
|
|
13744
13749
|
onCallEnded(call , card , direction , fromExtension ) {}
|
|
13750
|
+
|
|
13745
13751
|
onCardSaved(card ) {}
|
|
13746
13752
|
onCardCanceled() {}
|
|
13747
13753
|
onAuthenticated(session ) {}
|
|
@@ -13773,7 +13779,18 @@ class Softphone {
|
|
|
13773
13779
|
onStopRecording() {}
|
|
13774
13780
|
onUnHandledEvent(event ) {}
|
|
13775
13781
|
|
|
13776
|
-
init({
|
|
13782
|
+
init({
|
|
13783
|
+
url,
|
|
13784
|
+
width,
|
|
13785
|
+
height,
|
|
13786
|
+
server,
|
|
13787
|
+
port,
|
|
13788
|
+
language,
|
|
13789
|
+
wrapUpDuration,
|
|
13790
|
+
enableAgent = true,
|
|
13791
|
+
tenantId,
|
|
13792
|
+
debug = false,
|
|
13793
|
+
} = {}) {
|
|
13777
13794
|
this.url = url || 'https://softphone.wazo.io';
|
|
13778
13795
|
this.width = width || 500;
|
|
13779
13796
|
this.height = height || 600;
|
|
@@ -13796,6 +13813,9 @@ class Softphone {
|
|
|
13796
13813
|
if (port) {
|
|
13797
13814
|
config.port = port;
|
|
13798
13815
|
}
|
|
13816
|
+
if (tenantId) {
|
|
13817
|
+
config.tenantId = tenantId;
|
|
13818
|
+
}
|
|
13799
13819
|
if (wrapUpDuration) {
|
|
13800
13820
|
config.wrapUpDuration = wrapUpDuration;
|
|
13801
13821
|
}
|
|
@@ -13806,6 +13826,10 @@ class Softphone {
|
|
|
13806
13826
|
this._sendMessage(BRIDGE_ENABLE_AGENT);
|
|
13807
13827
|
}
|
|
13808
13828
|
|
|
13829
|
+
if (debug) {
|
|
13830
|
+
this._sendMessage(BRIDGE_ENABLE_DEBUG);
|
|
13831
|
+
}
|
|
13832
|
+
|
|
13809
13833
|
this._createIframe(() => {
|
|
13810
13834
|
this.iframeLoaded = true;
|
|
13811
13835
|
this._pendingMessages.forEach(([type, payload]) => this._sendMessage(type, payload));
|
|
@@ -13926,8 +13950,8 @@ class Softphone {
|
|
|
13926
13950
|
}
|
|
13927
13951
|
|
|
13928
13952
|
switch (event.data.type) {
|
|
13929
|
-
case
|
|
13930
|
-
this.
|
|
13953
|
+
case SDK_ON_OUTGOING_CALL_MADE:
|
|
13954
|
+
this.onOutgoingCallMade(event.data.callSession);
|
|
13931
13955
|
break;
|
|
13932
13956
|
case SDK_CALL_ENDED: {
|
|
13933
13957
|
const { callSession, content, direction, userExtension } = event.data;
|
|
@@ -14018,8 +14042,14 @@ class Softphone {
|
|
|
14018
14042
|
case BRIDGE_ON_CARD_CANCELED:
|
|
14019
14043
|
this.onCardCanceled();
|
|
14020
14044
|
break;
|
|
14021
|
-
case
|
|
14022
|
-
this.
|
|
14045
|
+
case BRIDGE_ON_CALL_LOCALLY_ACCEPTED:
|
|
14046
|
+
this.onCallLocallyAnswered(event.data.call);
|
|
14047
|
+
break;
|
|
14048
|
+
case BRIDGE_ON_CALL_REJECTED:
|
|
14049
|
+
this.onCallRejected(event.data.call);
|
|
14050
|
+
break;
|
|
14051
|
+
case BRIDGE_ON_CALL_REMOTELY_ACCEPTED:
|
|
14052
|
+
this.onCallRemotelyAnswered(event.data.call);
|
|
14023
14053
|
break;
|
|
14024
14054
|
default:
|
|
14025
14055
|
this.onUnHandledEvent(event);
|
|
@@ -13677,7 +13677,9 @@ const BRIDGE_ON_AGENT_LOGGED_OUT = 'bridge/BRIDGE_ON_AGENT_LOGGED_OUT';
|
|
|
13677
13677
|
const BRIDGE_ON_AGENT_PAUSED = 'bridge/BRIDGE_ON_AGENT_PAUSED';
|
|
13678
13678
|
const BRIDGE_ON_AGENT_RESUMED = 'bridge/BRIDGE_ON_AGENT_RESUMED';
|
|
13679
13679
|
const BRIDGE_ON_LANGUAGE_CHANGED = 'bridge/BRIDGE_ON_LANGUAGE_CHANGED';
|
|
13680
|
-
const
|
|
13680
|
+
const BRIDGE_ON_CALL_LOCALLY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_LOCALLY_ACCEPTED';
|
|
13681
|
+
const BRIDGE_ON_CALL_REJECTED = 'bridge/BRIDGE_ON_CALL_REJECTED';
|
|
13682
|
+
const BRIDGE_ON_CALL_REMOTELY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_REMOTELY_ACCEPTED';
|
|
13681
13683
|
const BRIDGE_ON_CALL_HELD = 'bridge/BRIDGE_ON_CALL_HELD';
|
|
13682
13684
|
const BRIDGE_ON_CALL_RESUMED = 'bridge/BRIDGE_ON_CALL_RESUMED';
|
|
13683
13685
|
const BRIDGE_ON_CALL_MUTED = 'bridge/BRIDGE_ON_CALL_MUTED';
|
|
@@ -13694,12 +13696,13 @@ const BRIDGE_ON_STOP_RECORDING = 'bridge/BRIDGE_ON_STOP_RECORDING';
|
|
|
13694
13696
|
const BRIDGE_ON_CARD_CANCELED = 'bridge/BRIDGE_ON_CARD_CANCELED';
|
|
13695
13697
|
const BRIDGE_ENABLE_AGENT = 'bridge/BRIDGE_ENABLE_AGENT';
|
|
13696
13698
|
const BRIDGE_SET_CARD_CONTENT = 'bridge/BRIDGE_SET_CARD_CONTENT';
|
|
13699
|
+
const BRIDGE_ENABLE_DEBUG = 'bridge/BRIDGE_ENABLE_DEBUG';
|
|
13697
13700
|
|
|
13698
13701
|
const BRIDGE_INJECT_CSS = 'bridge/BRIDGE_INJECT_CSS';
|
|
13699
13702
|
const BRIDGE_CUSTOMIZE_APPEARANCE = 'bridge/BRIDGE_CUSTOMIZE_APPEARANCE';
|
|
13700
13703
|
|
|
13701
13704
|
const SDK_CLICK_TO_CALL = 'sdk/CLICK_TO_CALL';
|
|
13702
|
-
const
|
|
13705
|
+
const SDK_ON_OUTGOING_CALL_MADE = 'sdk/SDK_ON_OUTGOING_CALL_MADE';
|
|
13703
13706
|
const SDK_CALL_ENDED = 'sdk/ON_CALL_ENDED';
|
|
13704
13707
|
const SDK_CALL_INCOMING = 'sdk/SDK_CALL_INCOMING';
|
|
13705
13708
|
const SDK_AUTHENTICATED = 'sdk/SDK_AUTHENTICATED';
|
|
@@ -13719,10 +13722,13 @@ class Softphone {
|
|
|
13719
13722
|
onLinkEnabled(link ) {}
|
|
13720
13723
|
onIFrameLoaded() {}
|
|
13721
13724
|
|
|
13722
|
-
|
|
13723
|
-
|
|
13725
|
+
onCallLocallyAnswered(call ) {}
|
|
13726
|
+
onCallRemotelyAnswered(call ) {}
|
|
13727
|
+
onOutgoingCallMade(call ) {}
|
|
13724
13728
|
onCallIncoming(call ) {}
|
|
13729
|
+
onCallRejected(call ) {}
|
|
13725
13730
|
onCallEnded(call , card , direction , fromExtension ) {}
|
|
13731
|
+
|
|
13726
13732
|
onCardSaved(card ) {}
|
|
13727
13733
|
onCardCanceled() {}
|
|
13728
13734
|
onAuthenticated(session ) {}
|
|
@@ -13754,7 +13760,18 @@ class Softphone {
|
|
|
13754
13760
|
onStopRecording() {}
|
|
13755
13761
|
onUnHandledEvent(event ) {}
|
|
13756
13762
|
|
|
13757
|
-
init({
|
|
13763
|
+
init({
|
|
13764
|
+
url,
|
|
13765
|
+
width,
|
|
13766
|
+
height,
|
|
13767
|
+
server,
|
|
13768
|
+
port,
|
|
13769
|
+
language,
|
|
13770
|
+
wrapUpDuration,
|
|
13771
|
+
enableAgent = true,
|
|
13772
|
+
tenantId,
|
|
13773
|
+
debug = false,
|
|
13774
|
+
} = {}) {
|
|
13758
13775
|
this.url = url || 'https://softphone.wazo.io';
|
|
13759
13776
|
this.width = width || 500;
|
|
13760
13777
|
this.height = height || 600;
|
|
@@ -13777,6 +13794,9 @@ class Softphone {
|
|
|
13777
13794
|
if (port) {
|
|
13778
13795
|
config.port = port;
|
|
13779
13796
|
}
|
|
13797
|
+
if (tenantId) {
|
|
13798
|
+
config.tenantId = tenantId;
|
|
13799
|
+
}
|
|
13780
13800
|
if (wrapUpDuration) {
|
|
13781
13801
|
config.wrapUpDuration = wrapUpDuration;
|
|
13782
13802
|
}
|
|
@@ -13787,6 +13807,10 @@ class Softphone {
|
|
|
13787
13807
|
this._sendMessage(BRIDGE_ENABLE_AGENT);
|
|
13788
13808
|
}
|
|
13789
13809
|
|
|
13810
|
+
if (debug) {
|
|
13811
|
+
this._sendMessage(BRIDGE_ENABLE_DEBUG);
|
|
13812
|
+
}
|
|
13813
|
+
|
|
13790
13814
|
this._createIframe(() => {
|
|
13791
13815
|
this.iframeLoaded = true;
|
|
13792
13816
|
this._pendingMessages.forEach(([type, payload]) => this._sendMessage(type, payload));
|
|
@@ -13907,8 +13931,8 @@ class Softphone {
|
|
|
13907
13931
|
}
|
|
13908
13932
|
|
|
13909
13933
|
switch (event.data.type) {
|
|
13910
|
-
case
|
|
13911
|
-
this.
|
|
13934
|
+
case SDK_ON_OUTGOING_CALL_MADE:
|
|
13935
|
+
this.onOutgoingCallMade(event.data.callSession);
|
|
13912
13936
|
break;
|
|
13913
13937
|
case SDK_CALL_ENDED: {
|
|
13914
13938
|
const { callSession, content, direction, userExtension } = event.data;
|
|
@@ -13999,8 +14023,14 @@ class Softphone {
|
|
|
13999
14023
|
case BRIDGE_ON_CARD_CANCELED:
|
|
14000
14024
|
this.onCardCanceled();
|
|
14001
14025
|
break;
|
|
14002
|
-
case
|
|
14003
|
-
this.
|
|
14026
|
+
case BRIDGE_ON_CALL_LOCALLY_ACCEPTED:
|
|
14027
|
+
this.onCallLocallyAnswered(event.data.call);
|
|
14028
|
+
break;
|
|
14029
|
+
case BRIDGE_ON_CALL_REJECTED:
|
|
14030
|
+
this.onCallRejected(event.data.call);
|
|
14031
|
+
break;
|
|
14032
|
+
case BRIDGE_ON_CALL_REMOTELY_ACCEPTED:
|
|
14033
|
+
this.onCallRemotelyAnswered(event.data.call);
|
|
14004
14034
|
break;
|
|
14005
14035
|
default:
|
|
14006
14036
|
this.onUnHandledEvent(event);
|
package/lib/simple/Phone.js
CHANGED
|
@@ -13585,7 +13585,9 @@ const BRIDGE_ON_AGENT_LOGGED_OUT = 'bridge/BRIDGE_ON_AGENT_LOGGED_OUT';
|
|
|
13585
13585
|
const BRIDGE_ON_AGENT_PAUSED = 'bridge/BRIDGE_ON_AGENT_PAUSED';
|
|
13586
13586
|
const BRIDGE_ON_AGENT_RESUMED = 'bridge/BRIDGE_ON_AGENT_RESUMED';
|
|
13587
13587
|
const BRIDGE_ON_LANGUAGE_CHANGED = 'bridge/BRIDGE_ON_LANGUAGE_CHANGED';
|
|
13588
|
-
const
|
|
13588
|
+
const BRIDGE_ON_CALL_LOCALLY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_LOCALLY_ACCEPTED';
|
|
13589
|
+
const BRIDGE_ON_CALL_REJECTED = 'bridge/BRIDGE_ON_CALL_REJECTED';
|
|
13590
|
+
const BRIDGE_ON_CALL_REMOTELY_ACCEPTED = 'bridge/BRIDGE_ON_CALL_REMOTELY_ACCEPTED';
|
|
13589
13591
|
const BRIDGE_ON_CALL_HELD = 'bridge/BRIDGE_ON_CALL_HELD';
|
|
13590
13592
|
const BRIDGE_ON_CALL_RESUMED = 'bridge/BRIDGE_ON_CALL_RESUMED';
|
|
13591
13593
|
const BRIDGE_ON_CALL_MUTED = 'bridge/BRIDGE_ON_CALL_MUTED';
|
|
@@ -13602,12 +13604,13 @@ const BRIDGE_ON_STOP_RECORDING = 'bridge/BRIDGE_ON_STOP_RECORDING';
|
|
|
13602
13604
|
const BRIDGE_ON_CARD_CANCELED = 'bridge/BRIDGE_ON_CARD_CANCELED';
|
|
13603
13605
|
const BRIDGE_ENABLE_AGENT = 'bridge/BRIDGE_ENABLE_AGENT';
|
|
13604
13606
|
const BRIDGE_SET_CARD_CONTENT = 'bridge/BRIDGE_SET_CARD_CONTENT';
|
|
13607
|
+
const BRIDGE_ENABLE_DEBUG = 'bridge/BRIDGE_ENABLE_DEBUG';
|
|
13605
13608
|
|
|
13606
13609
|
const BRIDGE_INJECT_CSS = 'bridge/BRIDGE_INJECT_CSS';
|
|
13607
13610
|
const BRIDGE_CUSTOMIZE_APPEARANCE = 'bridge/BRIDGE_CUSTOMIZE_APPEARANCE';
|
|
13608
13611
|
|
|
13609
13612
|
const SDK_CLICK_TO_CALL = 'sdk/CLICK_TO_CALL';
|
|
13610
|
-
const
|
|
13613
|
+
const SDK_ON_OUTGOING_CALL_MADE = 'sdk/SDK_ON_OUTGOING_CALL_MADE';
|
|
13611
13614
|
const SDK_CALL_ENDED = 'sdk/ON_CALL_ENDED';
|
|
13612
13615
|
const SDK_CALL_INCOMING = 'sdk/SDK_CALL_INCOMING';
|
|
13613
13616
|
const SDK_AUTHENTICATED = 'sdk/SDK_AUTHENTICATED';
|
|
@@ -13627,10 +13630,13 @@ class Softphone {
|
|
|
13627
13630
|
onLinkEnabled(link ) {}
|
|
13628
13631
|
onIFrameLoaded() {}
|
|
13629
13632
|
|
|
13630
|
-
|
|
13631
|
-
|
|
13633
|
+
onCallLocallyAnswered(call ) {}
|
|
13634
|
+
onCallRemotelyAnswered(call ) {}
|
|
13635
|
+
onOutgoingCallMade(call ) {}
|
|
13632
13636
|
onCallIncoming(call ) {}
|
|
13637
|
+
onCallRejected(call ) {}
|
|
13633
13638
|
onCallEnded(call , card , direction , fromExtension ) {}
|
|
13639
|
+
|
|
13634
13640
|
onCardSaved(card ) {}
|
|
13635
13641
|
onCardCanceled() {}
|
|
13636
13642
|
onAuthenticated(session ) {}
|
|
@@ -13662,7 +13668,18 @@ class Softphone {
|
|
|
13662
13668
|
onStopRecording() {}
|
|
13663
13669
|
onUnHandledEvent(event ) {}
|
|
13664
13670
|
|
|
13665
|
-
init({
|
|
13671
|
+
init({
|
|
13672
|
+
url,
|
|
13673
|
+
width,
|
|
13674
|
+
height,
|
|
13675
|
+
server,
|
|
13676
|
+
port,
|
|
13677
|
+
language,
|
|
13678
|
+
wrapUpDuration,
|
|
13679
|
+
enableAgent = true,
|
|
13680
|
+
tenantId,
|
|
13681
|
+
debug = false,
|
|
13682
|
+
} = {}) {
|
|
13666
13683
|
this.url = url || 'https://softphone.wazo.io';
|
|
13667
13684
|
this.width = width || 500;
|
|
13668
13685
|
this.height = height || 600;
|
|
@@ -13685,6 +13702,9 @@ class Softphone {
|
|
|
13685
13702
|
if (port) {
|
|
13686
13703
|
config.port = port;
|
|
13687
13704
|
}
|
|
13705
|
+
if (tenantId) {
|
|
13706
|
+
config.tenantId = tenantId;
|
|
13707
|
+
}
|
|
13688
13708
|
if (wrapUpDuration) {
|
|
13689
13709
|
config.wrapUpDuration = wrapUpDuration;
|
|
13690
13710
|
}
|
|
@@ -13695,6 +13715,10 @@ class Softphone {
|
|
|
13695
13715
|
this._sendMessage(BRIDGE_ENABLE_AGENT);
|
|
13696
13716
|
}
|
|
13697
13717
|
|
|
13718
|
+
if (debug) {
|
|
13719
|
+
this._sendMessage(BRIDGE_ENABLE_DEBUG);
|
|
13720
|
+
}
|
|
13721
|
+
|
|
13698
13722
|
this._createIframe(() => {
|
|
13699
13723
|
this.iframeLoaded = true;
|
|
13700
13724
|
this._pendingMessages.forEach(([type, payload]) => this._sendMessage(type, payload));
|
|
@@ -13815,8 +13839,8 @@ class Softphone {
|
|
|
13815
13839
|
}
|
|
13816
13840
|
|
|
13817
13841
|
switch (event.data.type) {
|
|
13818
|
-
case
|
|
13819
|
-
this.
|
|
13842
|
+
case SDK_ON_OUTGOING_CALL_MADE:
|
|
13843
|
+
this.onOutgoingCallMade(event.data.callSession);
|
|
13820
13844
|
break;
|
|
13821
13845
|
case SDK_CALL_ENDED: {
|
|
13822
13846
|
const { callSession, content, direction, userExtension } = event.data;
|
|
@@ -13907,8 +13931,14 @@ class Softphone {
|
|
|
13907
13931
|
case BRIDGE_ON_CARD_CANCELED:
|
|
13908
13932
|
this.onCardCanceled();
|
|
13909
13933
|
break;
|
|
13910
|
-
case
|
|
13911
|
-
this.
|
|
13934
|
+
case BRIDGE_ON_CALL_LOCALLY_ACCEPTED:
|
|
13935
|
+
this.onCallLocallyAnswered(event.data.call);
|
|
13936
|
+
break;
|
|
13937
|
+
case BRIDGE_ON_CALL_REJECTED:
|
|
13938
|
+
this.onCallRejected(event.data.call);
|
|
13939
|
+
break;
|
|
13940
|
+
case BRIDGE_ON_CALL_REMOTELY_ACCEPTED:
|
|
13941
|
+
this.onCallRemotelyAnswered(event.data.call);
|
|
13912
13942
|
break;
|
|
13913
13943
|
default:
|
|
13914
13944
|
this.onUnHandledEvent(event);
|