$dialer.getCallNotConnectedReason
This method returns the reason why a call attempt was unsuccessful.
The method must be used only in scripts that handle unsuccessful call attempts with the onCallNotConnected
and onCallNotConnectedTechnical
events.
Syntax
The method is called without arguments:
$dialer.getCallNotConnectedReason(); // => "BUSY" | "NO_ANSWER" | "TECHNICAL_ERROR"
Return value
The method returns a string with the reason.
Value | Description | Corresponding event |
---|---|---|
BUSY | The number is busy | onCallNotConnected |
NO_ANSWER | The client does not answer | onCallNotConnected |
TECHNICAL_ERROR | A technical error occurred | onCallNotConnectedTechnical |