My application fails on the following voice xml and I don't see a problem. What is even more strange is it works sometimes. Please help.
<?xml version="1.0" encoding="utf-8" ?><vxml version="2.0">
<property name="inputmodes" value="dtmf" />
<property name="termtimeout" value="4s" />
<property name="interdigittimeout" value="4s" />
<menu id="menuStickReading">
<prompt bargein="true">There are no recorded stick readings unavailable for store Holiday .<enumerate /></prompt>
<choice dtmf="1" next="http://130.100.3.55/StickReading.aspx?option=4">Press 1 to poll store for most current stick readings.</choice>
<choice dtmf="2" next="http://130.100.3.55/StickReading.aspx?option=6">Press 2 to transfer to the transportation desk.</choice>
<choice dtmf="3" next="http://130.100.3.55/StickReading.aspx?option=5">Press 3 to transfer to store Holiday .</choice>
<choice dtmf="*" next="http://130.100.3.55/GasDieselHauling.aspx">Press the star key to return to the previous menu</choice>
<choice dtmf="*#" next="http://130.100.3.55/CallComplete.aspx">Press star pound to disconnect and exit the system.</choice>
<catch event="noinput">Please select from the following.<enumerate /></catch>
<catch event="nomatch">You selected an invalid option, please select from the following.<enumerate /></catch>
</menu>
</vxml>
Call Log.........................................................................................
Thu 15 Jan 2009 10:42:06 PM EST:
Call Start Event: ANII DNIS 3954 VURL /usr/local/plumvp/config/director.vxml
DocumentParser::FetchDocument()
DocumentParser::FetchDocument(/usr/local/plumvp/config/director.vxml)
Cache Miss: file:///usr/local/plumvp/config/director.vxml
Attempting to fetch file:///usr/local/plumvp/config/director.vxml
Click here to view saved VoiceXML script
VXI::var_element(name="ani" expr = "session.telephone.ani")
VXI::var_element(name="dnis" expr = "session.telephone.dnis")
VXI::var_element(name="id" expr = "session.id")
VXI::var_element(name="callee_type" expr = "session.telephone.callee_type")
VXI::var_element(name="ani" expr = "session.telephone.ani")
VXI::var_element(name="dnis" expr = "session.telephone.dnis")
VXI::var_element(name="id" expr = "session.id")
VXI::var_element(name="callee_type" expr = "session.telephone.callee_type")
http://130.100.3.55
DocumentParser::FetchDocument(http://130.100.3.55)
Cache Miss: http://130.100.3.55
Attempting to fetch http://130.100.3.55
Click here to view saved VoiceXML script
Loading Builtin grammar: builtin:dtmf/digits
Loading Builtin grammar: builtin:dtmf/digits
Loading Builtin grammar: builtin:dtmf/digits
Loading Builtin grammar: builtin:dtmf/digits
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>Thank you for calling the RaceTrac Dispatch and Delivery System. Please enter your driver identification number followed by the pound sign.</speak>
---------
VXI::field_element - activating grammars for form = 'default' formitem = 'txtUserId'
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played
Thu 15 Jan 2009 10:42:10 PM EST:
dtmf input: 9123#
Found grammar match
hypothesis #0: 9123 (1.0000)
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>Please enter your password followed by the pound sign.</speak>
---------
VXI::field_element - activating grammars for form = 'default' formitem = 'txtPassword'
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played
Thu 15 Jan 2009 10:42:13 PM EST:
dtmf input: 9123#
Found grammar match
hypothesis #0: 9123 (1.0000)
DocumentParser::FetchDocument(http://130.100.3.55/default.aspx)
Posted form data is URL encoded
Attempting to fetch http://130.100.3.55/default.aspx
Click here to view saved VoiceXML script
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 1 for Gas and Diesel Hauling.)
</grammar>
---------
Thu 15 Jan 2009 10:42:14 PM EST:
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(1)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 2 for Neat Ethanol Hauling.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(2)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 3 for Routine Truck Maintenance.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(3)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 4 for Automated Delivery System.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(4)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press star pound to disconnect and exit the system.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
("*""#")
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 1 for Gas and Diesel Hauling.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(1)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 2 for Neat Ethanol Hauling.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(2)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 3 for Routine Truck Maintenance.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(3)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 4 for Automated Delivery System.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(4)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press star pound to disconnect and exit the system.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
("*""#")
</grammar>
---------
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>Main Menu<break size="medium" time="1s"/> Press 1 for Gas and Diesel Hauling. <break size='small'/> Press 2 for Neat Ethanol Hauling. <break size='small'/> Press 3 for Routine Truck Maintenance. <break size='small'/> Press 4 for Automated Delivery System. <break size='small'/> Press star pound to disconnect and exit the system.<break size='small'/></speak>
---------
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played
Thu 15 Jan 2009 10:42:20 PM EST:
dtmf input: 1
Found grammar match
hypothesis #0: 1 (1.0000)
DocumentParser::FetchDocument(http://130.100.3.55/GasDieselHauling.aspx)
Cache Miss: http://130.100.3.55/GasDieselHauling.aspx
Attempting to fetch http://130.100.3.55/GasDieselHauling.aspx
Click here to view saved VoiceXML script
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 1 for Stick Reading.)
</grammar>
---------
Thu 15 Jan 2009 10:42:21 PM EST:
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(1)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 2 for Plan Loads.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(2)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 3 for Manage Load Plans.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(3)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press the star key to return to the previous menu)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
("*")
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press star pound to disconnect and exit the system.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
("*""#")
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 1 for Stick Reading.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(1)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 2 for Plan Loads.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(2)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 3 for Manage Load Plans.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(3)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press the star key to return to the previous menu)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
("*")
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press star pound to disconnect and exit the system.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
("*""#")
</grammar>
---------
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>Gas and Diesel Hauling<break size="medium" time="1s"/> Press 1 for Stick Reading. <break size='small'/> Press 2 for Plan Loads. <break size='small'/> Press 3 for Manage Load Plans. <break size='small'/> Press the star key to return to the previous menu<break size='small'/> Press star pound to disconnect and exit the system.<break size='small'/></speak>
---------
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played
Thu 15 Jan 2009 10:42:27 PM EST:
dtmf input: 1
Found grammar match
hypothesis #0: 1 (1.0000)
DocumentParser::FetchDocument(http://130.100.3.55/StickReading.aspx)
Cache Miss: http://130.100.3.55/StickReading.aspx
Attempting to fetch http://130.100.3.55/StickReading.aspx
Click here to view saved VoiceXML script
Loading Builtin grammar: builtin:dtmf/digits
Loading Builtin grammar: builtin:dtmf/digits
VXI::queue_prompts()
bargein set to false
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>Enter the store number followed by the pound sign.</speak>
---------
Newly queued prompts are now being played
VXI::field_element - activating grammars for form = 'stickReading' formitem = 'txtStoreNumber'
VXI::do_recognition()
PromptManager::Play()
Thu 15 Jan 2009 10:42:35 PM EST:
dtmf input: 00
Found grammar match
hypothesis #0: 00 (1.0000)
DocumentParser::FetchDocument(http://130.100.3.55/StickReading.aspx)
Posted form data is URL encoded
Attempting to fetch http://130.100.3.55/StickReading.aspx
Click here to view saved VoiceXML script
Loading Builtin grammar: builtin:dtmf/digits
Loading Builtin grammar: builtin:dtmf/digits
VXI::queue_prompts()
bargein set to false
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>Enter the store number followed by the pound sign.</speak>
---------
Newly queued prompts are now being played
VXI::field_element - activating grammars for form = 'stickReading' formitem = 'txtStoreNumber'
VXI::do_recognition()
PromptManager::Play()
Thu 15 Jan 2009 10:42:44 PM EST:
dtmf input: 700
Found grammar match
hypothesis #0: 700 (1.0000)
DocumentParser::FetchDocument(http://130.100.3.55/StickReading.aspx)
Posted form data is URL encoded
Attempting to fetch http://130.100.3.55/StickReading.aspx
Click here to view saved VoiceXML script
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 1 to poll store for most current stick readings.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(1)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 2 to transfer to the transportation desk.)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(2)
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="en-us" mode="dtmf">
(Press 3 to transfer to store Holiday .)
</grammar>
---------
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>
A serious error of type </speak>
---------
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>error.grammar.choice</speak>
---------
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak> has occurred. Exiting. </speak>
---------
VXI::exit_element()
Newly queued prompts are now being played
Thu 15 Jan 2009 10:42:51 PM EST:
Call End Event
Ending session
Ending Session On Channel 22
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
error.grammar.choice
error.grammar.choice
Willie J. Perry
Racetrac Petroleum
Contract Developer
(770) 431-7600 ext 1644
Racetrac Petroleum
Contract Developer
(770) 431-7600 ext 1644
Adjustments to IVR code
Hi,
Using the IVR tag, <choice>, we have made the following adjustments to your IVR code and have tested it where it has worked for us on 10 consecutive calls.
choicetest.php
Hope this helps.
Regards,
Plum Support
Using the IVR tag, <choice>, we have made the following adjustments to your IVR code and have tested it where it has worked for us on 10 consecutive calls.
choicetest.php
Code: Select all
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf" />
<property name="termtimeout" value="4s" />
<property name="interdigittimeout" value="4s" />
<menu id="menuStickReading">
<prompt>There are no recorded stick readings unavailable for store Holiday.<enumerate/></prompt>
<choice dtmf="1" next="http://130.100.3.55/StickReading.aspx?option=4">
Press 1 to poll store for most current stick readings.</choice>
<choice dtmf="2" next="http://130.100.3.55/StickReading.aspx?option=6">
Press 2 to transfer to the transportation desk.</choice>
<choice dtmf="3" next="http://130.100.3.55/StickReading.aspx?option=5">
Press 3 to transfer to store Holiday.</choice>
<choice dtmf="*" next="http://130.100.3.55/GasDieselHauling.aspx">
Press the star key to return to the previous menu.</choice>
<choice dtmf="*#" next="http://130.100.3.55/CallComplete.aspx">
Press star pound to disconnect and exit the system.</choice>
<noinput>Please select from the following.<enumerate/></noinput>
<nomatch>You selected an invalid option, please select from the following.<enumerate/></nomatch>
</menu>
</vxml>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com