/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* Enum describing various failure reasons or contextual information for some events.
* @readonly
* @enum {number}
**/
linphone.Reason = {
None : 0,
/**
* No response received from remote
*/
NoResponse : 1,
/**
* Authentication failed due to bad credentials or resource forbidden
*/
Forbidden : 2,
/**
* The call has been declined
*/
Declined : 3,
/**
* Destination of the call was not found.
*/
NotFound : 4,
/**
* The call was not answered in time (request timeout)
*/
NotAnswered : 5,
/**
* Phone line was busy
*/
Busy : 6,
/**
* Unsupported content
*/
UnsupportedContent : 7,
/**
* Transport error: connection failures, disconnections etc...
*/
IOError : 8,
/**
* Do not disturb reason
*/
DoNotDisturb : 9,
/**
* Operation is unauthorized because missing credential
*/
Unauthorized : 10,
/**
* Operation like call update rejected by peer
*/
NotAcceptable : 11,
/**
* Operation could not be executed by server or remote client because it didn't have any context for it
*/
NoMatch : 12,
/**
* Resource moved permanently
*/
MovedPermanently : 13,
/**
* Resource no longer exists
*/
Gone : 14,
/**
* Temporarily unavailable
*/
TemporarilyUnavailable : 15,
/**
* Address incomplete
*/
AddressIncomplete : 16,
/**
* Not implemented
*/
NotImplemented : 17,
/**
* Bad gateway
*/
BadGateway : 18,
/**
* Server timeout
*/
ServerTimeout : 19,
/**
* Unknown reason
*/
Unknown : 20
};
/**
* Get the name of a value of the Reason enum as a string.
* @function linphone#getReasonText
* @param { number } value - One of the values of the Reason enum.
**/
linphone.getReasonText = function(value) {
switch (value) {
case linphone.Reason.None:
return "None";
case linphone.Reason.NoResponse:
return "NoResponse";
case linphone.Reason.Forbidden:
return "Forbidden";
case linphone.Reason.Declined:
return "Declined";
case linphone.Reason.NotFound:
return "NotFound";
case linphone.Reason.NotAnswered:
return "NotAnswered";
case linphone.Reason.Busy:
return "Busy";
case linphone.Reason.UnsupportedContent:
return "UnsupportedContent";
case linphone.Reason.IOError:
return "IOError";
case linphone.Reason.DoNotDisturb:
return "DoNotDisturb";
case linphone.Reason.Unauthorized:
return "Unauthorized";
case linphone.Reason.NotAcceptable:
return "NotAcceptable";
case linphone.Reason.NoMatch:
return "NoMatch";
case linphone.Reason.MovedPermanently:
return "MovedPermanently";
case linphone.Reason.Gone:
return "Gone";
case linphone.Reason.TemporarilyUnavailable:
return "TemporarilyUnavailable";
case linphone.Reason.AddressIncomplete:
return "AddressIncomplete";
case linphone.Reason.NotImplemented:
return "NotImplemented";
case linphone.Reason.BadGateway:
return "BadGateway";
case linphone.Reason.ServerTimeout:
return "ServerTimeout";
case linphone.Reason.Unknown:
return "Unknown";
default:
return "?";
}
};