pub async fn answer(
endpoint: &Handle,
incoming: &Incoming,
media_address: IpAddr,
) -> Result<Call>Expand description
Answer an incoming INVITE.
The 200 OK is retransmitted until the ACK arrives, which is the transaction user’s job:
sipx-sip’s server transaction moves to Accepted and absorbs retransmissions of the
request, but it does not resend the response. Over UDP one lost 200 means the caller
gives up while this side holds an established call, so this is not optional.
Answers from the default codec set, Codecs::G711. answer_with takes a selection.