NotifyClient - forwardCall(Object argument)

Forward the current call to a different phone number or Notify client session.

Table 1. Parameters
Name Type Description
argument Object A JavaScript object detailing the number or Notify client to forward the call to.
Table 2. Returns
Type Description
void

This example demonstrates forwarding a call to a different phone number. The dtmf attribute allows you to send DTMF dial tones to the receiving number.

var arg = {
    type: "number",
    id: "+17012345678",
    dtmf: "1234"
}
client.forwardCall(arg);

This example demonstrates forwarding a call to a different Notify client.

var arg = {
    type: "userId",
    id: "6816f79cc0a8016401c5a33be04be441"
}
client.forwardCall(arg);