void onSIPCallEnded(String callId, int errCode, String reason)
Called when an active call disconnects.
Parameters
Name | Description |
callId | The id of the call. |
errCode | The code for the call termination error. |
reason | The reason for call termination error. |
Examples
var CallStatus = {
NOT_IN_CALL: 0,
RINGING: 1,
IN_CALL: 2
};
var holdStatus;
function onSIPCallEnded(callId, errCode, reason) {
if (callId === undefined) return;
if (errCode === -2 && reason === 'Busy Here (486)') alert('Busy');
else if (errCode !== 0) alert('SIP Call Ended Unexpectedly - Code: ' + errCode + ', Reason: ' + reason);
if (callId.length === 0) {
holdStatus = CallStatus.NOT_IN_CALL;
} else
holdStatus = CallStatus.IN_CALL;
}
Requirements
KioWare for Android version 3.17 or greater.