Skip to content

Commit 5bb92f3

Browse files
Merge pull request #295251 from rzdor/main
Add transferor info example
2 parents f56a151 + 0419d88 commit 5bb92f3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,17 @@ transfer.on('stateChanged', () => {
145145
call.hangUp();
146146
}
147147
});
148+
```
149+
150+
### Initial Caller and Transferor information
151+
In case of call transfer or forward scenario incoming call object contains information about initial caller and transferor agents.
152+
Transferor agent could be Azure Communication Calling user or Teams user or Voice Application (Call Queue and etc.)
153+
```js
154+
const incomingCallHandler = async (args: { incomingCall: IncomingCall }) => {
155+
const incomingCall = args.incomingCall;
156+
// Get information about initial caller
157+
const callerInfo = incomingCall.callerInfo
158+
// Get information about initial caller
159+
const transferorInfo = incomingCall.transferorInfo
160+
};
148161
```

0 commit comments

Comments
 (0)