[Voiceglue] Possible menu irregularity? ...
Chris Wilson
chris.wilson at mjog.com
Fri Mar 13 11:39:46 UTC 2009
Hello,
I have the following VXML :
<!-- Confirm the response menu -->
<menu id="choose">
<prompt>Are you sure you want to <value expr="document.choice_var" />
the appointment on Saturday, [v:day]14[/v:day] of March? Press 1, for
yes, Press 2, for no</prompt>
<choice dtmf="1" expr="'#'+document.choice_var"></choice>
<choice dtmf="2" next="#messageOptions"></choice>
</menu>
This works 98% of the time, however sometimes when pressing dtmf '1' it
seems to ignore it and act as if dtmf '2' was pressed, so goes to
'#messageOptions'. Thing is if this happens once in a call it gets stuck
in a never ending loop no matter what digit you press.
Here is the log for one of these strange calls, it all looks normal and
shows the correct digit being pressed however it then goes to the
'#messageOptions' script ... maybe I am missing something in this log
snippit that has the answer ...
This would suggest the digit 1 was pressed for confirm:
10:00:29:003 DBUG PHONGLUE elektra- snd "STREAM FILE
voiceglue/tts/Are_you_sure_you_want_to_confirm_the_appointment_on_Saturd
ay_vda-55FE4421E291D2A1 0123456789*#\n" to ::FASTAGI34
10:00:29:003 DBUG OPEN_VXI elektra- callid=[34] rcv vg: Played
10:00:29:003 DBUG OPEN_VXI elektra- callid=[34] VXIrecRecognize called
with properties {"
absoluteURI"="http://felix/RB-1.71/util_VoiceServer/CallGenerator.vxml.p
hp" <http://felix/RB-1.71/util_VoiceServer/CallGenerator.vxml.php%22>
[^ <http://felix/RB-1.71/util_VoiceServer/CallGenerator.vxml.php%22> ] "
base"="http://felix/RB-1.71/util_VoiceServer/CallGenerator.vxml.php"
<http://felix/RB-1.71/util_VoiceServer/CallGenerator.vxml.php%22> [^
<http://felix/RB-1.71/util_VoiceServer/CallGenerator.vxml.php%22> ] "
encoding"="UTF-8" "audiofetchhint"="prefetch" "bargein"="true"
"bargeintype"="speech" "confidencelevel"="0.5"
"datafetchhint"="prefetch" "documentfetchhint"="safe"
"fetchaudiodelay"="2s" "fetchaudiominimum"="5s" "fetchtimeout"="7s"
"grammarfetchhint"="prefetch" "inputmodes"="dtmf" "maxnbest"="1"
"objectfetchhint"="prefetch" "scriptfetchhint"="prefetch"
"sensitivity"="0.5" "speedvsaccuracy"="0.5" "swirec_extra_nbest_keys"=""
"termchar"="#" "termtimeout"="0s" "universals"="none"
"vxi.rec.bargeinType"=2 "vxi.rec.confidenceLevel"=0.5
"vxi.rec.inputModes"=2 "vxi.rec.resultNbestSize"=1
"vxi.rec.sensitivity"=0.5 "vxi.rec.speedVsAccuracy"=0.5
"vxi.rec.terminatorChar"="#" "vxi.rec.timeoutTerminator"=0}
10:00:29:003 DBUG OPEN_VXI elektra- callid=[34] snd vg: Recognize
"inputmodes=\"dtmf\" bargein=\"true\" timeout= fetchaudiodelay=\"2s\"
fetchtimeout=\"7s\" termchar=\"#\" termtimeout=\"0s\"
interdigittimeout="
10:00:37:106 DBUG PHONGLUE elektra- rcv agi(::FASTAGI34): "200 result=49
endpos=64960\n"
10:00:37:106 DBUG PHONGLUE elektra- callid=[34] AGI result=49 values:
endpos=64960
10:00:37:106 DBUG PHONGLUE elektra- callid=[34] snd played callid=34
status=0 msg="" reason=DTMF-pressed to CT client on fh="::CTCLIENT1" at
host=127.0.0.1 proto=SATC
10:00:37:106 DBUG PHONGLUE elektra- snd "played 34 0 \"\" 2\n" to
::CTCLIENT1
10:00:37:106 DBUG VOICEGLU elektra- rcv ctsrv: "played 34 0 \"\" 2\n"
10:00:37:108 DBUG VOICEGLU elektra- callid=[34] parsed played callid=34
status=0 msg="" reason=DTMF-pressed
10:00:37:108 DBUG VOICEGLU elektra- callid=[34] dpal():
do_prompt_and_listen() called
10:00:37:108 DBUG VOICEGLU elektra- callid=[34] dpal(): Starting
recognition
10:00:37:108 DBUG VOICEGLU elektra- callid=[34] snd getdig callid=34
timeout=7000 stopkeys="" max_dig=1 to CT server on fh="::CTSRV" at
host=localhost
10:00:37:108 DBUG VOICEGLU elektra- snd "getdig 34 7000 \"\" 1\n" to
::CTSRV
10:00:37:108 DBUG PHONGLUE elektra- rcv ct(::CTCLIENT1): "getdig 34 7000
\"\" 1\n"
10:00:37:108 DBUG PHONGLUE elektra- callid=[34] parsed getdig callid=34
timeout=7000 stopkeys="" max_dig=1
10:00:37:108 DBUG PHONGLUE elektra- callid=[34] snd gotdig callid=34
status=0 msg="" digits="1" reason=max-digits to CT client on
fh="::CTCLIENT1" at host=127.0.0.1 proto=SATC
10:00:37:108 DBUG PHONGLUE elektra- snd "gotdig 34 0 \"\" 2 1\n" to
::CTCLIENT1
10:00:37:109 DBUG VOICEGLU elektra- rcv ctsrv: "gotdig 34 0 \"\" 2 1\n"
10:00:37:109 DBUG VOICEGLU elektra- callid=[34] parsed gotdig callid=34
status=0 msg="" digits="1" reason=max-digits
10:00:37:109 DBUG VOICEGLU elektra- callid=[34] dpal():
do_prompt_and_listen() called
10:00:37:109 DBUG VOICEGLU elektra- callid=[34] dpal(): DTMFs received =
"1", trying to match against 2 active grammar(s)
10:00:37:109 DBUG VOICEGLU elektra- callid=[34] dpal():
checvk_rules_match returns 2 = full match with no further possible
10:00:37:109 DBUG VOICEGLU elektra- callid=[34] dpal(): DTMFs matched,
sending result
Then this shows the repeating of the main menu:
10:00:37:109 DBUG VOICEGLU elektra- callid=[34] dpal() Data Cleared
10:00:37:109 DBUG VOICEGLU elektra- callid=[34] snd Recognized 0 <?xml
version='1.0'?> <result> <interpretation grammar="0xb5965de0"
confidence="100"> <input mode="dtmf">1</input> <instance></instance>
</interpretation> </result> to VXML interpreter on fh="::PERL_VXML_34"
at host=localhost callid=[34]
10:00:37:109 DBUG VOICEGLU elektra- snd "Recognized 0 <?xml
version=\'1.0\'?> <result> <interpretation grammar=\"0xb5965de0\"
confidence=\"100\"> <input mode=\"dtmf\">1</input> <instance></instance>
</interpretation> </result>\n" to ::PERL_VXML_34
10:00:37:110 DBUG VOICEGLU elektra- callid=[34] rcv ovxi:
"GetLineStatus\n"
10:00:37:110 DBUG VOICEGLU elektra- callid=[34] snd LineStatus 1 to VXML
interpreter on fh="::PERL_VXML_34" at host=localhost callid=[34]
10:00:37:110 DBUG VOICEGLU elektra- snd "LineStatus 1\n" to
::PERL_VXML_34
10:00:37:112 DBUG OPEN_VXI elektra- callid=[34] rcv vg: Recognized 0
<?xml version='1.0'?> <result> <interpretation grammar="0xb5965de0"
confidence="100"> <input mode="dtmf">1</input> <instance></instance>
</interpretation> </result>
10:00:37:112 DBUG OPEN_VXI elektra- callid=[34] snd vg: GetLineStatus
10:00:37:112 DBUG VOICEGLU elektra- callid=[34] rcv ovxi: "Queue \"<?xml
version=\\\'1.0\\\'?><speak version=\\\'1.0\\\'
xmlns=\\\'http://www.w3.org/2001/10/synthesis\\\'
<http://www.w3.org/2001/10/synthesis///'> [^
<http://www.w3.org/2001/10/synthesis///'> ]
xml:base=\\\'http://felix/RB-1.71/util_VoiceServer/CallGenerator.vxml.ph
p\\\' <http://felix/RB-1.71/util_VoiceServer/CallGenerator.vxml.php///'>
[^ <http://felix/RB-1.71/util_VoiceServer/CallGenerator.vxml.php///'> ]
xml:lang=\\\'en\\\'>\\n\\x09\\x09\\x09\\x09Please select from one of the
following
options:\\n\\x09\\x09\\x09\\x09\\n\\x09\\x09\\x09\\x09\\x09Press 1, to
repeat the reminder
message,\\n\\x09\\x09\\x09\\x09\\n\\x09\\x09\\x09\\x09\\x09Press 2, to
confirm you will
attend,\\n\\x09\\x09\\x09\\x09\\n\\x09\\x09\\x09\\x09\\x09Press 3, to
cancel the appointment,\\n\\x09\\x09\\x09\\x09</speak>\"\n"
10:00:37:112 DBUG VOICEGLU elektra- callid=[34] made sound cache request
screq=[1160] for play_queued index 0 as: 1160 - tts Please select from
one of the following options: Press 1, to repeat the reminder message,
Press 2, to confirm you will attend, Press 3, to cancel the appointment,
10:00:37:112 DBUG VOICEGLU elektra- snd "1160 - tts Please select from
one of the following options: \x09\x09\x09\x09 \x09\x09\x09\x09\x09Press
1, to repeat the reminder message, \x09\x09\x09\x09
\x09\x09\x09\x09\x09Press 2, to confirm you will attend,
\x09\x09\x09\x09 \x09\x09\x09\x09\x09Press 3, to cancel the
appointment,\n" to ::MAIN_TO_SC
Thanks
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.voiceglue.org/pipermail/voiceglue/attachments/20090313/5201783f/attachment.html
More information about the Voiceglue
mailing list