[Voiceglue] Voiceglue Digest, Vol 17, Issue 6

PodGlo Information info at podglo.com
Fri Dec 5 15:01:32 EST 2008


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.

Doug

On Fri, Dec 5, 2008 at 12:00 PM, <voiceglue-request at voiceglue.org> wrote:

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


More information about the Voiceglue mailing list