RE: [Asterisk-java-users] Interrupting StreamFile with DTMF digits.
Brought to you by:
srt
From: John M. <jo...@sy...> - 2006-01-11 18:03:13
|
Hi Stefan, I have upgraded to 0.2 on Asterisk 1.0.9 and I have the same problems. I also tried other escape characters such as 1, 2, etc. Using the AGI debugging I notice the AGI command used has the following syntax. >>> STREAM FILE "myprompt" "1" where the digit "1" is the valid escape digit. I found the following example in the AGI Help ... STREAM FILE welcome # Plays the file 'welcome'. If the user presses the '#' key the playing stops and the command returns 200 result=35 Note Don't give an extension with the filename. Asterisk looks for the file to play in /var/lib/asterisk/sounds Use double quotes if the message should play completely. For example to play audio file 'welcome' without allowing interruption by digits use: STREAM FILE welcome "" The last comment might suggest that the quotes around the escape digits might lead the interpreter to play the file fully as the previous example does not have any quotes on the escape digit. Does anyone have an example of a working AGI STREAM FILE command with escape digits provided. thanks for any help, regards, John. -----Original Message----- From: ast...@li... [mailto:ast...@li...]On Behalf Of Stefan Reuter Sent: 16 December 2005 12:01 To: ast...@li... Subject: Re: [Asterisk-java-users] Interrupting StreamFile with DTMF digits. John Melody schrieb: > Yes, Jonathan, I am receiving DTMF happily in the rest of the application. > However, all the rest of the DTMF input takes place in extension.conf. It > appears to be only when the application is in the FastAGI script that it > does not recognise the DTMF tones. > > Is there anything that has to be enabled to pass DTMF digits to AGI? no it usually "just works" :) I would suggest you to use the latest release of Asterisk-Java (i.e. 0.2) and try to reproduce the problem with that version. And you could try to allow other dtmf digits to be pressed like streamFile("myprompt", "1234"); =Stefan |