[asterisk-users] interesting problem update

Eve-Ellen Cole ecole at mail.plymouth.edu
Mon Dec 22 15:59:03 CST 2008


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.  

exten => _5[14-9]XXX,n,Festival(${FULLNAME})
somehow it gets stuck between the above line and the below line
exten => _5[14-9]XXX,n,VoiceMail(${EXTEN}@students)


Log from a successful call:
 [Dec 22 14:24:50] VERBOSE[2715] logger.c:   == Parsing
'/etc/asterisk/festival.conf': [Dec 22 14:24:50] VERBOSE[2715] logger.c:
Found
[Dec 22 14:24:50] DEBUG[2715] app_festival.c: Text passed to festival
server : Jxxxxxx Lxxx Cxxx (name blocked for confidentially)
[Dec 22 14:24:50] DEBUG[2715] app_festival.c: Passing text to festival...
[Dec 22 14:24:50] DEBUG[2715] app_festival.c: Passing data to channel...
[Dec 22 14:24:50] DEBUG[2715] app_festival.c: Festival WV command
[Dec 22 14:24:52] DEBUG[2715] app_festival.c: Last frame

Log from an unsuccessful call (never get "Last frame" message):
[Dec 22 13:03:22] VERBOSE[1912] logger.c:   == Parsing
'/etc/asterisk/festival.conf': [Dec 22 13:03:22] VERBOSE[1912] logger.c:
Found
[Dec 22 13:03:22] DEBUG[1912] app_festival.c: Text passed to festival
server : Jxxx Wxxxxx Kxxxxx (name blocked for confidentially)
[Dec 22 13:03:22] DEBUG[1912] app_festival.c: Passing text to festival...
[Dec 22 13:03:22] DEBUG[1912] app_festival.c: Passing data to channel...
[Dec 22 13:03:23] DEBUG[1912] app_festival.c: Festival WV command

Any ideas for troubleshooting?

-----Original Message-----
From: Eve Ellen Cole [mailto:ecole at mail.plymouth.edu] 
Sent: Tuesday, December 16, 2008 6:35 PM
To: asterisk-users at lists.digium.com
Subject: interesting problem

I've got an interesting problem and am wondering if anyone can shed light
.

I am running Asterisk on RHEL Server release 5.2 connecting to an Avaya
Definity G3R via a Digium TE220.

Asterisk 1.4.20
Zaptel 1.4.4
Libpri 1.4.4
MySQL 5.0.45

Festival Speech Synthesis System: 1.95

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.

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.

[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.

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?

Dialplan
exten => _5[14-9]XXX,1,Answer()
exten => _5[14-9]XXX,n,Playtones(ring)
exten => _5[14-9]XXX,n,MYSQL(Connect CONNID localhost asterisk
HG06e6kghpUjtGvnX asterisk) 
exten => _5[14-9]XXX,n,MYSQL(Query RESULTID ${CONNID}  Select 'fullname'
from voicemail_users Where mailbox=${EXTEN}) 
exten => _5[14-9]XXX,n,MYSQL(Fetch FETCHID ${RESULTID} FULLNAME) 
exten => _5[14-9]XXX,n,MYSQL(Disconnect ${CONNID}) 
exten => _5[14-9]XXX,n,GotoIf($[${FETCHID} = 1]?connect:disconn) 
exten => _5[14-9]XXX,n(connect),StopPlaytones()
exten => _5[14-9]XXX,n,Wait(2)
exten => _5[14-9]XXX,n,Playback(you-have-dialed)
exten => _5[14-9]XXX,n,Playback(the-mailbox)
exten => _5[14-9]XXX,n,Playback(for)
exten => _5[14-9]XXX,n,Festival(${FULLNAME})
exten => _5[14-9]XXX,n,VoiceMail(${EXTEN}@students)
exten => _5[14-9]XXX,n,Playback(goodbye) 
exten => _5[14-9]XXX,n,Hangup() exten =>
_5[14-9]XXX,n(disconn),Zapateller()
exten => _5[14-9]XXX,n,Playback(you-dialed-wrong-number)
exten => _5[14-9]XXX,n,Playback(check-number-dial-again)
exten => _5[14-9]XXX,n,Playtones(congestion)
exten => _5[14-9]XXX,n,Wait(3)
exten => _5[14-9]XXX,n,Hangup()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081222/595e6628/attachment.htm 


More information about the asterisk-users mailing list