async def METHOD_NAME(self, message):
    print(
        self.ident, "handle_connections", message["state"], message["rfc23_state"]
    )
    conn_id = message["connection_id"]
    if (not self.connection_id) and message["rfc23_state"] == "invitation-sent":
        print(self.ident, "set connection id", conn_id)
        self.connection_id = conn_id
    if (
        message["connection_id"] == self.connection_id
        and message["rfc23_state"] == "completed"
        and (self._connection_ready and not self._connection_ready.done())
    ):
        self.log("Connected")
        self._connection_ready.set_result(True)