Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

Library states

The IRAPI maintains state information about channel activities. These library states prevent applications from overloading telephony hardware and eliminate ambiguities in the library. For example, an idle channel is in the IRS_IDLE library state, and a playing channel is in the IRS_PLAYING library state. Most states indicate the activity currently active on the channel. There are also several state modifiers including:

The irLibState(3IRAPI) function is used to determine the library state of a channel. The irSName(3IRAPI) function returns a character string containing the name of the states and/or modifiers of the library state passed as an argument.

Library states are useful for resolving ambiguities about the ordering of events, such and IRE_INPUT and IRE_PLAY_DONE, or for debugging applications. Applications should not use the library state to drive behavior. Application behavior should be driven by the events that result from asynchronous activities.

© 2006 Avaya Inc. All Rights Reserved.