[Asterisk-java-devel] Use '*' as escape digits while streamFile
Brought to you by:
srt
From: Khanh P. N. <pn...@gm...> - 2008-09-17 18:35:49
|
Hi all, I have a requirement as following: Write a Agi extends from BaseAgiScript. When this agi receive AgiRequest, it will play a list of GSM files. And while playing these files, if user presses key "*", the script will be ended. If user presses "2", it will play the next file. And if user presses "3", it will replay the current file. As the description of AgiChannel.streamFile, I think the escape digits are 0,1,2,3,4,5,6,7,8,9. Now I want escape key includes '*' as well. I tried to set the escapseDigits = "*234" but it didn't work. When I press 2,3, or 4, the streamFile(...) stop. But when I press "*", it do nothing. Could anyone show me how to solve my requirement? Thanks a lot, Khanh |