[asterisk-users] AGI script that uses google's text to speech engine

Lefteris Zafiris zaf.000 at gmail.com
Thu Dec 1 18:39:26 CST 2011


On Thu, 1 Dec 2011 23:23:56 +0100
Torbjörn Abrahamsson <torbjorn.abrahamsson at gmail.com> wrote:

> 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
> 
It seems this is an issue with older versions of perl or at least with
5.8.8. Since this version is used in RHEL/CentOS 5.x that many people
run on their servers, this is a serious problem.

Changing the way tempfile() is called from: 
tempfile("ggl_XXXXXX", TMPDIR => 1, UNLINK => 1)
to:
tempfile("ggl_XXXXXX", DIR => $tmpdir, UNLINK => 1)
seems to address this issue.

An updated version including this fix can be obtained here:
http://github.com/zaf/asterisk-googletts/tarball/master

----------------
Lefteris Zafiris



More information about the asterisk-users mailing list