wait_for_answered
wait_for_answered
Wait until the call state reaches answered. Returns immediately if the call
is already answered or has moved past it (ending or ended). A typed convenience over
wait_for() on the calling.call.state event.
answer() returns as soon as the platform accepts the command; the call reaches
answered a moment later. Await wait_for_answered() when the next step needs the
media path up. Outbound calls from client.dial() are already answered when they
return, so the method returns immediately for them.
Parameters
timeout
Maximum seconds to wait. Raises asyncio.TimeoutError if exceeded. None
waits indefinitely.
Returns
RelayEvent — The state event. When the call was already at or past the target, event.params["call_state"] holds the current state.