/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* LinphoneCallState enum represents the different state a call can reach into. The application is notified
* of state changes through the
* @readonly
* @enum {number}
**/
linphone.CallState = {
/**
* Initial call state
*/
Idle : 0,
/**
* This is a new incoming call
*/
IncomingReceived : 1,
/**
* An outgoing call is started
*/
OutgoingInit : 2,
/**
* An outgoing call is in progress
*/
OutgoingProgress : 3,
/**
* An outgoing call is ringing at remote end
*/
OutgoingRinging : 4,
/**
* An outgoing call is proposed early media
*/
OutgoingEarlyMedia : 5,
/**
* Connected, the call is answered
*/
Connected : 6,
/**
* The media streams are established and running
*/
StreamsRunning : 7,
/**
* The call is pausing at the initiative of local end
*/
Pausing : 8,
/**
* The call is paused, remote end has accepted the pause
*/
Paused : 9,
/**
* The call is being resumed by local end
*/
Resuming : 10,
/**
* The call is being transfered to another party, resulting in a new outgoing call to follow immediately
*
*/
Refered : 11,
/**
* The call encountered an error
*/
Error : 12,
/**
* The call ended normally
*/
End : 13,
/**
* The call is paused by remote end
*/
PausedByRemote : 14,
/**
* The call's parameters change is requested by remote end, used for example when video is added by remote
*
*/
UpdatedByRemote : 15,
/**
* We are proposing early media to an incoming call
*/
IncomingEarlyMedia : 16,
/**
* A call update has been initiated by us
*/
Updating : 17,
/**
* The call object is no more retained by the core
*/
Released : 18,
EarlyUpdatedByRemote : 19,
EarlyUpdating : 20
};
/**
* Get the name of a value of the CallState enum as a string.
* @function linphone#getCallStateText
* @param { number } value - One of the values of the CallState enum.
**/
linphone.getCallStateText = function(value) {
switch (value) {
case linphone.CallState.Idle:
return "Idle";
case linphone.CallState.IncomingReceived:
return "IncomingReceived";
case linphone.CallState.OutgoingInit:
return "OutgoingInit";
case linphone.CallState.OutgoingProgress:
return "OutgoingProgress";
case linphone.CallState.OutgoingRinging:
return "OutgoingRinging";
case linphone.CallState.OutgoingEarlyMedia:
return "OutgoingEarlyMedia";
case linphone.CallState.Connected:
return "Connected";
case linphone.CallState.StreamsRunning:
return "StreamsRunning";
case linphone.CallState.Pausing:
return "Pausing";
case linphone.CallState.Paused:
return "Paused";
case linphone.CallState.Resuming:
return "Resuming";
case linphone.CallState.Refered:
return "Refered";
case linphone.CallState.Error:
return "Error";
case linphone.CallState.End:
return "End";
case linphone.CallState.PausedByRemote:
return "PausedByRemote";
case linphone.CallState.UpdatedByRemote:
return "UpdatedByRemote";
case linphone.CallState.IncomingEarlyMedia:
return "IncomingEarlyMedia";
case linphone.CallState.Updating:
return "Updating";
case linphone.CallState.Released:
return "Released";
case linphone.CallState.EarlyUpdatedByRemote:
return "EarlyUpdatedByRemote";
case linphone.CallState.EarlyUpdating:
return "EarlyUpdating";
default:
return "?";
}
};