Simulating events on the channel process

While testing a voice application, you may need to simulate external events repeatedly. You can use the CA_Simulate_Hangup() subroutine to simulate a hang up on a specified channel, and CA_Simulate_Keys() to simulate pressing a series of DTMF keys. To simulate the two-key sequences interpreted as letters by the GetText state table action, use CA_Simulate_Alphas().

To use these subroutines, you need to identify the physical channel associated with the channel process running the state table. The CA_Get_Channel_Info() subroutine is provided for this purpose.