zaf / asterisk-googletts

Asterisk AGI script that uses Google's translate text to speech service.
GNU General Public License v2.0
214 stars 125 forks source link

AGI script dies without playback #1

Closed juradoz closed 12 years ago

juradoz commented 12 years ago

Script returns 0 without playback. The file isnt created on /tmp/ cache.

Asterisk 1.8.8.2 perl v5.8.8

Asterisk debug: -- Executing [inicio@URA:1] AGI("SIP/gw114.phono.com-00000014", "googletts.agi,"This is a simple google text to speech test in english.",en") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi <SIP/gw114.phono.com-00000014>AGI Tx >> agi_request: googletts.agi <SIP/gw114.phono.com-00000014>AGI Tx >> agi_channel: SIP/gw114.phono.com-00000014 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_language: en <SIP/gw114.phono.com-00000014>AGI Tx >> agi_type: SIP <SIP/gw114.phono.com-00000014>AGI Tx >> agi_uniqueid: 1328211461.20 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_version: 1.8.8.2 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_callerid: f4450186-bd63-4bff-b427-80aad3f07474 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_calleridname: unknown <SIP/gw114.phono.com-00000014>AGI Tx >> agi_callingpres: 0 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_callingani2: 0 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_callington: 0 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_callingtns: 0 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_dnid: 2000 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_rdnis: unknown <SIP/gw114.phono.com-00000014>AGI Tx >> agi_context: URA <SIP/gw114.phono.com-00000014>AGI Tx >> agi_extension: inicio <SIP/gw114.phono.com-00000014>AGI Tx >> agi_priority: 1 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_enhanced: 0.0 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_accountcode: <SIP/gw114.phono.com-00000014>AGI Tx >> agi_threadid: 1079167296 <SIP/gw114.phono.com-00000014>AGI Tx >> agi_arg_1: This is a simple google text to speech test in english. <SIP/gw114.phono.com-00000014>AGI Tx >> agi_arg_2: en <SIP/gw114.phono.com-00000014>AGI Tx >> -- <SIP/gw114.phono.com-00000014>AGI Script googletts.agi completed, returning 0 -- Executing [inicio@URA:2] WaitExten("SIP/gw114.phono.com-00000014", "30") in new stack

zaf commented 12 years ago

This output isnt really helpfull, try to enable the debugging mechanism of the script by setting the $debug variable to 1. Also make sure u have installed all the required programs and perl libs that are listed in the README file.

juradoz commented 12 years ago

I`m suspecting of some issue about asterisk 1.8 agi handling. The script works well if asterisk is started out of safe_asterisk script.

Working on it...

juradoz commented 12 years ago

Just in case, I've figured it out: everything works fine with selinux is disabled. Now i'm disabling it by default.