@dialstack/sdk-dev / react/src/softphone / ResolvePeer
Type Alias: ResolvePeer
TypeScript
type ResolvePeer = (call) =>
| PeerInfo
| null
| undefined
| Promise<PeerInfo | null | undefined>;
Defined in: sdk/react/src/react/softphone/hooks/usePeerResolver.ts:24
Looks up the remote party of a call; may be async. Called once per call for
each resolver identity, so pass a new function (e.g. useCallback over the
data it reads) when its answers would change, and keep it stable otherwise.
A null/undefined result, a rejection or a throw all leave the call on the
default display (caller-id name, else the number).
Parameters
call
Returns
| PeerInfo
| null
| undefined
| Promise<PeerInfo | null | undefined>