Re: [Asterisk-java-users] Problem with some commands and manager
Brought to you by:
srt
From: <mar...@gm...> - 2006-02-21 16:21:12
|
OK, but How can I know what System returned??? Thanks in advance, Mar=EDa 2006/2/21, Jason Wolfe <jas...@be...>: > > Using festival in that way is a bad idea because a keypress will interrup= t > the stream. As well, you have no way of knowing if it worked. > > I'd use system to call festival to write a wav file, then use system to > verify that the file was created, maybe even checking file size, then use > background to play it back. > > > Jason > > -----Original Message----- > *From:* ast...@li... [mailto: > ast...@li...]*On Behalf Of *Mar=EDa > Ch=F3liz > *Sent:* Tuesday, February 21, 2006 10:02 AM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] Problem with some commands and > manager > > Thanks for your help. > > I have checked out the tutorial and checked the application, > > at this time my dial plan looks like: > > exten =3D> s,9,System(/usr/bin/festival 'Hello World') > > but how can i know if the 'System' command failed ??? > > Thanks in advance, > > > > 2006/2/21, Jason Wolfe <jas...@be...>: > > > > Use the system() command to see if the file exists. > > > > something like... > > exten =3D> s,9,System(/var/lib/asterisk/sounds/filexists > > /var/lib/asterisk/sounds/${myPlaybackFile}?.gsm) > > > > check out the usage in this tutorial... > > > > http://www.voip-info.org/wiki-Asterisk+tips+ivr+menu > > > > jason > > > > -----Original Message----- > > *From:* ast...@li... [mailto: > > ast...@li...]*On Behalf Of *Mar=EDa > > Ch=F3liz > > *Sent:* Tuesday, February 21, 2006 2:50 AM > > *To:* ast...@li... > > *Subject:* [Asterisk-java-users] Problem with some commands and manager > > > > Hello, > > > > I have a question. > > I am working with the Java-Manager. In my dialplan I use the > > Playback(....) command but I don't know how to get from the Java code i= f it > > didn't work. I mean, how can know if the file I am telling Asterisk to= play > > does not exist, for example???or the format is not right??? > > > > Is there any event I can capture?I haven`t found any. > > I don't know how to do this. > > > > Thanks in advance, > > > > Mar=EDa > > > > > > > -- > Mar=EDa > > -- Mar=EDa |