<!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.&nbsp; There are several names that Festival &quot;gets stuck on&quot;.&nbsp; I don't know if it is a Festival problem or an Asterisk problem.&nbsp; The scenario, a call comes in goes through the dialplan (shown below in original message), and either reads the value ${FULLNAME}, but then hangs.&nbsp; It doesn't go to the next command (VoiceMail), and the channel is never released.&nbsp; Other times, it doesn't even read the &quot;name&quot;, it just hangs.&nbsp;<BR>
<BR>
exten =&gt; _5[14-9]XXX,n,Festival(${FULLNAME})<BR>
somehow it gets stuck between the above line and the below line<BR>
exten =&gt; _5[14-9]XXX,n,VoiceMail(${EXTEN}@students)<BR>
<BR>
<BR>
Log from a successful call:<BR>
&nbsp;[Dec 22 14:24:50] VERBOSE[2715] logger.c:&nbsp;&nbsp; == 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 &quot;Last frame&quot; message):<BR>
[Dec 22 13:03:22] VERBOSE[1912] logger.c:&nbsp;&nbsp; == 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&#8217;ve got an interesting problem and am wondering if anyone can shed light &#8230;<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.&nbsp; 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.&nbsp; At this time, the system only takes calls, no calls go out.<BR>
<BR>
The problem is that at times Asterisk doesn&#8217;t release the channel.&nbsp; Messages in the log file show indicate the channel is busy.&nbsp; 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.&nbsp; Attempting to renegotiating channel.<BR>
<BR>
Since this is happening on a regular basis, I&#8217;ve been doing some troubleshooting and can now predictably cause this problem.&nbsp; It mainly seems to happen with one particular mailbox, and festival seems to be a factor.&nbsp; When this particular mailbox is dialed, Asterisk goes through the dialplan up to and including the Festival(${FULLNAME}) step, but not beyond.&nbsp; Just for yucks, I changed the fullname of the person with that mailbox by taking out the middle name.&nbsp; All seems to work fine without the middle name.&nbsp; If I put a middle initial or middle name, the channel locks up again.&nbsp; I&#8217;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&#8217;t occur with their extensions.&nbsp; Any thoughts?<BR>
<BR>
Dialplan<BR>
exten =&gt; _5[14-9]XXX,1,Answer()<BR>
exten =&gt; _5[14-9]XXX,n,Playtones(ring)<BR>
exten =&gt; _5[14-9]XXX,n,MYSQL(Connect CONNID localhost asterisk HG06e6kghpUjtGvnX asterisk)<BR>
exten =&gt; _5[14-9]XXX,n,MYSQL(Query RESULTID ${CONNID}&nbsp; Select 'fullname' from voicemail_users Where mailbox=${EXTEN})<BR>
exten =&gt; _5[14-9]XXX,n,MYSQL(Fetch FETCHID ${RESULTID} FULLNAME)<BR>
exten =&gt; _5[14-9]XXX,n,MYSQL(Disconnect ${CONNID})<BR>
exten =&gt; _5[14-9]XXX,n,GotoIf($[${FETCHID} = 1]?connect:disconn)<BR>
exten =&gt; _5[14-9]XXX,n(connect),StopPlaytones()<BR>
exten =&gt; _5[14-9]XXX,n,Wait(2)<BR>
exten =&gt; _5[14-9]XXX,n,Playback(you-have-dialed)<BR>
exten =&gt; _5[14-9]XXX,n,Playback(the-mailbox)<BR>
exten =&gt; _5[14-9]XXX,n,Playback(for)<BR>
exten =&gt; _5[14-9]XXX,n,Festival(${FULLNAME})<BR>
exten =&gt; _5[14-9]XXX,n,VoiceMail(${EXTEN}@students)<BR>
exten =&gt; _5[14-9]XXX,n,Playback(goodbye)<BR>
exten =&gt; _5[14-9]XXX,n,Hangup() exten =&gt; _5[14-9]XXX,n(disconn),Zapateller()<BR>
exten =&gt; _5[14-9]XXX,n,Playback(you-dialed-wrong-number)<BR>
exten =&gt; _5[14-9]XXX,n,Playback(check-number-dial-again)<BR>
exten =&gt; _5[14-9]XXX,n,Playtones(congestion)<BR>
exten =&gt; _5[14-9]XXX,n,Wait(3)<BR>
exten =&gt; _5[14-9]XXX,n,Hangup()<BR>
</FONT>
</P>

</BODY>
</HTML>