SipNode.hangup() method
Hang up the current call. Harmless when there is none.
This does not wait for the far end: the node reports disconnected (with onDisconnect code 200 for an established call, 487 for one that had not been answered) and can dial again straight away, while the SIP exchange completes in the background — even if the far end never answers it.
Signature:
hangup(reason?: string): void;