Skip to content

Commit 2887d0f

Browse files
authored
Merge pull request #178687 from tomaschladek/patch-18
Added consultative transfer
2 parents e903bb3 + b38d374 commit 2887d0f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

articles/communication-services/how-tos/calling-sdk/includes/transfer-calls/transfer-calls-web.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,14 @@ callTransferApi.on('transferRequested', args => {
8888
args.reject();
8989
});
9090
```
91+
92+
The *transferor* can subscribe to events for change of the state of the transfer. If the call to the *transferee* was successfully connected with *Transfer target*, *transferor* can hang up the original call with *transferee*.
93+
94+
```js
95+
transfer.on('stateChanged', () => {
96+
if (transfer.state === 'Transferred') {
97+
call.hangUp();
98+
}
99+
});
100+
```
101+

0 commit comments

Comments
 (0)