These streaming problems sound really close to the the problem I am having with &#39;Upgrade from 0.5 to 0.8 - No such file or directory&#39;.&nbsp; I&#39;ll make the changes that emiliano did and let you know what happens.<br>
<br>Doug<br><br><div class="gmail_quote">On Fri, Dec 5, 2008 at 12:00 PM,  <span dir="ltr">&lt;<a href="mailto:voiceglue-request@voiceglue.org">voiceglue-request@voiceglue.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send Voiceglue mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:voiceglue-request@voiceglue.org">voiceglue-request@voiceglue.org</a><br>
<br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:voiceglue-owner@voiceglue.org">voiceglue-owner@voiceglue.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Voiceglue digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
 &nbsp; 1. Re: Error in &lt;record&gt; element when the call is hanged up<br>
 &nbsp; &nbsp; &nbsp;(Doug Campbell)<br>
 &nbsp; 2. Re: Weird problem with tts streaming. (Doug Campbell)<br>
 &nbsp; 3. Re: Upgrade from 0.5 to 0.8 - No such file or directory<br>
 &nbsp; &nbsp; &nbsp;(Doug Campbell)<br>
 &nbsp; 4. Re: Weird problem with tts streaming. (emiliano esposito)<br>
 &nbsp; 5. Re: Weird problem with tts streaming. (Andrew Cumming)<br>
 &nbsp; 6. Re: Weird problem with tts streaming. (Doug Campbell)<br>
 &nbsp; 7. Re: Weird problem with tts streaming. (emiliano esposito)<br>
 &nbsp; 8. Re: FIXED - Weird problem with tts streaming. - but now I<br>
 &nbsp; &nbsp; &nbsp;need some hints (emiliano esposito)<br>
 &nbsp; 9. Re: FIXED - Weird problem with tts streaming. - but now I<br>
 &nbsp; &nbsp; &nbsp;need some hints (Doug Campbell)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 04 Dec 2008 13:54:25 -0500<br>
From: Doug Campbell &lt;<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>&gt;<br>
Subject: Re: [Voiceglue] Error in &lt;record&gt; element when the call is<br>
 &nbsp; &nbsp; &nbsp; &nbsp;hanged up<br>
To: General discussion about voiceglue &lt;<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:49382761.9090507@campbellcastle.com">49382761.9090507@campbellcastle.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
&gt; When the call is hanged up in the middle of the recording, the record is<br>
&gt; failed and no HTTP request is sent to the server.<br>
&gt;<br>
&gt; Does VoiceGlue support this scenario?<br>
<br>
Voiceglue should handle this, and it apparently has a bug.<br>
The record status is coming back from Asterisk as a failure,<br>
and voiceglue needs to recognize that this is not a real<br>
recording failure, merely a hangup after a record.<br>
<br>
I&#39;ve put it on the todo list for the next release,<br>
which should be coming soon.<br>
<br>
Doug Campbell<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 04 Dec 2008 14:02:07 -0500<br>
From: Doug Campbell &lt;<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>&gt;<br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: General discussion about voiceglue &lt;<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4938292F.7040304@campbellcastle.com">4938292F.7040304@campbellcastle.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii; format=flowed<br>
<br>
emiliano esposito wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; 15:32:20:1228401 DBUG snd &quot;STREAM FILE voiceglue/tts/Welcome \&quot;\&quot;\n&quot; to<br>
&gt; ::FASTAGI2<br>
&gt; 15:32:20:1228401 DBUG rcv agi(::FASTAGI2): &quot;200 result=0 endpos=0\n&quot;<br>
&gt; 15:32:20:1228401 DBUG callid=[2] AGI result=0 values: endpos=0<br>
&gt; 15:32:20:1228401 WARN callid=[2] failed opening playfile<br>
&gt; &quot;voiceglue/tts/Welcome.wav&quot;<br>
<br>
&gt; This is the error message coming from Asterisk:<br>
&gt;<br>
&gt; WARNING[10407]: file.c:602 ast_openstream_full: File<br>
&gt; voiceglue/tts/Welcome does not exist in any format<br>
&gt;<br>
&gt; What could have been happened? It&#39;s getting me crazy.<br>
<br>
It&#39;s almost certainly a file permission issue.<br>
If you do a long listing of the directories and<br>
files, you should be able to spot the problem.<br>
Voiceglue by default runs as user &quot;voiceglue&quot;<br>
and group &quot;voiceglue&quot;, but the audio files<br>
created by it should be readable by the<br>
asterisk user.<br>
<br>
Doug Campbell<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 04 Dec 2008 14:30:08 -0500<br>
From: Doug Campbell &lt;<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>&gt;<br>
Subject: Re: [Voiceglue] Upgrade from 0.5 to 0.8 - No such file or<br>
 &nbsp; &nbsp; &nbsp; &nbsp;directory<br>
To: General discussion about voiceglue &lt;<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:49382FC0.2060909@campbellcastle.com">49382FC0.2060909@campbellcastle.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
&gt; 20:53:18:387 DBUG SNDCACHE domU-12- pid=4768 done making<br>
&gt; tts/Please_enter_your_pin..wav<br>
&gt; 20:53:18:387 WARN SNDCACHE domU-12-<br>
&gt; /var/lib/asterisk/sounds/voiceglue/tts/Please_enter_your_pin..wav file<br>
&gt; has bad stat: No such file or directory<br>
<br>
It seems that the TTS file is not being generated<br>
and/or recognized properly.<br>
<br>
The TTS file naming anc caching is being re-designed<br>
for the next release of voiceglue.<br>
<br>
Perhaps if you remove the &quot;.&quot; at the end of the TTS<br>
text, or perhaps there is some permission problem.<br>
<br>
Doug Campbell<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 04 Dec 2008 21:47:23 +0100<br>
From: emiliano esposito &lt;<a href="mailto:emiespo@tiscali.it">emiespo@tiscali.it</a>&gt;<br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: <a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a><br>
Message-ID: &lt;<a href="mailto:493841DB.9050203@tiscali.it">493841DB.9050203@tiscali.it</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Doug Campbell ha scritto:<br>
&gt; It&#39;s almost certainly a file permission issue.<br>
&gt; If you do a long listing of the directories and<br>
&gt; files, you should be able to spot the problem.<br>
&gt; Voiceglue by default runs as user &quot;voiceglue&quot;<br>
&gt; and group &quot;voiceglue&quot;, but the audio files<br>
&gt; created by it should be readable by the<br>
&gt; asterisk user.<br>
&gt;<br>
Thank you, I already tried with permission, but maybe didn&#39;t found the<br>
right path.<br>
<br>
Now I&#39;ve changed the owner of both the file and the dir to &quot;asterisk&quot;,<br>
but nothing, then I set as owner first &quot;voiceglue&quot;, then &quot;myself&quot;, still<br>
not working.<br>
<br>
I even deleted the directory, and had it recreated. Now I have:<br>
<br>
# ls -l /var/lib/asterisk/sounds/<br>
<br>
drwxr-xr-x 2 asterisk voiceglue &nbsp;48 2008-09-30 03:20 custom<br>
drwxrwx--- 2 asterisk voiceglue &nbsp;48 2008-12-01 19:44 record<br>
drwxr-xr-x 5 asterisk voiceglue 120 2008-12-04 21:24 voiceglue<br>
<br>
# ls -l /var/lib/asterisk/sounds/voiceglue/tts/<br>
<br>
-rw-rw-rw- 1 voiceglue voiceglue 15724 2008-12-04 21:24 Welcome.wav<br>
-rw-r--r-- 1 voiceglue voiceglue 31404 2008-12-04 21:24<br>
Welcome.wav.16khz.wav<br>
<br>
<br>
But still the same error from Asterisk:<br>
<br>
[Dec &nbsp;4 21:42:10] WARNING[9137]: file.c:602 ast_openstream_full: File<br>
voiceglue/tts/Welcome does not exist in any format<br>
<br>
<br>
Did I miss something?<br>
<br>
Thank you again.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 5 Dec 2008 07:52:50 +0900<br>
From: &quot;Andrew Cumming&quot; &lt;<a href="mailto:andrewc@kestral.com.au">andrewc@kestral.com.au</a>&gt;<br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: &quot;General discussion about voiceglue&quot; &lt;<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>&gt;<br>
Message-ID: &lt;9E023949C7A9084C8F052B8E47CBE7002DE991@sbs.kestral.local&gt;<br>
Content-Type: text/plain; &nbsp; &nbsp; &nbsp; charset=&quot;us-ascii&quot;<br>
<br>
What you may want to do is to &quot;su asterisk&quot; and see if you can get to<br>
the files yourself. I found that an easier way to check if asterisk was<br>
having a permissions problem (which it was for me) and then worked to<br>
resolve it. Sorry, but I don&#39;t recall exactly what I did and I didn&#39;t<br>
report it as I thought it was something I had done during installation.<br>
<br>
Regards,<br>
Andrew<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:voiceglue-bounces@voiceglue.org">voiceglue-bounces@voiceglue.org</a><br>
[mailto:<a href="mailto:voiceglue-bounces@voiceglue.org">voiceglue-bounces@voiceglue.org</a>] On Behalf Of emiliano esposito<br>
Sent: Friday, 5 December 2008 5:47 AM<br>
To: <a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a><br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
<br>
Doug Campbell ha scritto:<br>
&gt; It&#39;s almost certainly a file permission issue.<br>
&gt; If you do a long listing of the directories and<br>
&gt; files, you should be able to spot the problem.<br>
&gt; Voiceglue by default runs as user &quot;voiceglue&quot;<br>
&gt; and group &quot;voiceglue&quot;, but the audio files<br>
&gt; created by it should be readable by the<br>
&gt; asterisk user.<br>
&gt;<br>
Thank you, I already tried with permission, but maybe didn&#39;t found the<br>
right path.<br>
<br>
Now I&#39;ve changed the owner of both the file and the dir to &quot;asterisk&quot;,<br>
but nothing, then I set as owner first &quot;voiceglue&quot;, then &quot;myself&quot;, still<br>
<br>
not working.<br>
<br>
I even deleted the directory, and had it recreated. Now I have:<br>
<br>
# ls -l /var/lib/asterisk/sounds/<br>
<br>
drwxr-xr-x 2 asterisk voiceglue &nbsp;48 2008-09-30 03:20 custom<br>
drwxrwx--- 2 asterisk voiceglue &nbsp;48 2008-12-01 19:44 record<br>
drwxr-xr-x 5 asterisk voiceglue 120 2008-12-04 21:24 voiceglue<br>
<br>
# ls -l /var/lib/asterisk/sounds/voiceglue/tts/<br>
<br>
-rw-rw-rw- 1 voiceglue voiceglue 15724 2008-12-04 21:24 Welcome.wav<br>
-rw-r--r-- 1 voiceglue voiceglue 31404 2008-12-04 21:24<br>
Welcome.wav.16khz.wav<br>
<br>
<br>
But still the same error from Asterisk:<br>
<br>
[Dec &nbsp;4 21:42:10] WARNING[9137]: file.c:602 ast_openstream_full: File<br>
voiceglue/tts/Welcome does not exist in any format<br>
<br>
<br>
Did I miss something?<br>
<br>
Thank you again.<br>
_______________________________________________<br>
Voiceglue mailing list<br>
<a href="mailto:Voiceglue@voiceglue.org">Voiceglue@voiceglue.org</a><br>
<a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Thu, 04 Dec 2008 19:11:09 -0500<br>
From: Doug Campbell &lt;<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>&gt;<br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: General discussion about voiceglue &lt;<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4938719D.5030504@campbellcastle.com">4938719D.5030504@campbellcastle.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
I just remembered that in newer voiceglue versions I<br>
changed the TTS handler to translate the output of<br>
flite because it was being packaged to output a<br>
different default format. &nbsp;That&#39;s probably what&#39;s<br>
causing the problem. &nbsp;I&#39;ll send more details on this<br>
later when I have a few moments.<br>
<br>
Doug Campbell<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Fri, 05 Dec 2008 11:12:04 +0100<br>
From: emiliano esposito &lt;<a href="mailto:emiespo@tiscali.it">emiespo@tiscali.it</a>&gt;<br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: General discussion about voiceglue &lt;<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4938FE74.8010102@tiscali.it">4938FE74.8010102@tiscali.it</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Doug Campbell ha scritto:<br>
&gt; I just remembered that in newer voiceglue versions I<br>
&gt; changed the TTS handler to translate the output of<br>
&gt; flite because it was being packaged to output a<br>
&gt; different default format. &nbsp;That&#39;s probably what&#39;s<br>
&gt; causing the problem. &nbsp;I&#39;ll send more details on this<br>
&gt; later when I have a few moments.<br>
&gt;<br>
Thanks for your interest. Meanwhile I&#39;m investigating further, and found<br>
this:<br>
<br>
<a href="http://www.voip-info.org/wiki/view/Asterisk+can%27t+find+sound+files" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+can%27t+find+sound+files</a><br>
<br>
the command:<br>
<br>
|show file formats<br>
<br>
<br>
<br>
reports 19 active codecs...|<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Fri, 05 Dec 2008 11:25:49 +0100<br>
From: emiliano esposito &lt;<a href="mailto:emiespo@tiscali.it">emiespo@tiscali.it</a>&gt;<br>
Subject: Re: [Voiceglue] FIXED - Weird problem with tts streaming. -<br>
 &nbsp; &nbsp; &nbsp; &nbsp;but now I need some hints<br>
To: General discussion about voiceglue &lt;<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:493901AD.4000801@tiscali.it">493901AD.4000801@tiscali.it</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
I brutally changed this in phoneglue:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;$bytes = join (&quot; &quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;STREAM FILE&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $filename,<br>
<br>
to this:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;$bytes = join (&quot; &quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;STREAM FILE&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;/var/lib/asterisk/sounds/&quot;.$filename,<br>
<br>
and now it works. So Asterisk was simply looking somewhere else (a thing<br>
I would have discovered in no time with a program like FileMon...)!!<br>
<br>
Now I kindly ask you, why did this happen? Does some configuration file<br>
need to be fixed?<br>
<br>
thank you.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Fri, 05 Dec 2008 10:12:14 -0500<br>
From: Doug Campbell &lt;<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>&gt;<br>
Subject: Re: [Voiceglue] FIXED - Weird problem with tts streaming. -<br>
 &nbsp; &nbsp; &nbsp; &nbsp;but now I need some hints<br>
To: General discussion about voiceglue &lt;<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:493944CE.8060807@campbellcastle.com">493944CE.8060807@campbellcastle.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
emiliano esposito wrote:<br>
&gt; I brutally changed this in phoneglue:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; $bytes = join (&quot; &quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;STREAM FILE&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$filename,<br>
&gt;<br>
&gt; to this:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; $bytes = join (&quot; &quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;STREAM FILE&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;/var/lib/asterisk/sounds/&quot;.$filename,<br>
&gt;<br>
&gt; and now it works. So Asterisk was simply looking somewhere else (a thing<br>
&gt; I would have discovered in no time with a program like FileMon...)!!<br>
<br>
You probably want to use strace.<br>
<br>
&gt; Now I kindly ask you, why did this happen? Does some configuration file<br>
&gt; need to be fixed?<br>
<br>
If asterisk isn&#39;t looking in /var/lib/asterisk/sounds for audio files,<br>
where the heck is it looking??? &nbsp;The /var/lib/asterisk/sounds location<br>
is quite standard, and is always reported as such in the docs.<br>
I would be most interested if you could run an strace to see<br>
where asterisk is looking in the original failure case.<br>
<br>
Doug Campbell<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Voiceglue mailing list<br>
<a href="mailto:Voiceglue@voiceglue.org">Voiceglue@voiceglue.org</a><br>
<a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
<br>
<br>
End of Voiceglue Digest, Vol 17, Issue 6<br>
****************************************<br>
</blockquote></div><br>