Re: [Asterisk-java-users] Problem with some commands and manager
Brought to you by:
srt
From: <mar...@gm...> - 2006-02-21 15:02:23
|
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 if = it > didn't work. I mean, how can know if the file I am telling Asterisk to p= lay > 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 |