/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* Enum describing uPnP states.
* @readonly
* @enum {number}
**/
linphone.UpnpState = {
/**
* uPnP is not activate
*/
Idle : 0,
/**
* uPnP process is in progress
*/
Pending : 1,
/**
* Internal use: Only used by port binding
*/
Adding : 2,
/**
* Internal use: Only used by port binding
*/
Removing : 3,
/**
* uPnP is not available
*/
NotAvailable : 4,
/**
* uPnP is enabled
*/
Ok : 5,
/**
* uPnP processing has failed
*/
Ko : 6,
/**
* IGD router is blacklisted
*/
Blacklisted : 7
};
/**
* Get the name of a value of the UpnpState enum as a string.
* @function linphone#getUpnpStateText
* @param { number } value - One of the values of the UpnpState enum.
**/
linphone.getUpnpStateText = function(value) {
switch (value) {
case linphone.UpnpState.Idle:
return "Idle";
case linphone.UpnpState.Pending:
return "Pending";
case linphone.UpnpState.Adding:
return "Adding";
case linphone.UpnpState.Removing:
return "Removing";
case linphone.UpnpState.NotAvailable:
return "NotAvailable";
case linphone.UpnpState.Ok:
return "Ok";
case linphone.UpnpState.Ko:
return "Ko";
case linphone.UpnpState.Blacklisted:
return "Blacklisted";
default:
return "?";
}
};