sip.js.sessionmanager.answer.md

October 20, 2022 ยท View on GitHub

Home > sip.js > SessionManager > answer

SessionManager.answer() method

Answer an incoming call.

Signature:

answer(session: Session, invitationAcceptOptions?: InvitationAcceptOptions): Promise<void>;

Parameters

ParameterTypeDescription
sessionSessionSession to answer.
invitationAcceptOptionsInvitationAcceptOptionsOptional options for Inviter.accept().

Returns:

Promise<void>

Remarks

Accept an incoming INVITE request creating a new Session. Resolves with the response is sent, otherwise rejects. Use onCallAnswered delegate method to determine if and when call is established.