In addition to using the IRAPI library state to track the telephony activity occurring on a channel, the IRAPI library tracks the service state of the channel. irServiceState(3IRAPI) returns the current service state of the channel. The possible service states include:
The possible service states are described in the online instructions on the system about irServiceState(3IRAPI). By properly handling events as they occur, an application seldom needs to determine the library state or service state for the channel it is controlling.