*** id: 27a9913f-7130-4d4c-9469-dce6ed3617a8 title: waitFor slug: /node/reference/voice/call/wait-for description: waitFor method for the Call class. max-toc-depth: 3 ---------------- ### waitFor * **waitFor**(`params`): `Promise` Returns a promise that is resolved only after the current call is in one of the specified states. #### Parameters | Name | Type | | :------- | :------------------------------------------------------ | | `params` | `"ended"` \| `"ending"` \| (`"ended"` \| `"ending"`)\[] | #### Returns `Promise` true if the requested states have been reached, false if they won't be reached because the call ended. #### Example ```js await call.waitFor("ended"); ```