Author Message
gpalacios
Joined: Jun 14, 2017
Messages: 4
Offline
Hi!
I have an issue related to builtIn grammars. We have made a migration from OD 7.0 to OD7.1 p2 and now, the builtIn grammar(with two parameters only) has a escaped/encoded builtgrammar and this format is not recognized by the MPP.

For example;
we had:
:<grammar mode="dtmf" xml:lang="en-us" maxage="0" src="builtin:dtmf/digits?minlength=2;maxlength=8" type="application/srgs+xml"/>

and now we have:
:<grammar mode="dtmf" xml:lang="en-us" maxage="0" src="builtin:dtmf/digits?minlength=2%3Bmaxlength%3D8" type="application/srgs+xml"/>


builtin:dtmf/digits?minlength=2;maxlength=8
is transformed to
builtin:dtmf/digits?minlength=2%3Bmaxlength%3D8


is there any option to disable the escaped/encoded builtInGrammar?

Thank you very much!
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Interesting, I am trying this using OD 7.2 and not seeing it. Do you have anymore details on your OD app?


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="07.20.08.03"/>
4:<meta name="runtimecommon-version" content="07.20.08.03xx02"/>
5:<meta name="copyright" content="Copyright (c) 2002-2017, Avaya"/>
6:<form id="untitledPromptAndCollect1">
7:<property name="maxnbest" value="1"/>
8:<var name="nbest" expr="1"/>
9:<var name="untitledPromptAndCollect_input___value"/>
10:<var name="untitledPromptAndCollect_input___confidence"/>
11:<var name="untitledPromptAndCollect_input___utterance"/>
12:<var name="untitledPromptAndCollect_input___inputmode"/>
13:<var name="untitledPromptAndCollect_input___interpretation" expr="'undefined'"/>
14:<var name="untitledPromptAndCollect_input___noinputcount" expr="'0'"/>
15:<var name="untitledPromptAndCollect_input___nomatchcount" expr="'0'"/>
16:<var name="graminterp___untitled" expr="'undefined'"/>
17:<field name="untitledPromptAndCollect_input" modal="false">
18:<grammar mode="dtmf" xml:lang="en-us" weight="1.0" src="builtin:dtmf/digits?minlength=2;maxlength=3" maxage="0"/>
19:<filled>
gpalacios
Joined: Jun 14, 2017
Messages: 4
Offline
This is the generated vxml. Please, check line 29, you can see the encoding issue..




:<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="07.10.12.02"/>
4:<meta name="runtimecommon-version" content="07.10.12.02.p2"/>
5:<meta name="runtime-hotfixes" content="AAOD-306, AAOD-303, Dynamic Node Report Name Breadcrumb only, AAOD-320"/>
6:<meta name="copyright" content="Copyright (c) 2002-2011, Avaya"/>
7:<form id="dialogState">
8:<property name="confidencelevel" value="0.15" />
9:<property name="completetimeout" value="1000ms" />
10:<property name="incompletetimeout" value="1500ms" />
11:<property name="interdigittimeout" value="3000ms" />
12:<property name="termtimeout" value="0ms" />
13:<property name="termchar" value="#" />
14:<property name="private" value="false" />
15:<property name="maxnbest" value="1"/>
16:<var name="nbest" expr="1"/>
17:<var name="dialogState___value"/>
18:<var name="dialogState___confidence"/>
19:<var name="dialogState___utterance"/>
20:<var name="dialogState___inputmode"/>
21:<var name="dialogState___interpretation" expr="'undefined'"/>
22:<var name="dialogState___noinputcount" expr="'0'"/>
23:<var name="dialogState___nomatchcount" expr="'0'"/>
24:<var name="graminterp___MyGrammar" expr="'undefined'"/>
25:<field name="dialogState" modal="false">
26:<prompt bargein="false" timeout="5000ms">
27:<audio src="http://135.60.156.82:8944/audio-cache/55af5b35-cc20-43cf-8b23-7bae4ba12e6c.wav"/>
28:</prompt>
29:<grammar mode="dtmf" xml:lang="en-us" maxage="0" src="builtin:dtmf/digits?minlength=2%3Bmaxlength%3D8" type="application/srgs+xml"/>
30:<catch event="noinput">
31:<assign name="_avayaNoinputCounter" expr="_avayaNoinputCounter + 1"/>
32:<assign name="dialogState___noinputcount" expr="try {_avayaNoinputCounter} catch (errMsg) {'0'}"/>
33:<assign name="dialogState___nomatchcount" expr="try {_avayaNomatchCounter} catch (errMsg) {'0'}"/>
34:<submit next="processCollectionNoInput?___DDSESSIONID=11965D1B7B469ABF1D57B85BDF0ED56F%3A%2Fdss-flow-app" namelist="dialogState___noinputcount dialogState___nomatchcount" method="post" enctype="multipart/form-data"/>
35:</catch>
36:<catch event="nomatch">
37:<assign name="_avayaNomatchCounter" expr="_avayaNomatchCounter + 1"/>
38:<assign name="dialogState___noinputcount" expr="try {_avayaNoinputCounter} catch (errMsg) {'0'}"/>
39:<assign name="dialogState___nomatchcount" expr="try {_avayaNomatchCounter} catch (errMsg) {'0'}"/>
40:<submit next="processCollectionNoMatch?___DDSESSIONID=11965D1B7B469ABF1D57B85BDF0ED56F%3A%2Fdss-flow-app" namelist="dialogState___noinputcount dialogState___nomatchcount" method="post" enctype="multipart/form-data"/>
41:</catch>
42:<catch event="maxspeechtimeout">
43:<assign name="dialogState___noinputcount" expr="try {_avayaNoinputCounter} catch (errMsg) {'0'}"/>
44:<assign name="dialogState___nomatchcount" expr="try {_avayaNomatchCounter} catch (errMsg) {'0'}"/>
45:<submit next="processCollectionNoMatch?___DDSESSIONID=11965D1B7B469ABF1D57B85BDF0ED56F%3A%2Fdss-flow-app" namelist="dialogState___noinputcount dialogState___nomatchcount" method="post" enctype="multipart/form-data"/>
46:</catch>
47:<filled>
48:<assign name="dialogState___confidence" expr="getnbest('confidence', nbest)"/>
49:<assign name="dialogState___utterance" expr="getnbest('utterance', nbest)"/>
50:<assign name="dialogState___inputmode" expr="getnbest('inputmode', nbest)"/>
51:<if cond="dialogState___inputmode == 'dtmf'">
52: <assign name="dialogState___interpretation" expr="getnbest('interpretation', nbest)"/>
53:<else/>
54: <assign name="dialogState___interpretation" expr="getnbest('interpretation.cxtag', nbest)"/>
55:</if>
56:<if cond="startswith(dialogState___interpretation, 'undefined') == true ">
57: <assign name="dialogState___interpretation" expr="getnbest('interpretation', nbest)"/>
58:</if>
59:<assign name="dialogState___value" expr="dialogState___interpretation"/>
60:<assign name="dialogState___noinputcount" expr="getnbestnmni(_avayaNoinputCounter, nbest)"/>
61:<assign name="dialogState___nomatchcount" expr="getnbestnmni(_avayaNomatchCounter, nbest)"/>
62:</filled>
63:</field>
64:<block>
65:<submit next="evaluateConstraintAndDisallowLists?___DDSESSIONID=11965D1B7B469ABF1D57B85BDF0ED56F%3A%2Fdss-flow-app" namelist="dialogState___value dialogState___confidence dialogState___utterance dialogState___inputmode dialogState___interpretation dialogState___noinputcount dialogState___nomatchcount" method="post"/>
66:</block>
67:</form>
68:</vxml>
69:

Filename od71_encodingIssue.txt [Disk] Download
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
I see that. What sort of grammar are you using? .... and etc?
gpalacios
Joined: Jun 14, 2017
Messages: 4
Offline
I'm using all this builtIn grammars....
"number",
"boolean",
"date",
"digits",
"boolean?y=1",
"phone",
"digits?maxlength=1",
"boolean?y=2;n=1",
"time",
"digits?minlength=2",
"boolean?n=2",
"currency",
"digits?minlength=1;maxlength=2"

The last one is not working, digits?minlength=1;maxlength=2. It only difference is its two parameters...
I didn't test " "boolean?y=2;n=1"," but I'm pretty sure, it is not working.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
I tried this on the OD 7.1 release and I get the same results on OD 7.2. Are you using an external grammar and entering the values into the url or using the actual builtin OD grammar? That is, what is the extension on the file for your grammars? builtin-gram?
gpalacios
Joined: Jun 14, 2017
Messages: 4
Offline
We are using an external grammar. We set the builtIn grammar as text value into an URL, so, yes, it would be an URL.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Well that explains why it works for me. I am using the builtin grammars not external grammars and hand coding the options. Why do you not use the standard builtin grammars they provide the same functionality. See attached images.
  • [Thumb - Capture.PNG]
[Disk] Download
  • [Thumb - Capture2.PNG]
[Disk] Download
Go to:   
Mobile view