/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* Enum representing the status of a call
* @readonly
* @enum {number}
**/
linphone.CallStatus = {
/**
* The call was sucessful
*/
Success : 0,
/**
* The call was aborted
*/
Aborted : 1,
/**
* The call was missed (unanswered)
*/
Missed : 2,
/**
* The call was declined, either locally or by remote end
*/
Declined : 3
};
/**
* Get the name of a value of the CallStatus enum as a string.
* @function linphone#getCallStatusText
* @param { number } value - One of the values of the CallStatus enum.
**/
linphone.getCallStatusText = function(value) {
switch (value) {
case linphone.CallStatus.Success:
return "Success";
case linphone.CallStatus.Aborted:
return "Aborted";
case linphone.CallStatus.Missed:
return "Missed";
case linphone.CallStatus.Declined:
return "Declined";
default:
return "?";
}
};