Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

Execing applications on channels

A process executes or "execs" another process on a channel via an irExec(3IRAPI) function. Channels may be irExec'd to permanent or transient processes. Permanent process are typically multi-channel applications run from inittab. Transient processes are exec(2)'d by the irExec function and typically exit(2) when the call, or their portion of it, completes.

Ownership of the channel is relinquished by the current owner with an irExec. Once an irExec function is called, the calling process must stop using the channel_id. As was discussed earlier, AD irExec's channels based on application assignments.

Channel ownership is made available immediately to the irExec'd application. After receiving the IRE_EXEC event, the channel should be initialized immediately via irInit(3IRAPI).

Parameters may be used to allow the child process to run in a context similar to the parent process. Also, the following parameters may be used to allow the parent process to pass data to the child process:

Many IRAPI parameters and parameter values are saved across irExec boundaries. Any resources explicitly allocated by irReserveResource(3IRAPI) are saved across irExec boundaries. Half bridges [irHBridge(3IRAPI)] remain active across irExec boundaries. Echo cancellation [irEcho(3IRAPI)] remains on.

© 2006 Avaya Inc. All Rights Reserved.