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;

Parameters

Parameter Type Description

reason

string

(Optional) Optional reason phrase, recorded in the engine log. SIP does not carry it on the BYE / CANCEL that ends an outgoing call.

Returns:

void