Re: [Asterisk-java-devel] Use '*' as escape digits while streamFile
Brought to you by:
srt
From: Khanh P. N. <pn...@gm...> - 2008-09-18 17:55:47
|
Hi Hoai Anh, I did the same thing as your. But when I pressed '*' it did'nt work out meanwhile number key worked correctly. I will try again and let you know the result. Thanks a lot Khanh On Thu, Sep 18, 2008 at 2:22 PM, Ngo-Vi Hoai-Anh <ho...@gm...> wrote: > Hi, > > don't know what your problem might be. StreamFile with escape '*' works > fine for me. > > I use streamFile like > > import org.asteriskjava.fastagi.AgiChannel; > import org.asteriskjava.fastagi.AgiException; > import org.asteriskjava.fastagi.AgiRequest; > import org.asteriskjava.fastagi.BaseAgiScript; > > public class HelloAgiScript extends BaseAgiScript > { > public void service(AgiRequest request, AgiChannel channel) > throws AgiException > { > answer(); > streamFile("demo-congrats", "*1234"); > hangup(); > } > } > > > regards > > Khanh Pham Ngoc schrieb: > > 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 > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Asterisk-java-devel mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > |