pass

View as Markdown

pass

  • pass(params): Promise<Call> - See Call for more details.

This will allow a client to decline incoming calls without ending the call and redirect the call to another Voice client

Will trigger on the call.received event.

Returns

Promise<Call> - See Call for more details.

Example

1client.on("call.received", async (call) => {
2 await call.pass();
3
4 // Every method on the "call" object will fail after calling "pass".
5});