These streaming problems sound really close to the the problem I am having with 'Upgrade from 0.5 to 0.8 - No such file or directory'. I'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"><<a href="mailto:voiceglue-request@voiceglue.org">voiceglue-request@voiceglue.org</a>></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>
<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<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 'help' to<br>
<a href="mailto:voiceglue-request@voiceglue.org">voiceglue-request@voiceglue.org</a><br>
<br>
You can reach the person managing the list at<br>
<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 "Re: Contents of Voiceglue digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Error in <record> element when the call is hanged up<br>
(Doug Campbell)<br>
2. Re: Weird problem with tts streaming. (Doug Campbell)<br>
3. Re: Upgrade from 0.5 to 0.8 - No such file or directory<br>
(Doug Campbell)<br>
4. Re: Weird problem with tts streaming. (emiliano esposito)<br>
5. Re: Weird problem with tts streaming. (Andrew Cumming)<br>
6. Re: Weird problem with tts streaming. (Doug Campbell)<br>
7. Re: Weird problem with tts streaming. (emiliano esposito)<br>
8. Re: FIXED - Weird problem with tts streaming. - but now I<br>
need some hints (emiliano esposito)<br>
9. Re: FIXED - Weird problem with tts streaming. - but now I<br>
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 <<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>><br>
Subject: Re: [Voiceglue] Error in <record> element when the call is<br>
hanged up<br>
To: General discussion about voiceglue <<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>><br>
Message-ID: <<a href="mailto:49382761.9090507@campbellcastle.com">49382761.9090507@campbellcastle.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
> When the call is hanged up in the middle of the recording, the record is<br>
> failed and no HTTP request is sent to the server.<br>
><br>
> 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'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 <<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>><br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: General discussion about voiceglue <<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>><br>
Message-ID: <<a href="mailto:4938292F.7040304@campbellcastle.com">4938292F.7040304@campbellcastle.com</a>><br>
Content-Type: text/plain; charset=us-ascii; format=flowed<br>
<br>
emiliano esposito wrote:<br>
> Hi all,<br>
><br>
> 15:32:20:1228401 DBUG snd "STREAM FILE voiceglue/tts/Welcome \"\"\n" to<br>
> ::FASTAGI2<br>
> 15:32:20:1228401 DBUG rcv agi(::FASTAGI2): "200 result=0 endpos=0\n"<br>
> 15:32:20:1228401 DBUG callid=[2] AGI result=0 values: endpos=0<br>
> 15:32:20:1228401 WARN callid=[2] failed opening playfile<br>
> "voiceglue/tts/Welcome.wav"<br>
<br>
> This is the error message coming from Asterisk:<br>
><br>
> WARNING[10407]: file.c:602 ast_openstream_full: File<br>
> voiceglue/tts/Welcome does not exist in any format<br>
><br>
> What could have been happened? It's getting me crazy.<br>
<br>
It'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 "voiceglue"<br>
and group "voiceglue", 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 <<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>><br>
Subject: Re: [Voiceglue] Upgrade from 0.5 to 0.8 - No such file or<br>
directory<br>
To: General discussion about voiceglue <<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>><br>
Message-ID: <<a href="mailto:49382FC0.2060909@campbellcastle.com">49382FC0.2060909@campbellcastle.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
> 20:53:18:387 DBUG SNDCACHE domU-12- pid=4768 done making<br>
> tts/Please_enter_your_pin..wav<br>
> 20:53:18:387 WARN SNDCACHE domU-12-<br>
> /var/lib/asterisk/sounds/voiceglue/tts/Please_enter_your_pin..wav file<br>
> 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 "." 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 <<a href="mailto:emiespo@tiscali.it">emiespo@tiscali.it</a>><br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: <a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a><br>
Message-ID: <<a href="mailto:493841DB.9050203@tiscali.it">493841DB.9050203@tiscali.it</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Doug Campbell ha scritto:<br>
> It'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 "voiceglue"<br>
> and group "voiceglue", but the audio files<br>
> created by it should be readable by the<br>
> asterisk user.<br>
><br>
Thank you, I already tried with permission, but maybe didn't found the<br>
right path.<br>
<br>
Now I've changed the owner of both the file and the dir to "asterisk",<br>
but nothing, then I set as owner first "voiceglue", then "myself", 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 48 2008-09-30 03:20 custom<br>
drwxrwx--- 2 asterisk voiceglue 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 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: "Andrew Cumming" <<a href="mailto:andrewc@kestral.com.au">andrewc@kestral.com.au</a>><br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: "General discussion about voiceglue" <<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>><br>
Message-ID: <9E023949C7A9084C8F052B8E47CBE7002DE991@sbs.kestral.local><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
What you may want to do is to "su asterisk" 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't recall exactly what I did and I didn'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>
> It'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 "voiceglue"<br>
> and group "voiceglue", but the audio files<br>
> created by it should be readable by the<br>
> asterisk user.<br>
><br>
Thank you, I already tried with permission, but maybe didn't found the<br>
right path.<br>
<br>
Now I've changed the owner of both the file and the dir to "asterisk",<br>
but nothing, then I set as owner first "voiceglue", then "myself", 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 48 2008-09-30 03:20 custom<br>
drwxrwx--- 2 asterisk voiceglue 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 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 <<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>><br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: General discussion about voiceglue <<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>><br>
Message-ID: <<a href="mailto:4938719D.5030504@campbellcastle.com">4938719D.5030504@campbellcastle.com</a>><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. That's probably what's<br>
causing the problem. I'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 <<a href="mailto:emiespo@tiscali.it">emiespo@tiscali.it</a>><br>
Subject: Re: [Voiceglue] Weird problem with tts streaming.<br>
To: General discussion about voiceglue <<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>><br>
Message-ID: <<a href="mailto:4938FE74.8010102@tiscali.it">4938FE74.8010102@tiscali.it</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Doug Campbell ha scritto:<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. That's probably what's<br>
> causing the problem. I'll send more details on this<br>
> later when I have a few moments.<br>
><br>
Thanks for your interest. Meanwhile I'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 <<a href="mailto:emiespo@tiscali.it">emiespo@tiscali.it</a>><br>
Subject: Re: [Voiceglue] FIXED - Weird problem with tts streaming. -<br>
but now I need some hints<br>
To: General discussion about voiceglue <<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>><br>
Message-ID: <<a href="mailto:493901AD.4000801@tiscali.it">493901AD.4000801@tiscali.it</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
I brutally changed this in phoneglue:<br>
<br>
$bytes = join (" ",<br>
"STREAM FILE",<br>
$filename,<br>
<br>
to this:<br>
<br>
$bytes = join (" ",<br>
"STREAM FILE",<br>
"/var/lib/asterisk/sounds/".$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 <<a href="mailto:voiceglue@campbellcastle.com">voiceglue@campbellcastle.com</a>><br>
Subject: Re: [Voiceglue] FIXED - Weird problem with tts streaming. -<br>
but now I need some hints<br>
To: General discussion about voiceglue <<a href="mailto:voiceglue@voiceglue.org">voiceglue@voiceglue.org</a>><br>
Message-ID: <<a href="mailto:493944CE.8060807@campbellcastle.com">493944CE.8060807@campbellcastle.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
emiliano esposito wrote:<br>
> I brutally changed this in phoneglue:<br>
><br>
> $bytes = join (" ",<br>
> "STREAM FILE",<br>
> $filename,<br>
><br>
> to this:<br>
><br>
> $bytes = join (" ",<br>
> "STREAM FILE",<br>
> "/var/lib/asterisk/sounds/".$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>
You probably want to use strace.<br>
<br>
> Now I kindly ask you, why did this happen? Does some configuration file<br>
> need to be fixed?<br>
<br>
If asterisk isn't looking in /var/lib/asterisk/sounds for audio files,<br>
where the heck is it looking??? 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>