Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 908 Bytes

sip.js.sessionmanager.answer.md

File metadata and controls

29 lines (17 loc) · 908 Bytes

Home > sip.js > SessionManager > answer

SessionManager.answer() method

Answer an incoming call.

Signature:

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

Parameters

Parameter Type Description
session Session Session to answer.
invitationAcceptOptions InvitationAcceptOptions Optional 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.