====== hangup() ====== call.hangup() finishes current call, "hangs up the phone". ===== Arguments ===== call.hangup(reason, message): * reason: (optional) numeric response code describing reason of finishing the call * message: (optional) string verbal description of reason Usually call.hangup() is called without any arguments, resulting in normal ending of call. If call is ended due to a timeout, for example if no media is received from other end any more then the hangup can be given a reason: call.hangup(408, "Media timeout") ===== Returns ===== Nothing. ===== Events ===== call.hangup() raises event [[ixnx:wrtc:js:api:wrtc:onhungup|wrtc.onHungUp()]] ===== See Also ===== [[ixnx:wrtc:js:api:wrtc:hangup|wrtc.hangup()]] [[ixnx:wrtc:js:api:wrtc:endgroupcall|wrtc.endGroupCall()]]