Channel management involves operations that affect the ownership of channels and the passing of ownership from one channel to another. Except for very short intervals when the channel ownership is being transferred from one channel to another, all channels must be owned by some process. Only the channel owner may affect the behavior or the activities of a channel. Processes may compete for channel ownership and may wait for channel ownership as they would any other resources. Processes have some control over when channels may be taken away from them; however, maintenance processes may remove channels forcibly from other processes.
The channel_id (cid) discussed throughout this section is used by the IRAPI to associate a channel to its pertinent information. Specific functions convert channel numbers to channel_id's and channel_id's to channel numbers.