RE: [Asterisk-java-users] Problem with some commands and manager
Brought to you by:
srt
From: Jason W. <jas...@be...> - 2006-02-21 16:40:37
|
check the app_system.c file, but off the top of my head, I think it returns whatever the system call returns, i.e. if you do fileexists, it returns false if there is no file. -----Original Message----- From: ast...@li... [mailto:ast...@li...]On Behalf Of María Chóliz Sent: Tuesday, February 21, 2006 11:21 AM To: ast...@li... Subject: Re: [Asterisk-java-users] Problem with some commands and manager OK, but How can I know what System returned??? Thanks in advance, María 2006/2/21, Jason Wolfe <jas...@be...>: Using festival in that way is a bad idea because a keypress will interrupt 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ía Chóliz 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 => 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 => 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ía Chóliz 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 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ía -- María -- María |