<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>interesting problem update</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>The problem I was experiencing is still occurring, and it is getting worse. There are several names that Festival "gets stuck on". I don't know if it is a Festival problem or an Asterisk problem. The scenario, a call comes in goes through the dialplan (shown below in original message), and either reads the value ${FULLNAME}, but then hangs. It doesn't go to the next command (VoiceMail), and the channel is never released. Other times, it doesn't even read the "name", it just hangs. <BR>
<BR>
exten => _5[14-9]XXX,n,Festival(${FULLNAME})<BR>
somehow it gets stuck between the above line and the below line<BR>
exten => _5[14-9]XXX,n,VoiceMail(${EXTEN}@students)<BR>
<BR>
<BR>
Log from a successful call:<BR>
[Dec 22 14:24:50] VERBOSE[2715] logger.c: == Parsing '/etc/asterisk/festival.conf': [Dec 22 14:24:50] VERBOSE[2715] logger.c: Found<BR>
[Dec 22 14:24:50] DEBUG[2715] app_festival.c: Text passed to festival server : Jxxxxxx Lxxx Cxxx (name blocked for confidentially)<BR>
[Dec 22 14:24:50] DEBUG[2715] app_festival.c: Passing text to festival...<BR>
[Dec 22 14:24:50] DEBUG[2715] app_festival.c: Passing data to channel...<BR>
[Dec 22 14:24:50] DEBUG[2715] app_festival.c: Festival WV command<BR>
[Dec 22 14:24:52] DEBUG[2715] app_festival.c: Last frame<BR>
<BR>
Log from an unsuccessful call (never get "Last frame" message):<BR>
[Dec 22 13:03:22] VERBOSE[1912] logger.c: == Parsing '/etc/asterisk/festival.conf': [Dec 22 13:03:22] VERBOSE[1912] logger.c: Found<BR>
[Dec 22 13:03:22] DEBUG[1912] app_festival.c: Text passed to festival server : Jxxx Wxxxxx Kxxxxx (name blocked for confidentially)<BR>
[Dec 22 13:03:22] DEBUG[1912] app_festival.c: Passing text to festival...<BR>
[Dec 22 13:03:22] DEBUG[1912] app_festival.c: Passing data to channel...<BR>
[Dec 22 13:03:23] DEBUG[1912] app_festival.c: Festival WV command<BR>
<BR>
Any ideas for troubleshooting?<BR>
<BR>
-----Original Message-----<BR>
From: Eve Ellen Cole [<A HREF="mailto:ecole@mail.plymouth.edu">mailto:ecole@mail.plymouth.edu</A>]<BR>
Sent: Tuesday, December 16, 2008 6:35 PM<BR>
To: asterisk-users@lists.digium.com<BR>
Subject: interesting problem<BR>
<BR>
I’ve got an interesting problem and am wondering if anyone can shed light …<BR>
<BR>
I am running Asterisk on RHEL Server release 5.2 connecting to an Avaya Definity G3R via a Digium TE220.<BR>
<BR>
Asterisk 1.4.20<BR>
Zaptel 1.4.4<BR>
Libpri 1.4.4<BR>
MySQL 5.0.45<BR>
<BR>
Festival Speech Synthesis System: 1.95<BR>
<BR>
We have about 4200 accounts in a MySQL db. Asterisk retrieves the user information from the database, festival tts says the name, then the caller can leave a voicemail, which is then emailed to the user. At this time, the system only takes calls, no calls go out.<BR>
<BR>
The problem is that at times Asterisk doesn’t release the channel. Messages in the log file show indicate the channel is busy. The only way I can find to get the channel to release is to restart Asterisk.<BR>
<BR>
[Dec 16 14:39:06] DEBUG[11141] chan_zap.c: Ring requested on channel 0/1 already in use or previously requested on span 1. Attempting to renegotiating channel.<BR>
<BR>
Since this is happening on a regular basis, I’ve been doing some troubleshooting and can now predictably cause this problem. It mainly seems to happen with one particular mailbox, and festival seems to be a factor. When this particular mailbox is dialed, Asterisk goes through the dialplan up to and including the Festival(${FULLNAME}) step, but not beyond. Just for yucks, I changed the fullname of the person with that mailbox by taking out the middle name. All seems to work fine without the middle name. If I put a middle initial or middle name, the channel locks up again. I’ve wondered if Festival has a problem with the length of the name, but there are other students with longer names and this problem doesn’t occur with their extensions. Any thoughts?<BR>
<BR>
Dialplan<BR>
exten => _5[14-9]XXX,1,Answer()<BR>
exten => _5[14-9]XXX,n,Playtones(ring)<BR>
exten => _5[14-9]XXX,n,MYSQL(Connect CONNID localhost asterisk HG06e6kghpUjtGvnX asterisk)<BR>
exten => _5[14-9]XXX,n,MYSQL(Query RESULTID ${CONNID} Select 'fullname' from voicemail_users Where mailbox=${EXTEN})<BR>
exten => _5[14-9]XXX,n,MYSQL(Fetch FETCHID ${RESULTID} FULLNAME)<BR>
exten => _5[14-9]XXX,n,MYSQL(Disconnect ${CONNID})<BR>
exten => _5[14-9]XXX,n,GotoIf($[${FETCHID} = 1]?connect:disconn)<BR>
exten => _5[14-9]XXX,n(connect),StopPlaytones()<BR>
exten => _5[14-9]XXX,n,Wait(2)<BR>
exten => _5[14-9]XXX,n,Playback(you-have-dialed)<BR>
exten => _5[14-9]XXX,n,Playback(the-mailbox)<BR>
exten => _5[14-9]XXX,n,Playback(for)<BR>
exten => _5[14-9]XXX,n,Festival(${FULLNAME})<BR>
exten => _5[14-9]XXX,n,VoiceMail(${EXTEN}@students)<BR>
exten => _5[14-9]XXX,n,Playback(goodbye)<BR>
exten => _5[14-9]XXX,n,Hangup() exten => _5[14-9]XXX,n(disconn),Zapateller()<BR>
exten => _5[14-9]XXX,n,Playback(you-dialed-wrong-number)<BR>
exten => _5[14-9]XXX,n,Playback(check-number-dial-again)<BR>
exten => _5[14-9]XXX,n,Playtones(congestion)<BR>
exten => _5[14-9]XXX,n,Wait(3)<BR>
exten => _5[14-9]XXX,n,Hangup()<BR>
</FONT>
</P>
</BODY>
</HTML>