Source: firewallpolicy.js

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

var linphone = linphone || {};
/**
 * Policy to use to pass through firewalls. 
 * @readonly
 * @enum {number}
**/
linphone.FirewallPolicy = {
	/**
	 * Do not use any mechanism to pass through firewalls 
	*/
	NoFirewall : 0,
	/**
	 * Use the specified public adress 
	*/
	UseNatAddress : 1,
	/**
	 * Use a STUN server to get the public address 
	*/
	UseStun : 2,
	/**
	 * Use the ICE protocol 
	*/
	UseIce : 3,
	/**
	 * Use the uPnP protocol 
	*/
	UseUpnp : 4
};
/**
 * Get the name of a value of the FirewallPolicy enum as a string.
 * @function linphone#getFirewallPolicyText
 * @param { number } value - One of the values of the FirewallPolicy enum.
**/
linphone.getFirewallPolicyText = function(value) {
	switch (value) {
	case linphone.FirewallPolicy.NoFirewall:
		return "NoFirewall";
	case linphone.FirewallPolicy.UseNatAddress:
		return "UseNatAddress";
	case linphone.FirewallPolicy.UseStun:
		return "UseStun";
	case linphone.FirewallPolicy.UseIce:
		return "UseIce";
	case linphone.FirewallPolicy.UseUpnp:
		return "UseUpnp";
	default:
		return "?";
	}
};