Are you sure you want to fire up a JVM each and every time you run this
command? that's a resource hog and will anyway cause a delay for system
class loading, etc. Maybe attaching to a resident process would be lighter.
k,
On Fri, 22 Dec 2006 13:48:27 +0100, Andre Gustavo Lomonaco
<[EMAIL PROTECTED]> wrote:
Hi,
I created a script named example2.sh which goal is read some text from
my HP Service Desk using an application in java and send this text to
the text2wave application for TTS.
example2.sh
java -Xbatch Example10 | text2wave -f 8000 -o
/var/lib/asterisk/sounds/my-sd.wav
When I execute the script in prompt, everything is ok, but when I use
the system() command in my
extensions.conf it isnĀ“t work, just a small file my-sd.wav is created.
Here my extensions.conf configuration
;testing text2wav
exten => 666,1,Answer
exten => 666,2,system(/root/example2.sh >> /root/log.txt )
exten => 666,3,system(echo "${SYSTEMSTATUS}" >> /root/log.txt)
exten => 666,4,wait(10)
exten => 666,5,Playback(my-sd)
exten => 666,6,Hangup
And here the logging by Asterisk..
Connected to Asterisk 1.2.13 currently running on fedora (pid = 1951)
Verbosity is at least 3
-- Remote UNIX connection
-- Executing Answer("SIP/lomonaco-0945fd18", "") in new stack
-- Executing System("SIP/lomonaco-0945fd18", "/root/example2.sh >>
/root/log.txt ") in new stack
-- Executing System("SIP/lomonaco-0945fd18", "echo "SUCCESS" >>
/root/log.txt") in new stack
-- Executing Wait("SIP/lomonaco-0945fd18", "10") in new stac
Any help or tip
Thanks in Advanced
Andre Lomonaco
--
Loway Research - Home of QueueMetrics
http://queuemetrics.loway.it
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users