Re: [Asterisk-java-users] Application Control via Manager API
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-07-01 16:31:31
|
Hi Michael, what you want to do seems to me like a kind of IVR, right? If thats the case it's better to use FastAGI than the Manager API. Have a look at the HelloAGI example in the tutorial available at http://asterisk-java.sourceforge.net/tutorial.html. Using FastAGI you can play prompts to the user (via the streamFile method of AbstractAGIScript) and read user input, i.e. touch tones. The method=20 streamFile(channel, file, escapeDigits) returns the digit the user pressed while playing the file. If you also need to receive digits after the streaming you can send an WaitForDigitCommand to wait for the user to press a key. Hope that helps you get started. =3DStefan |