[asterisk-users] AGI script that uses google's text to speech engine
Torbjörn Abrahamsson
torbjorn.abrahamsson at gmail.com
Thu Dec 1 16:23:56 CST 2011
This was run on an Fedora 8 machine, with perl 5.8.8. I also found it odd that the path was not included...
// T
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Lefteris Zafiris
Sent: den 1 december 2011 22:48
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] AGI script that uses google's text to speech engine
On Thu, 1 Dec 2011 21:51:21 +0100
Torbjörn Abrahamsson <torbjorn.abrahamsson at gmail.com> wrote:
> This is because you need to add /tmp to the STREAM command, ie:
>
> print "STREAM FILE /tmp/$tmpname \"$intkey\"\n";
>
> $tmpname seems to not contain the path, so it will look in
> /var/lib/asterisk/sounds for the file...
>
> This at least made it work for me... (After fixing some other things
> to make it work with asterisk 1.2...)
>
> BR,
> Torbjörn Abrahamsson
>
$tmpname is "supposed" to include the full path together with the temp
dir since its created with the option 'TMPDIR => 1' during the call of
tempfile() and it does so in my system that runs perl 5.14.2. I guess
that might not be true for older versions of perl(?)
Can you please tell me what version of perl you are using?
The oldest perl I can get my hands on is 5.8.8 on RHEL 5.x machines.
I will try to test there and see whats going on.
Thanks for the feedback.
----------------
Lefteris Zafiris
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list