We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

noinput count='3'

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

noinput count='3'

Post by shanthint@paydq.com »

Hello,
I have an issue with <noinput count='3'> tag.
It is catching the event noinput. but It is not catching noinput count='3'.

I have a code snippet here.
I have this issue in the customerid part.
The same thing works in the next section.


<property name="sensitivity" value="0.3"/>
<property name="voicegender" value="female" />
<property name="interdigittimeout" value="5s"/>
<property name="timeout" value="10s"/>
<property name="fetchtimeout" value="60s"/>
<property name="recordcall" value="false"/>
<property name="inputmodes" value="dtmf"/>

<var name="customerid" expr='0'/>
<var name="zip" expr='0'/>
<var name="field_value" expr='0'/>
<var name="errorFile" expr="'0'"/>
<var name="groupid" expr="'<%=GroupID%>'"/>

<!-- GETS CUSTOMERID -->

<form id="customerentry">

<!-- DECLARES VARIABLES TO READ BACK THE INPUT -->
<var name="conf_fieldname" expr="'conf_customerid'"/>
<var name="forwardPath" expr="'CustomerEntry.do'"/>
<var name="type" expr="'digits'"/>
<var name="fieldname" expr="'customerid'"/>

<field name="field_value" >

<grammar src="builtin:dtmf/digits"/>
<grammar src="builtin:grammar/digits"/>

<prompt >
<audio expr="'recordings/'+groupid+'prompt_customerid.wav'" ></audio>
</prompt>

</field>


<subdialog name="result" src="ReplayAction.do?method=parseDigits" namelist="field_value fieldname type">

<filled>
<if cond="result.verifyInput==false">
<goto next="#customerentry" />
<else/>
<goto next="#zipentry" />
</if>
</filled>

</subdialog>

<nomatch>
<prompt>
<audio expr="'recordings/'+groupid+'error_customerid.wav'" ></audio>
<audio src="recordings/global/messages/msg_try_again.wav" ></audio>
</prompt>
<clear namelist="field_value" />
<reprompt/>
</nomatch>

<nomatch count='3'>
<goto next="Message.do"/>
</nomatch>

</form>
>


<form id="zipentry">

<field name="field_value" >

<grammar src="builtin:dtmf/digits?length=5"/>
<grammar src="builtin:grammar/digits?length=5"/>

<prompt >
<audio src="recordings/global/prompt_zip.wav" >
</audio>
</prompt>
</field>

<filled>
<prompt>
<audio src="recordings/global/messages/msg_process_wait.wav" >
</audio>
</prompt>
<assign name="zip" expr="field_value" />
<submit next="ProfileAction.do" method="post" namelist="zip" />

</filled>

<nomatch>
<prompt><audio src="recordings/global/errors/invalid_zip.wav" ></audio></prompt>
<clear namelist="zip" />
<reprompt/>
</nomatch>

<noinput>
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio>

</prompt>
<clear namelist="zip" />
<reprompt/>
</noinput>


</form>



<!-- ERROR HANDLERS -->

<catch event="error.badfetch">
<log>An HTTP fetch error occurred. Terminating...</log>
<goto next="SystemError.do"/>
</catch>

<catch event="error.semantic">
<log>semantic error. Terminating...</log>
<goto next="SystemError.do"/>
</catch>

<catch event="error.semantic.ecmascript">
<log>ecmascript error. Terminating...</log>
<goto next="SystemError.do"/>
</catch>

<catch event="nomatch">
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio></prompt><clear />
<reprompt/>
</catch>

<catch event="nomatch" count='3'>
<goto next="Message.do"/>
</catch>


<catch event="noinput">
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio></prompt><clear /> <reprompt/>
</catch>

<catch event="noinput" count='3'>
<goto next="Message.do"/>
</catch>

<catch event=" error.noresource ">
<log>noresource error. Terminating...</log>
<goto next="SystemError.do"/>

</catch>

<catch event="connection.disconnect.hangup">
<submit next="ExitAction.do"/>
</catch>

<catch event="error.connection.baddestination ">
<log> Bad phone number </log>
<goto next="SystemError.do"/>
</catch>



</vxml>

Thanks in advance.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Call log needed for IVR developers to determine problem

Post by support »

Hi,

Do you have an IVR call log that demonstrates this IVR issue? We were not able to reproduce the IVR issue that you are describing. Can you also further describe the steps you are taking before you expect the "noinput count=3' event to happen?

Regards,
Plum Support
Last edited by support on Thu Feb 18, 2010 5:03 pm, edited 3 times in total.

shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

Post by shanthint@paydq.com »

1.If the caller does not press any button for Customer id, it catches the noinput event. and then it just loops through the prompt again.
2. the same step as first.
3. the same again.
It just gives the prompt again again without even disconneting the call.

After the 3 rd time it should forward the call to some other message. that it doesn't do.

The same event catch works for zipcode entry in the same page.

Here is call log:

Fri 27 Jun 2008 01:39:49 PM EDT:

Call Start Event: ANII DNIS 8216 VURL /usr/local/plumvp/config/director.vxml
DocumentParser::FetchDocument()
DocumentParser::FetchDocument(/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")
file:///usr/local/plumvp/config/1195156035_619377512.vxml
DocumentParser::FetchDocument(file:///usr/local/plumvp/config/1195156035_619377512.vxml)
Attempting to fetch file:///usr/local/plumvp/config/1195156035_619377512.vxml
Click here to view saved VoiceXML script
VXI::var_element(name="appname1" expr = "'0'")
VXI::var_element(name="appname2" expr = "'0'")
VXI::assign_element(name="dnis" expr = "session.telephone.dnis"
DocumentParser::FetchDocument(http://siteaddress/PaydqIVR/PresentationAction.do)
Posted form data is URL encoded
Attempting to fetch http://siteaddress/PaydqIVR/PresentationAction.do
Click here to view saved VoiceXML script
VXI::var_element(name="groupid" expr = "'63'")
bargein set to true
INPUTMODES set to "DTMF VOICE"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... eeting.wav


Fri 27 Jun 2008 01:39:50 PM EDT:

Audio segment from the URL recordings/63/prompt_greeting.wav added to prompt queue
bargein set to true
INPUTMODES set to "DTMF VOICE"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/global/pause.wav
Audio segment from the URL recordings/global/pause.wav added to prompt queue
Newly queued prompts are now being played


Fri 27 Jun 2008 01:40:11 PM EDT:

DocumentParser::FetchDocument(CustomerEntry.do)
Attempting to fetch http://siteaddress/PaydqIVR/CustomerEntry.do
Click here to view saved VoiceXML script
DocumentParser::FetchDocument(CustomerEntry.do)
Attempting to fetch http://siteaddress/PaydqIVR/CustomerEntry.do
Click here to view saved VoiceXML script
Loading Builtin grammar: builtin:dtmf/digits
Loading Builtin grammar: builtin:grammar/digits
Loading Builtin grammar: builtin:dtmf/digits?length=5


Fri 27 Jun 2008 01:40:12 PM EDT:

Loading Builtin grammar: builtin:grammar/digits?length=5
Loading Builtin grammar: builtin:dtmf/digits
Loading Builtin grammar: builtin:grammar/digits
Loading Builtin grammar: builtin:dtmf/digits?length=5
Loading Builtin grammar: builtin:grammar/digits?length=5
VXI::var_element(name="customerid" expr = "0")
VXI::var_element(name="zip" expr = "0")
VXI::var_element(name="field_value" expr = "0")
VXI::var_element(name="errorFile" expr = "'0'")
VXI::var_element(name="groupid" expr = "'63/'")
VXI::var_element(name="customerid" expr = "0")
VXI::var_element(name="zip" expr = "0")
VXI::var_element(name="field_value" expr = "0")
VXI::var_element(name="errorFile" expr = "'0'")
VXI::var_element(name="groupid" expr = "'63/'")
VXI::var_element(name="conf_fieldname" expr = "'conf_customerid'")
VXI::var_element(name="forwardPath" expr = "'CustomerEntry.do'")
VXI::var_element(name="type" expr = "'digits'")
VXI::var_element(name="fieldname" expr = "'customerid'")
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... omerid.wav
Audio segment from the URL recordings/63/prompt_customerid.wav added to prompt queue
VXI::field_element - activating grammars for form = 'customerentry' formitem = 'field_value'
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played


Fri 27 Jun 2008 01:40:28 PM EDT:

received event: noinput
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... 't_get.wav
Audio segment from the URL recordings/global/verbiage/ver_didn't_get.wav added to prompt queue
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... omerid.wav
Audio segment from the URL recordings/63/prompt_customerid.wav added to prompt queue
VXI::field_element - activating grammars for form = 'customerentry' formitem = 'field_value'
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played


Fri 27 Jun 2008 01:40:46 PM EDT:

received event: noinput
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... 't_get.wav
Audio segment from the URL recordings/global/verbiage/ver_didn't_get.wav added to prompt queue
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... omerid.wav
Audio segment from the URL recordings/63/prompt_customerid.wav added to prompt queue
VXI::field_element - activating grammars for form = 'customerentry' formitem = 'field_value'
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played


Fri 27 Jun 2008 01:41:05 PM EDT:

received event: noinput
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... 't_get.wav
Audio segment from the URL recordings/global/verbiage/ver_didn't_get.wav added to prompt queue
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... omerid.wav
Audio segment from the URL recordings/63/prompt_customerid.wav added to prompt queue
VXI::field_element - activating grammars for form = 'customerentry' formitem = 'field_value'
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played


Fri 27 Jun 2008 01:41:23 PM EDT:

received event: noinput
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... 't_get.wav
Audio segment from the URL recordings/global/verbiage/ver_didn't_get.wav added to prompt queue
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... omerid.wav
Audio segment from the URL recordings/63/prompt_customerid.wav added to prompt queue
VXI::field_element - activating grammars for form = 'customerentry' formitem = 'field_value'
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played


Fri 27 Jun 2008 01:41:42 PM EDT:

received event: noinput
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... 't_get.wav
Audio segment from the URL recordings/global/verbiage/ver_didn't_get.wav added to prompt queue
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... omerid.wav
Audio segment from the URL recordings/63/prompt_customerid.wav added to prompt queue
VXI::field_element - activating grammars for form = 'customerentry' formitem = 'field_value'
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played


Fri 27 Jun 2008 01:42:00 PM EDT:

received event: noinput
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... 't_get.wav
Audio segment from the URL recordings/global/verbiage/ver_didn't_get.wav added to prompt queue
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Attempting to fetch http://siteaddress/PaydqIVR/recordings/ ... omerid.wav
Audio segment from the URL recordings/63/prompt_customerid.wav added to prompt queue


Fri 27 Jun 2008 01:42:01 PM EDT:

VXI::field_element - activating grammars for form = 'customerentry' formitem = 'field_value'
VXI::do_recognition()
PromptManager::Play()
Newly queued prompts are now being played


Fri 27 Jun 2008 01:42:12 PM EDT:

received event: connection.disconnect.hangup
DocumentParser::FetchDocument(ExitAction.do)
Attempting to fetch http://siteaddress/PaydqIVR/ExitAction.do
Click here to view saved VoiceXML script
VXI::var_element(name="groupid" expr = "'63'")
Can not queue audio -- line disconnected
VXI::exit_element()
Call End Event
Ending session
Ending Session On Channel 8

Thank you

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR code fix for "noinput count =3"

Post by support »

Hi,

You should remove the IVR tag, <clear>, from the following line, since this causes the counter to reset for your noinput handler, which is why it never gets to "noinput count = 3". So, you should change this line of IVR code:

Code: Select all

 <catch event="noinput">
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio></prompt><clear /> <reprompt/>
</catch> 
to this:

Code: Select all

 <catch event="noinput">
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio></prompt> <reprompt/>
</catch> 
This should allow you to hear the "noinput count=3" message properly.

Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 3:42 pm, edited 5 times in total.

shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

Post by shanthint@paydq.com »

Thank you very much. It works.

Post Reply