File not found

Hi;

I am trying to run the dtmf file. I get the error below. If I ls the directory I find the txt refered to /usr/local/share/asterisk/tmp/text2wav_f87b365372c500c76e497087ac7e470a.txt

So, otherwise a bit lost. I am using phpagi2.14. Asterist installd from ports on freebsd.

CLI and script are belo, hope someone has an idea for me…

Thanks in advance.

TimS

CLI output:
Apr 24 01:08:47 WARNING[55858]: file.c:509 ast_openstream_full: File /usr/local/share/asterisk/tmp/text2wav_f87b365372c500c76e497087ac7e470a does not exist in any format

dtmf file:
#!/usr/local/bin/php -q

<?php ob_implicit_flush(false); error_reporting(0); set_time_limit(30); include('/usr/local/etc/asterisk/phpagi.conf'); require('/usr/www/phpagi/phpagi-2.14/phpagi.php'); error_reporting(E_ALL); $agi = new AGI(); $agi->answer(); $cid = $agi->parse_callerid(); $agi->text2wav("Hello, {$cid['name']}."); do { $agi->text2wav('Enter some numbers and then press the pound key. Press 1 1 $ $result = $agi->get_data('beep', 3000, 20); $keys = $result['result']; $agi->text2wav("You entered $keys"); } while($keys != '111'); $agi->text2wav('Goodbye'); $agi->hangup(); ?>

I have continued reviewing, I think the problem might be as simple as the wav is not being created.

But, the problem is still now to create it.

This is my phpagi.conf gile
[festival]
text2wave=/usr/local/share/festival/examples/text2wave
tempdir=/usr/local/share/asterisk/tmp/

Relevant part from phpagi.php
define(‘AST_CONFIG_DIR’, ‘/usr/local/etc/asterisk/’);
define(‘AST_SPOOL_DIR’, ‘/usr/local/share/asterisk’);
define(‘AST_TMP_DIR’, AST_SPOOL_DIR . ‘/tmp’);
define(‘DEFAULT_PHPAGI_CONFIG’, AST_CONFIG_DIR . ‘/phpagi.conf’);