Steve Woolley
2004-Oct-06 12:24 UTC
[Asterisk-Users] Asterisk and Festival, getting gethostbyname failed error
Interestingly enough I had this same problem today....
1. I created the directory and permissions for the directory "
/var/lib/asterisk/festivalcache/ " (per the comment in the festival.conf
file)
2. I had to comment out some things in the festival.conf file: the
"host" line, the "port" line, and the
"festivalcommand" line. I have
also noticed the festivalcache functionality is not working -- but that
may be because I am using the newest festival version 1.95beta. This may
be the reason I also had to comment out the "festivalcommand" line.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Chris
Samaritoni
Sent: Wednesday, October 06, 2004 1:36 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Asterisk and Festival,getting gethostbyname
failed error
I've installed festival 1.4.3, I've applied the proper patches and
everthing seems to have gone fine. So I edited the festival.conf file
per the Wiki
; Festival Configuration
[general]
host=localhost
port=1314
usecache=yes
cachedir=/var/lib/asterisk/festivalcache/
festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n
I added the following extension
exten => 5001,1,Answer
exten => 5001,2,Festival(mary had a little lamb) exten => 5001,3,Hangup
I made sure to start the festival server up before running Asterisk, but
I get the following error from asterisk:
-- Executing Festival("SIP/125-03f4", "mary had a little
lamb") in
new stack
== Parsing '/etc/asterisk/festival.conf': Found Oct 6 10:23:06
WARNING[-180528208]: app_festival.c:335 festival_exec:
festival_client: gethostbyname failed
I noticed if I don't even run the festival server it still gets this
error. I've tried changing host in the festival.conf file to 127.0.0.1,
I've tried the name of the server, to the IP address of the server it
all gets the same error. localhost resolves fine, the name of the server
resolves fine.
I've tried to search through the archives, but I didn't see this error
occurring for anyone else.
Thanks,
Chris
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Chris Samaritoni
2004-Oct-06 12:42 UTC
[Asterisk-Users] Asterisk and Festival, getting gethostbyname failed error
Hmmm? I should have tried that. I commented everything out of the festival.conf file and it works! I uncommented the usecache and cachedir and it still works, but when I uncomment festivalcommand it just hangs on Parsing '/etc/asterisk/festival.conf': Found but definitely the gethostbyname error occurs when host and port are uncommented and specified. Thanks. Chris Steve Woolley wrote:> Interestingly enough I had this same problem today.... > > 1. I created the directory and permissions for the directory " > /var/lib/asterisk/festivalcache/ " (per the comment in the festival.conf > file) > > 2. I had to comment out some things in the festival.conf file: the > "host" line, the "port" line, and the "festivalcommand" line. I have > also noticed the festivalcache functionality is not working -- but that > may be because I am using the newest festival version 1.95beta. This may > be the reason I also had to comment out the "festivalcommand" line. > > > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Chris > Samaritoni > Sent: Wednesday, October 06, 2004 1:36 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Asterisk and Festival,getting gethostbyname > failed error > > I've installed festival 1.4.3, I've applied the proper patches and > everthing seems to have gone fine. So I edited the festival.conf file > per the Wiki > > ; Festival Configuration > [general] > host=localhost > port=1314 > usecache=yes > cachedir=/var/lib/asterisk/festivalcache/ > festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n > > I added the following extension > > exten => 5001,1,Answer > exten => 5001,2,Festival(mary had a little lamb) exten => 5001,3,Hangup > > I made sure to start the festival server up before running Asterisk, but > I get the following error from asterisk: > > -- Executing Festival("SIP/125-03f4", "mary had a little lamb") in > new stack > == Parsing '/etc/asterisk/festival.conf': Found Oct 6 10:23:06 > WARNING[-180528208]: app_festival.c:335 festival_exec: > festival_client: gethostbyname failed > > I noticed if I don't even run the festival server it still gets this > error. I've tried changing host in the festival.conf file to 127.0.0.1, > I've tried the name of the server, to the IP address of the server it > all gets the same error. localhost resolves fine, the name of the server > resolves fine. > > I've tried to search through the archives, but I didn't see this error > occurring for anyone else. > > Thanks, > Chris > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >