Author Message
manoj.jreddy
Joined: Oct 23, 2015
Messages: 64
Offline
I am trying to use a Prompt & collect componenet to collect a 10 digit input from caller.

The code works fine, however when i fetch the value filed of the prompt & collect only the first digit is getting saved and rest of the 9 digits are not getting saved.

The utterance saves all 10 digits.

Is there a different way how i need to make all 10 digits save in Value filed and read it.
NeilGoldsmith
Joined: Nov 6, 2013
Messages: 902
Offline
What is your grammar set to?

Can you show me an app log with VXML output enabled showing you sending over the P&C to the browser?
manoj.jreddy
Joined: Oct 23, 2015
Messages: 64
Offline
14/01/2016 09:55:31:453 DEBUG - 54F7CC606EDDD22A90A6F68849F81D26:/Main : 0:<?xml version="1.0" encoding="UTF-8"?>
1:<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-us">
2:<meta name="author" content="Avaya Aura Orchestration Designer"/>
3:<meta name="runtime-version" content="06.00.09.01"/>
4:<meta name="runtimecommon-version" content="06.00.09.01"/>
5:<meta name="copyright" content="Copyright (c) 2002-2011, Avaya"/>
6:<form id="PnCMenu">
7:<block>
8:</block>
9:<property name="maxnbest" value="1"/>
10:<var name="nbest" expr="1"/>
11:<var name="PnCMenu___value"/>
12:<var name="PnCMenu___confidence"/>
13:<var name="PnCMenu___utterance"/>
14:<var name="PnCMenu___inputmode"/>
15:<var name="PnCMenu___interpretation" expr="'undefined'"/>
16:<var name="PnCMenu___noinputcount" expr="'0'"/>
17:<var name="PnCMenu___nomatchcount" expr="'0'"/>
18:<var name="graminterp___DtmfGrammar" expr="'undefined'"/>
19:<var name="graminterp___SpeechGrammar" expr="'undefined'"/>
20:<var name="graminterp___CustServiceGrammar" expr="'undefined'"/>
21:<var name="graminterp___CustServiceDTMFGrammar" expr="'undefined'"/>
22:<var name="graminterp___RepeatGrammar" expr="'undefined'"/>
23:<var name="graminterp___RepeatDTMF" expr="'undefined'"/>
24:<var name="graminterp___MainMenuGrammar" expr="'undefined'"/>
25:<var name="graminterp___MainMenuDDTMFGrammar" expr="'undefined'"/>
26:<field name="PnCMenu" modal="false">
27:<prompt bargein="true" bargeintype="speech" timeout="8000ms">
28:<audio src="http://localhost:8080/CustomAudio/en-us/GetPhone.wav"/>
29:</prompt>
30:<prompt bargein="true" bargeintype="speech" timeout="8000ms">
31:<audio src="http://localhost:8080/CustomAudio/en-us/DFLT"/>
32:</prompt>
33:<grammar mode="dtmf" xml:lang="en-us" maxage="0" weight="1.0" src="http://localhost:8080/CustomGrammar/en-us/GetPhoneDTMF.grxml" type="application/srgs+xml"/>
34:<grammar mode="voice" xml:lang="en-us" maxage="0" weight="1.0" src="http://localhost:8080/CustomGrammar/en-us/GetPhone.grxml" type="application/srgs+xml"/>
35:<grammar mode="voice" xml:lang="en-us" maxage="0" weight="1.0" src="http://localhost:8080/CustomGrammar/en-us/GetPhone.grxml" type="application/srgs+xml"/>
36:<grammar mode="dtmf" xml:lang="en-us" maxage="0" weight="1.0" src="http://localhost:8080/CustomGrammar/en-us/GetPhone.grxml" type="application/srgs+xml"/>
37:<grammar mode="voice" xml:lang="en-us" maxage="0" weight="1.0" src="http://localhost:8080/CustomGrammar/en-us/GetPhone.grxml" type="application/srgs+xml"/>
38:<grammar mode="dtmf" xml:lang="en-us" maxage="0" weight="1.0" src="http://localhost:8080/CustomGrammar/en-us/GetPhone.grxml" type="application/srgs+xml"/>
39:<grammar mode="voice" xml:lang="en-us" maxage="0" weight="1.0" src="http://localhost:8080/CustomGrammar/en-us/GetPhone.grxml" type="application/srgs+xml"/>
40:<grammar mode="dtmf" xml:lang="en-us" maxage="0" weight="1.0" src="http://localhost:8080/CustomGrammar/en-us/GetPhone.grxml" type="application/srgs+xml"/>
41:<catch event="noinput">
42:<assign name="_avayaNoinputCounter" expr="_avayaNoinputCounter + 1"/>
43:<var name="lastEvent" expr="try {objectToString(_event)} catch (errMsg) {'undefined'}"/>
44:<var name="lastEventMessage" expr="try {objectToString(_message)} catch (errMsg) {'undefined'}"/>
45:<assign name="PnCMenu___noinputcount" expr="try {_avayaNoinputCounter} catch (errMsg) {'0'}"/>
46:<assign name="PnCMenu___nomatchcount" expr="try {_avayaNomatchCounter} catch (errMsg) {'0'}"/>
47:<submit next="DatIncrementEventCounter?___DDSESSIONID=54F7CC606EDDD22A90A6F68849F81D26%3A%2FMain" namelist="lastEvent lastEventMessage PnCMenu___noinputcount PnCMenu___nomatchcount" method="post" enctype="multipart/form-data"/>
48:</catch>
49:<catch event="nomatch">
50:<assign name="_avayaNomatchCounter" expr="_avayaNomatchCounter + 1"/>
51:<var name="lastEvent" expr="try {objectToString(_event)} catch (errMsg) {'undefined'}"/>
52:<var name="lastEventMessage" expr="try {objectToString(_message)} catch (errMsg) {'undefined'}"/>
53:<assign name="PnCMenu___noinputcount" expr="try {_avayaNoinputCounter} catch (errMsg) {'0'}"/>
54:<assign name="PnCMenu___nomatchcount" expr="try {_avayaNomatchCounter} catch (errMsg) {'0'}"/>
55:<submit next="DatIncrementEventCounter?___DDSESSIONID=54F7CC606EDDD22A90A6F68849F81D26%3A%2FMain" namelist="lastEvent lastEventMessage PnCMenu___noinputcount PnCMenu___nomatchcount" method="post" enctype="multipart/form-data"/>
56:</catch>
57:<filled>
58:<assign name="PnCMenu___confidence" expr="getnbest('confidence', nbest)"/>
59:<assign name="PnCMenu___utterance" expr="getnbest('utterance', nbest)"/>
60:<assign name="PnCMenu___inputmode" expr="getnbest('inputmode', nbest)"/>
61:<assign name="PnCMenu___interpretation" expr="getnbest('interpretation', nbest)"/>
62:<if cond="startswith(PnCMenu___interpretation, 'undefined') == true ">
63: <assign name="PnCMenu___interpretation" expr="getnbest('interpretation', nbest)"/>
64:</if>
65:<assign name="PnCMenu___value" expr="PnCMenu___interpretation"/>
66:<assign name="PnCMenu___noinputcount" expr="getnbestnmni(_avayaNoinputCounter, nbest)"/>
67:<assign name="PnCMenu___nomatchcount" expr="getnbestnmni(_avayaNomatchCounter, nbest)"/>
68:</filled>
69:</field>
70:<catch event="connection.disconnect">
71:<var name="PnCMenu___noinputcount" expr="try {_avayaNoinputCounter} catch (errMsg) {'0'}"/>
72:<var name="PnCMenu___nomatchcount" expr="try {_avayaNomatchCounter} catch (errMsg) {'0'}"/>
73:<assign name="PnCMenu___noinputcount" expr="try {_avayaNoinputCounter} catch (errMsg) {'0'}"/>
74:<assign name="PnCMenu___nomatchcount" expr="try {_avayaNomatchCounter} catch (errMsg) {'0'}"/>
75:<submit next="AvayaDefaultDisconnectHandler?___DDSESSIONID=54F7CC606EDDD22A90A6F68849F81D26%3A%2FMain" namelist="PnCMenu___noinputcount PnCMenu___nomatchcount" method="post" enctype="multipart/form-data"/>
76:</catch>
77:<block>
78:<submit next="setMenuResults?___DDSESSIONID=54F7CC606EDDD22A90A6F68849F81D26%3A%2FMain" namelist="PnCMenu___value PnCMenu___confidence PnCMenu___utterance PnCMenu___inputmode PnCMenu___interpretation PnCMenu___noinputcount PnCMenu___nomatchcount" method="post"/>
79:</block>
80:</form>
81:</vxml>
82:

14/01/2016 09:55:39:096 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Using SCESession 54F7CC606EDDD22A90A6F68849F81D26:/Main servlet : setMenuResults
14/01/2016 09:55:39:096 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :PnCMenu___inputmode to complex: PnCMenu:inputmode as [dtmf]
14/01/2016 09:55:39:096 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :PnCMenu___noinputcount to complex: PnCMenu:noinputcount as [0]
14/01/2016 09:55:39:096 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :PnCMenu___utterance to complex: PnCMenu:utterance as [8888888888]
14/01/2016 09:55:39:096 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :PnCMenu___confidence to complex: PnCMenu:confidence as [0.949999988079071]
14/01/2016 09:55:39:097 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :PnCMenu___nomatchcount to complex: PnCMenu:nomatchcount as [0]
14/01/2016 09:55:39:097 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :PnCMenu___value to complex: PnCMenu:value as [8|8|8|8|8|8|8|8|8|8]
14/01/2016 09:55:39:104 DEBUG - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Collection Mismatch, going bigger, New size is:10
14/01/2016 09:55:39:104 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[1] as [8]
14/01/2016 09:55:39:116 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[2] as [8]
14/01/2016 09:55:39:116 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[3] as [8]
14/01/2016 09:55:39:116 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[4] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[5] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[6] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[7] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[8] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[9] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:value[10] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :PnCMenu___interpretation to complex: PnCMenu:interpretation as [8|8|8|8|8|8|8|8|8|8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[1] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[2] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[3] as [8]
14/01/2016 09:55:39:117 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[4] as [8]
14/01/2016 09:55:39:118 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[5] as [8]
14/01/2016 09:55:39:118 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[6] as [8]
14/01/2016 09:55:39:118 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[7] as [8]
14/01/2016 09:55:39:118 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[8] as [8]
14/01/2016 09:55:39:118 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[9] as [8]
14/01/2016 09:55:39:118 INFO - 54F7CC606EDDD22A90A6F68849F81D26:/Main : Storing :complex: PnCMenu:interpretation[10] as [8]
NeilGoldsmith
Joined: Nov 6, 2013
Messages: 902
Offline
It looks like it is storing it as a collection of size 10. if you iterate over the collection, it should retrieve each value.

PnCMenu:value[1] as [8]
...
PnCMenu:value[10] as [8]
shyamshanmugiah2
Joined: Feb 13, 2012
Messages: 10
Offline
Hi,

I think the mistake is with your grammar file. Kindly use the below grammar file.

Filename CollectCard.grxml [Disk] Download
manoj.jreddy
Joined: Oct 23, 2015
Messages: 64
Offline
That worked fine. Thank you Shyam and Neil.
Go to:   
Mobile view