/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* Enum describing ICE states.
* @readonly
* @enum {number}
**/
linphone.IceState = {
/**
* ICE has not been activated for this call or stream
*/
NotActivated : 0,
/**
* ICE processing has failed
*/
Failed : 1,
/**
* ICE process is in progress
*/
InProgress : 2,
/**
* ICE has established a direct connection to the remote host
*/
HostConnection : 3,
/**
* ICE has established a connection to the remote host through one or several NATs
*/
ReflexiveConnection : 4,
/**
* ICE has established a connection through a relay
*/
RelayConnection : 5
};
/**
* Get the name of a value of the IceState enum as a string.
* @function linphone#getIceStateText
* @param { number } value - One of the values of the IceState enum.
**/
linphone.getIceStateText = function(value) {
switch (value) {
case linphone.IceState.NotActivated:
return "NotActivated";
case linphone.IceState.Failed:
return "Failed";
case linphone.IceState.InProgress:
return "InProgress";
case linphone.IceState.HostConnection:
return "HostConnection";
case linphone.IceState.ReflexiveConnection:
return "ReflexiveConnection";
case linphone.IceState.RelayConnection:
return "RelayConnection";
default:
return "?";
}
};