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 wrtc.onHungUp()

See Also

ixnx/wrtc/js/api/call/hangup.txt · Last modified: by tibor
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0