Home > sip.js > SessionManager > answer
Answer an incoming call.
Signature:
answer(session: Session, invitationAcceptOptions?: InvitationAcceptOptions): Promise<void>;
Parameter | Type | Description |
---|---|---|
session | Session | Session to answer. |
invitationAcceptOptions | InvitationAcceptOptions | Optional options for Inviter.accept(). |
Returns:
Promise<void>
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.