(Page 29 of 80 in this chapter)
adiLoopbackEvent
Description
- Delivers a pre-built AG Access event to a context.
Prototype
- DWORD adiLoopbackEvent( unsigned drvid,
ADI_EVENT *event )
- drvid Driver ID returned by adiOpenDriver.
- event AG Access event to deliver, with the destination ctahd already set in the event.
Return Values
Events
- None.
Details
- Loops back a pre-built event to a context. Sends an AG Access event into the AG driver to be delivered via adiFetchAndProcess.
- The application builds an ADI_EVENT (see adiFetchAndProcess for a description of this structure) to send. The event is inserted in the driver queue that holds events for the destination context. The event will be received by the thread that is processing events for that driver queue (can be the same thread).
- The pre-built event does not affect the AG Access state machine. For example, a simulated DTMF digit event will not be added to the digit queue or terminate a play function.
Note: You can only send events to contexts in the same process. The timestamp in the received event will contain the time that adiLoopbackEvent was called.
See Also
- adiFetchAndProcess
(Page 29 of 80 in this chapter)
Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights
reserved.