Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Rav on September 30, 2008, 03:54:50 PM
-
Hi All
I have a field that is defined in the form as
<field name="ID1" type="digits?minlength=10;maxlength=10" modal="false">
In the grammar It is defined to accept 10 digits. Well if caller accidently enters more than 10 digits say for example 12 digits then it is taking the first 10 digits for that field ID1 and passing the remaining 2 digits to the next field and hence throwing NOMATCH for the second field. Really weired. How should I prevent this to happen ?? Please help.
<rule id="ID1" scope="public">
<item repeat="10">
<one-of>
<item>0<tag>0</tag></item>
<item>1<tag>1</tag></item>
<item>2<tag>2</tag></item>
<item>3<tag>3</tag></item>
<item>4<tag>4</tag></item>
<item>5<tag>5</tag></item>
<item>6<tag>6</tag></item>
<item>7<tag>7</tag></item>
<item>8<tag>8</tag></item>
<item>9<tag>9</tag></item>
</one-of>
</item>
</rule>
-
Hi,
GVP supports custom extension that allows you to suggest GVP to clear DTMF buffer before executing input element. In your case, it's necessary to add the attribute to your second "field" element:
<field name="ID2" [b]clearbuffer="true"[/b] type="digits?minlength=10;maxlength=10" modal="false">
R.
-
Thanks Rene. I have tried that option but sounds like GVP is not liking that option clearbuffer in the <field> and hence it is throwing an error.
VXML Error: event(error.badfetch), message(Unknown attribute(s): [clearbuffer]; Element: [Vxml_Document->vxml->form4->[BPN] element(Leaf_Document->vxml->form2->block1->goto1 URL is /ProviderAnswer.do), current url /ProviderAnswer.do)
[2008/10/01 16:46:15.665] DD0 VxmlRoot.cpp:2350 C=12:L=1:U=311 Action::isVxmlElementValid returned false - ERROR[Unknown attribute(s): [clearbuffer]; Element: [Vxml_Document->vxml->form4->[BPN] field1 URL is /ProviderAnswer.do]]
[2008/10/01 16:46:15.665] DD0 VxmlUtil.cpp:2345 C=12:L=1:U=321:D=E_12_104 Throw VxmlEventException (event = error.badfetch). URL is /ProviderAnswer.do.
[2008/10/01 16:46:15.665] DD0 VxmlUtil.cpp:3903 C=12:L=1:U=321:D=E_12_121 VXML Error: event(error.badfetch), message(), element(Leaf_Document->vxml->form2->block1->goto1 URL is /ProviderAnswer.do), current url (/ProviderAnswer.do)
Am I missing anything. Please help.
-
What version are you using?
-
GVP 7.5 and VXML 2.0. Thanks for your great help and time !
-
Hi,
It's strange that GVP doesn't recognize the attribute as it's part of Genesys extensions. Can you try to add link to Genesys namespace into VXML header to help GVP recognize custom extension?
<vxml version='2.1' xmlns='http://www.w3.org/2001/vxml' [b]xmlns:genesys='http://www.genesyslab.com/vxml/2.0/ext/20020430'[/b] application='TEST' xml:lang='en-US'/>
Or you can try to use the same way as Genesys Studio. I checked the code generated by Genesys Studio and it uses some "hack" to clear the buffer. When you check the box "Clear DTMF buffer" in prompt settings then Studio adds empty prompt block into generated file so any buffered DTMF are "used" by this prompt. The code is following:
<block name="MainInputFlush">
<prompt bargein="false">
<audio src="StudioIncludes/silence10ms.wav"/>
</prompt>
</block>
R.
-
R
Sorry for late reply as I did not get a chance to try it out. When I tried the second solution that you proposed it did work for the first time and laten on it did not. It is really acting weired.
Would you please try it out on your system if you really do not mind and kindly let me the solution. I appreciate your help.
I tried <clear> option but it did not help either.