Source: registrationstate.js

/* Wrapper generated by lp-gen-wrappers, do not edit*/

var linphone = linphone || {};
/**
 * LinphoneRegistrationState describes proxy registration states. 
 * @readonly
 * @enum {number}
**/
linphone.RegistrationState = {
	/**
	 * Initial state for registrations 
	*/
	None : 0,
	/**
	 * Registration is in progress 
	*/
	Progress : 1,
	/**
	 * Registration is successful 
	*/
	Ok : 2,
	/**
	 * Unregistration succeeded 
	*/
	Cleared : 3,
	/**
	 * Registration failed 
	*/
	Failed : 4
};
/**
 * Get the name of a value of the RegistrationState enum as a string.
 * @function linphone#getRegistrationStateText
 * @param { number } value - One of the values of the RegistrationState enum.
**/
linphone.getRegistrationStateText = function(value) {
	switch (value) {
	case linphone.RegistrationState.None:
		return "None";
	case linphone.RegistrationState.Progress:
		return "Progress";
	case linphone.RegistrationState.Ok:
		return "Ok";
	case linphone.RegistrationState.Cleared:
		return "Cleared";
	case linphone.RegistrationState.Failed:
		return "Failed";
	default:
		return "?";
	}
};