/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* Defines privacy policy to apply as described by rfc3323
* @readonly
* @enum {number}
**/
linphone.Privacy = {
/**
* Privacy services must not perform any privacy function
*/
None : 0,
/**
* Request that privacy services provide a user-level privacy function. With this mode, "from" header is
* hidden, usually replaced by From: "Anonymous" <sip:
*/
User : 1,
/**
* Request that privacy services modify headers that cannot be set arbitrarily by the user (Contact/Via).
*
*/
Header : 2,
/**
* Request that privacy services provide privacy for session media
*/
Session : 3,
/**
* rfc3325 The presence of this privacy type in a Privacy header field indicates that the user would like
* the Network Asserted Identity to be kept private with respect to SIP entities outside the Trust Domain
* with which the user authenticated. Note that a user requesting multiple types of privacy MUST include
* all of the requested privacy types in its Privacy header field value
*/
Id : 4,
/**
* Privacy service must perform the specified services or fail the request
*/
Critical : 5,
/**
* Special keyword to use privacy as defined either globally or by proxy using
*/
Default : 6
};
/**
* Get the name of a value of the Privacy enum as a string.
* @function linphone#getPrivacyText
* @param { number } value - One of the values of the Privacy enum.
**/
linphone.getPrivacyText = function(value) {
switch (value) {
case linphone.Privacy.None:
return "None";
case linphone.Privacy.User:
return "User";
case linphone.Privacy.Header:
return "Header";
case linphone.Privacy.Session:
return "Session";
case linphone.Privacy.Id:
return "Id";
case linphone.Privacy.Critical:
return "Critical";
case linphone.Privacy.Default:
return "Default";
default:
return "?";
}
};