answer

View as Markdown

answer

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

Answers the incoming call.

Returns

Promise<Call> - See Call for more details.

Example

1client.on("call.received", async (call) => {
2 try {
3 await call.answer();
4 console.log("Inbound call answered");
5 } catch (error) {
6 console.error("Error answering inbound call", error);
7 }
8});