====== answerCall() ====== call.answerCall() is used to answer an incoming call request, to "pick up the phone when it is ringing". ===== Arguments ===== call.answerCall(sendVideo) * sendVideo - (optional) boolean, if true incoming call will be answered with video, if false incoming call will be answered voice only. ===== Returns ===== Nothing. ===== Events ===== wrtc.answerCall() raises event [[ixnx:wrtc:js:api:wrtc:onconnecting|wrtc.onConnecting()]] ===== Example ===== When answering a call it is important to call answerCall() of the correct call object. Usually an "Answer" button is displayed by wrtc.onIncomingCall() function and when user klicks on the button answerCall() is called. To be able to call answerCall() of the correct call object you need to use the call.nam property: wrtc.onIncomingCall = function(call) { ... stus.innerHTML = ""; ... } ===== Also See ===== [[ixnx:wrtc:js:api:call:nam|call.nam]] [[ixnx:wrtc:js:api:wrtc:onincomingcall|wrtc.onIncomingCall()]] [[ixnx:wrtc:js:api:call:setsendvideo|call.setSendVideo()]]